Skip to content

Commit 87ec637

Browse files
authored
Update index.html
1 parent 8ffb8dc commit 87ec637

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

index.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@
3434
p {
3535
font-size:20px;
3636
}
37+
38+
@keyframes flash {
39+
from { border-color:red;
40+
color:red; }
41+
to {}
42+
}
3743
</style>
3844
</head>
39-
4045

4146
<script>
4247
const bcrypt = require('bcrypt');
43-
const input = document.getElementById("in").innerHTML;
4448

4549
const data = [
4650
"password"
@@ -52,17 +56,16 @@
5256
}
5357

5458
async function check( item, index ) {
55-
works = hash(item) === data[index];
59+
works = hash(pass) === data[index];
5660
}
5761

5862
async function test() {
63+
const input = await document.getElementById("in");
5964
const password = input.innerHTML;
6065
const works = false;
6166
data.forEach( check );
6267

6368
if ( works ) {
64-
input.placeholder = "NOT A PASSWORD";
65-
} else {
6669
window.location = "/pass.html";
6770
}
6871
}
@@ -72,10 +75,10 @@
7275
<body>
7376
<div style="margin-top:35vh;">
7477
<h1 style="margin-bottom:20px;">Zero Bot Gate</h1>
75-
<input type="password" placeholder="Enter Your Passphrase" name="in" required id="in" class="tostyle">
76-
<button onpress="test()" class="tostyle" style="margin-left:20px;width:50px;text-align:center;">></button>
78+
<input type="password" placeholder="Enter Your Passphrase" name="in" required id="in" class="tostyle"/>
79+
<button type="submit" onsubmit="test()" class="tostyle" style="margin-left:20px;width:50px;text-align:center;margin-bottom:30px;">></button>
7780
<div></div>
78-
<button class="tostyle" onclick="/help.html">Need a new passphrase?</button>
81+
<button class="tostyle" href="help.html">Need a new passphrase?</button>
7982
<p>By entering a passphrase and proceeding, you agree to our ToS.</p>
8083
</div>
8184
</body>

0 commit comments

Comments
 (0)