mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Merge pull request #2039 from Iksas/query-log-rename
Prevent ad blockers from blocking query log UI elements
This commit is contained in:
+3
-3
@@ -79,7 +79,7 @@
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-aqua no-user-select">
|
||||
<div class="inner">
|
||||
<h3 class="statistic" id="ads_blocked_exact">---</h3>
|
||||
<h3 class="statistic" id="queries_blocked_exact">---</h3>
|
||||
<p>Queries Blocked</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -92,7 +92,7 @@
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-aqua no-user-select">
|
||||
<div class="inner">
|
||||
<h3 class="statistic" id="ads_wildcard_blocked">---</h3>
|
||||
<h3 class="statistic" id="queries_wildcard_blocked">---</h3>
|
||||
<p>Queries Blocked (Wildcards)</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -118,7 +118,7 @@
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-yellow no-user-select">
|
||||
<div class="inner">
|
||||
<h3 class="statistic" id="ads_percentage_today">---</h3>
|
||||
<h3 class="statistic" id="queries_percentage_today">---</h3>
|
||||
<p>Queries Blocked</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
|
||||
@@ -165,8 +165,8 @@ var reloadCallback = function () {
|
||||
|
||||
var formatter = new Intl.NumberFormat();
|
||||
$("h3#dns_queries").text(formatter.format(statistics[0]));
|
||||
$("h3#ads_blocked_exact").text(formatter.format(statistics[2]));
|
||||
$("h3#ads_wildcard_blocked").text(formatter.format(statistics[3]));
|
||||
$("h3#queries_blocked_exact").text(formatter.format(statistics[2]));
|
||||
$("h3#queries_wildcard_blocked").text(formatter.format(statistics[3]));
|
||||
|
||||
var percent = 0;
|
||||
if (statistics[2] + statistics[3] > 0) {
|
||||
@@ -174,7 +174,7 @@ var reloadCallback = function () {
|
||||
}
|
||||
|
||||
var percentage = formatter.format(Math.round(percent * 10) / 10);
|
||||
$("h3#ads_percentage_today").text(percentage + " %");
|
||||
$("h3#queries_percentage_today").text(percentage + " %");
|
||||
};
|
||||
|
||||
function refreshTableData() {
|
||||
|
||||
Reference in New Issue
Block a user