diff --git a/db_lists.php b/db_lists.php index 760942c2..f143f559 100644 --- a/db_lists.php +++ b/db_lists.php @@ -14,6 +14,9 @@ if(empty($_SESSION['token'])) { $token = $_SESSION['token']; ?> + + + @@ -22,22 +25,28 @@ $token = $_SESSION['token'];

Compute Top Lists from the Pi-hole query database

-
-
- -
- - -
-
- +
+
+
+

+ Select date and time range +

+
+
+
+
+
+
+ +
+ +
-
-
+
-
-
- -
- - -
-
- +
+
+
+

+ Select date and time range +

+
+
+
+
+
+
+ +
+ +
-
-
+
diff --git a/index.php b/index.php index cb57225e..a111880c 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,11 @@ } } ?> + + + + +
@@ -82,10 +87,6 @@
- - - -

Total queries over last hours

diff --git a/scripts/pi-hole/js/db_lists.js b/scripts/pi-hole/js/db_lists.js index 6db4417b..0a18a4e7 100644 --- a/scripts/pi-hole/js/db_lists.js +++ b/scripts/pi-hole/js/db_lists.js @@ -66,6 +66,8 @@ function escapeHtml(text) { return map[m]; }); } +var blockedColor = $(".queries-blocked").css("background-color"); +var permittedColor = $(".queries-permitted").css("background-color"); function updateTopClientsChart() { $("#client-frequency .overlay").show(); @@ -154,7 +156,7 @@ function updateTopDomainsChart() { percentage.toFixed(1) + "% of " + sum + - '">
' ); @@ -201,7 +203,7 @@ function updateTopAdsChart() { percentage.toFixed(1) + "% of " + sum + - '">
' );