diff --git a/static/script.js b/static/script.js index ed77c89..5c99c2b 100644 --- a/static/script.js +++ b/static/script.js @@ -238,6 +238,15 @@ function initAltIp(root, section) { function readLabels() { const labels = {}; + const table = root.querySelector(".info-table"); + if (table) { + for (const [attr, val] of Object.entries(table.dataset)) { + if (attr.startsWith("l")) { + const key = attr.slice(1).toLowerCase(); + if (key) labels[key] = val; + } + } + } for (const row of root.querySelectorAll(".info-table tbody tr")) { const key = row.getAttribute("data-label"); const th = row.querySelector("th"); diff --git a/templates/index.html b/templates/index.html index 5a70036..92557af 100644 --- a/templates/index.html +++ b/templates/index.html @@ -77,7 +77,8 @@ {{ "Copied"|t(locale) }} -