Remove unused variables

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2019-12-07 11:44:00 +02:00
parent ca35942aed
commit 37c849ce2b
5 changed files with 1 additions and 7 deletions

View File

@@ -33,13 +33,12 @@ function updateTopLists() {
$("#ad-frequency td").parent().remove();
var domaintable = $("#domain-frequency").find("tbody:last");
var adtable = $("#ad-frequency").find("tbody:last");
var url, domain, percentage;
var url, domain;
for (domain in data.top_queries) {
if ({}.hasOwnProperty.call(data.top_queries,domain)){
// Sanitize domain
domain = escapeHtml(domain);
url = "<a href=\"queries.php?domain="+domain+"\">"+domain+"</a>";
percentage = data.top_queries[domain] / data.dns_queries_today * 100;
domaintable.append("<tr> <td>" + url +
"</td> <td>" + data.top_queries[domain] + "</td> <td> <button style=\"color:red; white-space: nowrap;\"><i class=\"fa fa-ban\"></i> Blacklist</button> <button style=\"color:orange; white-space: nowrap;\"><i class=\"fa fa-balance-scale\"></i> Audit</button> </td> </tr> ");
}

View File

@@ -42,7 +42,6 @@ function eventsource() {
return;
}
var host = window.location.host;
var source = new EventSource("scripts/pi-hole/php/debug.php?&token="+token+"&"+checked);
// Reset and show field

View File

@@ -297,7 +297,6 @@ function updateClientsOverTime() {
// Get colors from AdminLTE
var colors = [];
$.each($.AdminLTE.options.colors, function(key, value) { colors.push(value); });
var v = [], c = [], k = [];
// Remove possibly already existing data
clientsChart.data.labels = [];

View File

@@ -115,8 +115,6 @@ function autofilter(){
}
$(document).ready(function() {
var status;
// Do we want to filter queries?
var GETDict = {};
location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});

View File

@@ -78,7 +78,6 @@ function eventsource() {
return;
}
var host = window.location.host;
var source = new EventSource("scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+"&"+exact);
// Reset and show field