From 74a6dc3276166f0292974d80e8cd54c08099c215 Mon Sep 17 00:00:00 2001 From: TheME Date: Thu, 29 Jun 2017 00:26:47 +0200 Subject: [PATCH] Fix glow effect (#528) * index.js: fix glow effect * header.php: fix glow effect rule --- scripts/pi-hole/js/index.js | 4 ++-- scripts/pi-hole/php/header.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 7689ccbf..4b8acb28 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -410,7 +410,7 @@ function updateSummaryData(runOnce) { var todayElement = $("span#" + today); todayElement.text() !== data[today] && todayElement.text() !== data[today] + "%" && - $("h3#" + today).addClass("glow"); + $("span#" + today).addClass("glow"); }); window.setTimeout(function() { @@ -418,7 +418,7 @@ function updateSummaryData(runOnce) { var textData = (idx === 3 && data[header] !== "to") ? data[header] + "%" : data[header]; $("span#" + header).text(textData); }); - $("h3.statistic.glow").removeClass("glow"); + $("span.glow").removeClass("glow"); }, 500); }).done(function() { diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php index 6111f6da..df3cebcf 100644 --- a/scripts/pi-hole/php/header.php +++ b/scripts/pi-hole/php/header.php @@ -191,7 +191,7 @@