This commit is contained in:
2026-05-18 08:38:30 +02:00
parent eddba45f4e
commit 28e3053a6a
39 changed files with 55 additions and 29 deletions

View File

@@ -1,5 +1,9 @@
const kljuc = new URLSearchParams(window.location.search).get("kljuc");
function navigateTop(page) {
window.open(new URL(page, window.location.href).href, "_top");
}
function getCookie(name) {
const match = document.cookie.split(";").map(c => c.trim()).find(c => c.startsWith(name + "="));
return match ? match.split("=")[1] : null;
@@ -83,7 +87,7 @@ function getKey() {
})
.then(data => {
console.log("Success:", data);
window.location.href = "index.html";
navigateTop("index.html");
})
.catch((error) => {
console.error("Error:", error);