Applying the same CSS colors used on the dashboard to db_grahps.php

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
rdwebdesign
2021-12-02 04:22:49 -03:00
parent 00acbff2de
commit 3d2a6f8fa9
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -8,6 +8,8 @@
require "scripts/pi-hole/php/header.php";
?>
<!-- Sourceing CSS colors from stylesheet to be used in JS code -->
<span class="queries-permitted"></span>
<span class="queries-blocked"></span>
<span class="graphs-grid"></span>
<span class="graphs-ticks"></span>
+2 -2
View File
@@ -158,8 +158,8 @@ function updateQueriesOverTime() {
$(function () {
var ctx = document.getElementById("queryOverTimeChart").getContext("2d");
var blockedColor = "#999";
var permittedColor = "#00a65a";
var blockedColor = $(".queries-blocked").css("background-color");
var permittedColor = $(".queries-permitted").css("background-color");
var gridColor = $(".graphs-grid").css("background-color");
var ticksColor = $(".graphs-ticks").css("color");