Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 26a3612

Browse files
update maybe
1 parent d95854b commit 26a3612

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

pass.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
<body>
1010
<label class="password_label" for="text_input">Password</label>
1111
<input id="text_input" name="text_input" class="password visible" type="text" spellcheck="false">
12-
<input class="password hidden" type="password" disabled>
13-
<script lang="javascript">
14-
var password=Credits;
15-
if (password=Credits)
16-
window.location="https://fun-miles-4jub.onrender.com/404;
17-
</script>
12+
<input class="password hidden" type="password" enabled>
1813
<img class="left" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/hinge.svg" draggable="false">
1914
<img class="handle" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/handle.svg" draggable="false">
2015
<img class="right" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/hinge.svg" draggable="false">

pass.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
document.addEventListener('DOMContentLoaded', () => {
2+
const textInput = document.getElementById('text_input');
3+
const hiddenInput = document.querySelector('.password.hidden');
4+
const handle = document.querySelector('.handle');
5+
const correctPassword = "Credits"; // Replace with the actual correct password
6+
7+
handle.addEventListener('click', () => {
8+
if (textInput.type === 'text') {
9+
textInput.type = 'password';
10+
hiddenInput.type = 'text';
11+
} else {
12+
textInput.type = 'text';
13+
hiddenInput.type = 'password';
14+
}
15+
});
16+
17+
textInput.addEventListener('input', () => {
18+
if (textInput.value === correctPassword) {
19+
window.location.href = "credits.html"; // Replace with the actual file to navigate to
20+
}
21+
});
22+
});
123
const text = document.querySelector('input.password.visible');
224
const pass = document.querySelector('input.password.hidden');
325
const handle = document.querySelector('img.handle');

0 commit comments

Comments
 (0)