mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user