This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
forked from vidio-boy/Eaglercraft1.5.2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5fec96
commit 9cfeac2
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |