This commit is contained in:
mileswa1q22
2024-01-04 19:35:24 +00:00
committed by GitHub
parent b0bfabe00e
commit 918a9f418e
+23
View File
@@ -1,4 +1,27 @@
<html>
<body>
<center>
<input type="password" placeholder="passcode" id="tutorial">
<button onclick="protectpasscode()">CHECK</button>
<script>
function protectpasscode() {
const result = document.getElementById("tutorial").value;
let passcode = 12345;
let space = '';
if (result == space) {
alert("Type passcode")
} else {
if (result == passcode) {
document.write("<center><h1>TP, The Best E-Learning </h1></center>");
} else {
alert("Incorrect Passcode");
location.reload();
}
}
}
</script>
</center>
</body>
<a href="/index.html">home</a>
<a href="bew.html">Back</a>