From 4fbe384c8016ba1e9f0039c24509cb0e48aa93ed Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Sun, 1 Sep 2024 12:07:28 +0200 Subject: [PATCH] chg: [html] Added target="_blank" to avoid losing ongoing scan data for example fix: [html] target="blank" is not correct --- internal/web/public/js/history.js | 4 ++-- internal/web/public/js/host-scan.js | 4 ++-- internal/web/public/js/index.js | 4 ++-- internal/web/templates/host.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/web/public/js/history.js b/internal/web/public/js/history.js index cda0ed5..33216b2 100644 --- a/internal/web/public/js/history.js +++ b/internal/web/public/js/history.js @@ -40,7 +40,7 @@ async function loadHistory() { ${i}.

${a.Name}

-

${a.IP}

+

${a.IP}

${a.Mac}

${td} @@ -59,4 +59,4 @@ function showHist(n) { function manualShow() { const n = document.getElementById('man-show').value; showHist(n); -} \ No newline at end of file +} diff --git a/internal/web/public/js/host-scan.js b/internal/web/public/js/host-scan.js index 835bc49..ade1d13 100644 --- a/internal/web/public/js/host-scan.js +++ b/internal/web/public/js/host-scan.js @@ -47,6 +47,6 @@ async function scanAddr() { } function genHTML(addr, port) { - html = `${port}   `; + html = `${port}   `; return html; -} \ No newline at end of file +} diff --git a/internal/web/public/js/index.js b/internal/web/public/js/index.js index a15a7d6..293a43c 100644 --- a/internal/web/public/js/index.js +++ b/internal/web/public/js/index.js @@ -26,7 +26,7 @@ function createHTML(addr, i) { ${name} ${addr.Iface} - ${addr.IP} + ${addr.IP} ${addr.Mac} ${addr.Hw} @@ -85,4 +85,4 @@ async function editForm(id, known) { // console.log(url); await fetch(url); -} \ No newline at end of file +} diff --git a/internal/web/templates/host.html b/internal/web/templates/host.html index f608521..5a9ebf4 100644 --- a/internal/web/templates/host.html +++ b/internal/web/templates/host.html @@ -29,7 +29,7 @@ IP - {{ .Host.IP }} + {{ .Host.IP }} MAC @@ -117,4 +117,4 @@ {{ template "footer.html" }} -{{ end }} \ No newline at end of file +{{ end }}