'use strict'; function imageTag(src) { return src ? "" : ""; } function $(query) { return document.querySelector(query); } function $toggle(query, show) { return $(query).style.display = (show ? 'block' : 'none'); } function $$(query) { return document.querySelectorAll(query); } function appendRow(table, html) { const row = document.createElement("tr"); row.innerHTML = html; table.appendChild(row); } document.onreadystatechange = async () => { if (document.readyState == "complete") { try { let file, switchJsonUrl, switchJsonText; if (location.search === "?combined") { file = "combined_aaguid.json"; switchJsonUrl = "."; switchJsonText = "Exclude MDS authenticators" } else { file = "aaguid.json"; switchJsonUrl = "./?combined"; switchJsonText = "Include MDS authenticators" } $("#switch-json").setAttribute("href", switchJsonUrl); $("#switch-json").innerText = switchJsonText; const response = await fetch("../" + file); const json = await response.json(); $toggle("#loading", false); $toggle("#main", true); const table = $("#aaguids"); appendRow(table, `