-
+
-
diff --git a/network.php b/network.php
index e92f0ef6..7c1f9b02 100644
--- a/network.php
+++ b/network.php
@@ -52,12 +52,12 @@ $token = $_SESSION['token'];
Background color: Last query from this device seen ...
-
- just now
- ... to ...
- 24 hours ago
- > 24 hours ago
- Device does not use Pi-hole
+
+ just now
+ ... to ...
+ 24 hours ago
+ > 24 hours ago
+ Device does not use Pi-hole
diff --git a/scripts/pi-hole/js/auditlog.js b/scripts/pi-hole/js/auditlog.js
index 12abb205..7c92a58d 100644
--- a/scripts/pi-hole/js/auditlog.js
+++ b/scripts/pi-hole/js/auditlog.js
@@ -14,7 +14,7 @@ function escapeHtml(text) {
"<": "<",
">": ">",
"\"": """,
- "\'": "'"
+ "'": "'"
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
@@ -40,7 +40,7 @@ function updateTopLists() {
domain = escapeHtml(domain);
url = "
"+domain+" ";
domaintable.append("
" + url +
- " " + data.top_queries[domain] + " Blacklist Audit ");
+ "
" + data.top_queries[domain] + " Blacklist Audit ");
}
}
@@ -53,13 +53,13 @@ function updateTopLists() {
{
url = "
"+printdomain+" (wildcard blocked)";
adtable.append("
" + url +
- " " + data.top_ads[domain] + " Audit ");
+ "
" + data.top_ads[domain] + " Audit ");
}
else
{
url = "
"+printdomain+" ";
adtable.append("
" + url +
- " " + data.top_ads[domain] + " Whitelist Audit ");
+ "
" + data.top_ads[domain] + " Whitelist Audit ");
}
}
}
diff --git a/scripts/pi-hole/js/db_graph.js b/scripts/pi-hole/js/db_graph.js
index 9699d325..246698cf 100644
--- a/scripts/pi-hole/js/db_graph.js
+++ b/scripts/pi-hole/js/db_graph.js
@@ -52,7 +52,7 @@ function escapeHtml(text) {
"<": "<",
">": ">",
"\"": """,
- "\'": "'"
+ "'": "'"
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
diff --git a/scripts/pi-hole/js/db_lists.js b/scripts/pi-hole/js/db_lists.js
index 36228b42..903384af 100644
--- a/scripts/pi-hole/js/db_lists.js
+++ b/scripts/pi-hole/js/db_lists.js
@@ -51,7 +51,7 @@ function escapeHtml(text) {
"<": "<",
">": ">",
"\"": """,
- "\'": "'"
+ "'": "'"
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js
index c7a746b3..76ec1f93 100644
--- a/scripts/pi-hole/js/db_queries.js
+++ b/scripts/pi-hole/js/db_queries.js
@@ -250,31 +250,31 @@ $(document).ready(function() {
blocked = true;
color = "red";
fieldtext = "Blocked (gravity)";
- buttontext = "
Whitelist";
+ buttontext = "
Whitelist";
break;
case 2:
blocked = false;
color = "green";
fieldtext = "OK
(forwarded)";
- buttontext = "
Blacklist";
+ buttontext = "
Blacklist";
break;
case 3:
blocked = false;
color = "green";
fieldtext = "OK
(cached)";
- buttontext = "
Blacklist";
+ buttontext = "
Blacklist";
break;
case 4:
blocked = true;
color = "red";
fieldtext = "Blocked
(regex/wildcard)";
- buttontext = "
Whitelist" ;
+ buttontext = "
Whitelist" ;
break;
case 5:
blocked = true;
color = "red";
fieldtext = "Blocked
(blacklist)";
- buttontext = "
Whitelist" ;
+ buttontext = "
Whitelist" ;
break;
case 6:
blocked = true;
diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js
index 155efa29..ccdf67a8 100644
--- a/scripts/pi-hole/js/footer.js
+++ b/scripts/pi-hole/js/footer.js
@@ -23,14 +23,14 @@ function piholeChanged(action)
switch(action) {
case "enabled":
- status.html("
Active");
+ status.html("
Active");
ena.hide();
dis.show();
dis.removeClass("active");
break;
case "disabled":
- status.html("
Offline");
+ status.html("
Offline");
ena.show();
dis.hide();
break;
diff --git a/scripts/pi-hole/js/header.js b/scripts/pi-hole/js/header.js
deleted file mode 100644
index e9f0478a..00000000
--- a/scripts/pi-hole/js/header.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Pi-hole: A black hole for Internet advertisements
-* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
-* Network-wide ad blocking via your own hardware.
-*
-* This file is copyright under the latest version of the EUPL.
-* Please see LICENSE file for your rights under this license. */
-// Remove JS warning
-var jswarn = document.getElementById("js-warn-exit");
-jswarn.parentNode.removeChild(jswarn);
diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js
index c879e115..93d92a1d 100644
--- a/scripts/pi-hole/js/index.js
+++ b/scripts/pi-hole/js/index.js
@@ -444,7 +444,7 @@ function escapeHtml(text) {
"<": "<",
">": ">",
"\"": """,
- "\'": "'"
+ "'": "'"
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
@@ -633,7 +633,7 @@ function updateSummaryData(runOnce) {
data["ads_percentage_today"] = "to";
data["domains_being_blocked"] = "API";
// Adjust text
- $("#temperature").html("
FTL offline");
+ $("#temperature").html("
FTL offline");
// Show spinner
$("#queries-over-time .overlay").show();
$("#forward-destinations-pie .overlay").show();
diff --git a/scripts/pi-hole/js/network.js b/scripts/pi-hole/js/network.js
index 52aa2ec0..d1b05c5d 100644
--- a/scripts/pi-hole/js/network.js
+++ b/scripts/pi-hole/js/network.js
@@ -86,14 +86,14 @@ $(document).ready(function() {
{
// Last query was longer than 24 hours ago
// Color: light-orange
- color = "#FFEDD9";
+ color = "#ffedd9";
mark = "
? ";
}
}
else
{
// This client has never sent a query to Pi-hole, color light-red
- color = "#FFBFAA";
+ color = "#ffbfaa";
mark = "✘";
}
// Set determined background color
diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js
index 69a5c84a..5ab26bd1 100644
--- a/scripts/pi-hole/js/queries.js
+++ b/scripts/pi-hole/js/queries.js
@@ -155,83 +155,83 @@ $(document).ready(function() {
switch (data[5])
{
case "1":
- dnssec_status = "
SECURE ";
+ dnssec_status = "
SECURE ";
break;
case "2":
- dnssec_status = "
INSECURE ";
+ dnssec_status = "
INSECURE ";
break;
case "3":
- dnssec_status = "
BOGUS ";
+ dnssec_status = "
BOGUS ";
break;
case "4":
- dnssec_status = "
ABANDONED ";
+ dnssec_status = "
ABANDONED ";
break;
case "5":
- dnssec_status = "
UNKNOWN ";
+ dnssec_status = "
UNKNOWN ";
break;
default: // No DNSSEC
dnssec_status = "";
}
// Query status
- var blocked, fieldtext, buttontext, color;
+ var blocked, fieldtext, buttontext, colorClass;
switch (data[4])
{
case "1":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (gravity)";
- buttontext = "
Whitelist";
+ buttontext = "
Whitelist";
break;
case "2":
blocked = false;
- color = "green";
+ colorClass = "text-green";
fieldtext = "OK
(forwarded)"+dnssec_status;
- buttontext = "
Blacklist";
+ buttontext = "
Blacklist";
break;
case "3":
blocked = false;
- color = "green";
+ colorClass = "text-green";
fieldtext = "OK
(cached)"+dnssec_status;
- buttontext = "
Blacklist";
+ buttontext = "
Blacklist";
break;
case "4":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked
(regex/wildcard)";
- buttontext = "
Whitelist" ;
+ buttontext = "
Whitelist" ;
break;
case "5":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked
(blacklist)";
- buttontext = "
Whitelist" ;
+ buttontext = "
Whitelist" ;
break;
case "6":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked
(external, IP)";
buttontext = "" ;
break;
case "7":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked
(external, NULL)";
buttontext = "" ;
break;
case "8":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked
(external, NXRA)";
buttontext = "" ;
break;
default:
blocked = false;
- color = "black";
+ colorClass = "text-black";
fieldtext = "Unknown ("+parseInt(data[4])+")";
buttontext = "";
}
- $(row).css("color", color);
+ $(row).addClass(colorClass);
$("td:eq(4)", row).html(fieldtext);
$("td:eq(6)", row).html(buttontext);
@@ -282,7 +282,7 @@ $(document).ready(function() {
{
replytext = "-";
}
- $("td:eq(5)", row).css("color","black");
+ $("td:eq(5)", row).addClass("text-black");
$("td:eq(5)", row).html(replytext);
if(data.length > 7 && data[7] > 0)
diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js
index 5abc2b3c..ea1ee72c 100644
--- a/scripts/pi-hole/js/settings.js
+++ b/scripts/pi-hole/js/settings.js
@@ -215,7 +215,7 @@ $(document).ready(function(){
// Handle list deletion
$("button[id^='adlist-btn-']").on("click", function (e) {
- var id = parseInt($(this).context.id.replace(/[^0-9\.]/g, ""), 10);
+ var id = parseInt($(this).context.id.replace(/[^0-9.]/g, ""), 10);
e.preventDefault();
var status = $("input[name=\"adlist-del-"+id+"\"]").is(":checked");
diff --git a/scripts/pi-hole/php/footer.php b/scripts/pi-hole/php/footer.php
index 2667f59f..834b8273 100644
--- a/scripts/pi-hole/php/footer.php
+++ b/scripts/pi-hole/php/footer.php
@@ -22,10 +22,10 @@
- Secs
+ Secs
- Mins
+ Mins
diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php
index 8e57fd6d..b174fedd 100644
--- a/scripts/pi-hole/php/header.php
+++ b/scripts/pi-hole/php/header.php
@@ -172,69 +172,72 @@
}
?>
-
+
-
+
-