Changes

Jump to navigation Jump to search
Switched to var
if (location.href.startsWith("http://")) {
let var nav = document.querySelector("#p-navigation ul"); let var a = document.createElement("a");
a.href = "https://" + location.href.substring("http://".length);
a.innerText = "Upgrade to HTTPS";
nav.insertAfter(nav.children[0]);
}

Navigation menu