diff --git a/pages/run.php b/pages/run.php index 015fd5b..7067dc5 100644 --- a/pages/run.php +++ b/pages/run.php @@ -211,6 +211,7 @@ 0): ?> Results .csv + Print @@ -664,6 +665,20 @@ $("#table").exportCSV({name: ""}); }; + fnPrint = function() + { + var restoreDark = false; + if ($("body").attr("data-bs-theme") == "dark") + restoreDark = true; + + $("body").attr("data-bs-theme", ""); + fnShowPage("#page-output"); + window.print(); + + if (restoreDark) + $("body").attr("data-bs-theme", "dark"); + }; + fnGetRowAsQueryString = function() {