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 c5fec96 commit 9cfeac2
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<input id="input" type=text placeholder="Input Password">
<input id="input" type="text" placeholder="Input Password">
<title>Input password to continue</title>
<button onclick="submit()">Submit</button>
<script>
function submit(){
var pass=fetch("")
var input=document.getElementById("input").value
if (input == pass){
window.location.href += "eaglercraft.html"
} else {alert("Wrong Password")}
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";
} else {
alert("Wrong Password");
}
} catch (error) {
console.error("Error fetching password:", error);
}
}
</script>

0 comments on commit 9cfeac2

Please sign in to comment.