-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (40 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>merry christmas!!!!!!!!!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="containerss">
<p id="demo"></p>
passcode <input type="text" id="myText" placeholder="input here">
<button onclick="myFunction()" id="dottedb">Go</button>
<p id="bottomtext"><i>no hyphens, punctuation or spaces</i> </p>
<h2 style='text-align: center;'>🎄🎄🎄🎄🎄🎄🎄🎄🎄🎄</h2>
</div>
<div style="position: absolute; bottom: 5px; color: rgb(70, 70, 70)">
<i>created by ayush in 2021</i>
</div>
<script>
var url = window.location.href // for current url
var captured = /error=([^&]+)/.exec(url)[1]; // Value is in [1] ('384' in our case)
var result = captured ? captured : '';
if (result == '1') {
document.getElementById("demo").innerHTML = "Invalid Code";
}
function myFunction() {
var x = document.getElementById("myText").value;
if(x.length != 0 ){
document.getElementById("demo").innerHTML = '🎄unlocking...🎄';
setTimeout(function(){
window.location.href = "/" + x + ".html";
}, 500);
}
}
</script>
<script src="index.js"></script>
</body>
</html>