Skip to content

Commit 316caee

Browse files
authored
Update index.html
password added
1 parent 104f5bb commit 316caee

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,24 @@ <h3 style="font-size:1.05rem;color:#1e293b;margin:0 0 0.5rem 0;">${error.message
13331333
}
13341334
});
13351335
</script>
1336+
1337+
1338+
<script>
1339+
const correctPassword = "password"; // change this
1340+
1341+
function askPassword() {
1342+
const input = prompt("Enter password:");
1343+
1344+
if (input === correctPassword) {
1345+
return; // allow page to load
1346+
} else {
1347+
alert("Incorrect password ❌ Please re-enter.");
1348+
setTimeout(askPassword, 0); // ask again without blocking
1349+
}
1350+
}
1351+
1352+
askPassword();
1353+
</script>
13361354

13371355

13381356

0 commit comments

Comments
 (0)