From 8f57898497d99245cdceea28a9d471514d177a34 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Thu, 19 Dec 2024 14:56:46 -0300 Subject: [PATCH] Left align DNSSEC icons Signed-off-by: RD WebDesign --- scripts/js/queries.js | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/scripts/js/queries.js b/scripts/js/queries.js index 7066d1555..8b51e512d 100644 --- a/scripts/js/queries.js +++ b/scripts/js/queries.js @@ -247,8 +247,8 @@ function formatReplyTime(replyTime, type) { // Parse DNSSEC status function parseDNSSEC(data) { - var icon = null, // Icon to display - color = false, // Class to apply to text + var icon = "", // Icon to display + color = "", // Class to apply to text text = data.dnssec; // Text to display switch (text) { case "SECURE": @@ -270,8 +270,8 @@ function parseDNSSEC(data) { default: // No DNSSEC or UNKNOWN text = "N/A"; - color = false; - icon = false; + color = ""; + icon = ""; } return { text: text, icon: icon, color: color }; @@ -332,7 +332,7 @@ function formatInfo(data) { // Show DNSSEC status if applicable var dnssecInfo = ""; - if (dnssec.color !== false) { + if (dnssec.color !== "") { dnssecInfo = divStart + 'DNSSEC status:  '; - } + dnssecIcon = + '  '; // Escape HTML in domain domain = utils.escapeHtml(domain) + dnssecIcon;