mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
improve efficiency of the lookatme animation
Signed-off-by: Iksas <Iksas@users.noreply.github.com>
This commit is contained in:
@@ -213,9 +213,15 @@ function loadCacheInfo() {
|
||||
var cachelivefreed = parseInt(data.cacheinfo["cache-live-freed"], 10);
|
||||
$("#cache-live-freed").text(cachelivefreed);
|
||||
if (cachelivefreed > 0) {
|
||||
$("#cache-live-freed").parent("tr").addClass("lookatme");
|
||||
$("#cache-live-freed").parent("tr").children("th").children("span").addClass("lookatme");
|
||||
$("#cache-live-freed").parent("tr").children("td").addClass("lookatme");
|
||||
$("#cache-live-freed")
|
||||
.parent("tr")
|
||||
.children("td")
|
||||
.attr("lookatme-text", cachelivefreed.toString());
|
||||
} else {
|
||||
$("#cache-live-freed").parent("tr").removeClass("lookatme");
|
||||
$("#cache-live-freed").parent("tr").children("th").children("span").removeClass("lookatme");
|
||||
$("#cache-live-freed").parent("tr").children("td").removeClass("lookatme");
|
||||
}
|
||||
|
||||
// Update cache info every 10 seconds
|
||||
|
||||
Reference in New Issue
Block a user