Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnyDoggs authored Sep 11, 2024
1 parent 9cfeac2 commit 9571065
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
<button onclick="submit()">Submit</button>
<script>
async function submit() {
try {
const response = await fetch("https://raw.githubusercontent.com/FunnyDoggs/Eaglercraft1.5.2/main/password.txt");
const pass = await response.text();
const input = document.getElementById("input").value;
if (input === pass.trim()) {
window.location.href = "eaglercraft.html";
if (input === pass) {
window.location.href += "eaglercraft.html";
} else {
alert("Wrong Password");
}
} catch (error) {
console.error("Error fetching password:", error);
}
}
</script>

0 comments on commit 9571065

Please sign in to comment.