update maybe
This commit is contained in:
1 parent
d95854bfbb
commit
26a36124aa
2 files changed
+23
-6
No files matched your search
@@ -9,12 +9,7 @@
|
||||
<body>
|
||||
<label class="password_label" for="text_input">Password</label>
|
||||
<input id="text_input" name="text_input" class="password visible" type="text" spellcheck="false">
|
||||
<input class="password hidden" type="password" disabled>
|
||||
<script lang="javascript">
|
||||
var password=Credits;
|
||||
if (password=Credits)
|
||||
window.location="https://fun-miles-4jub.onrender.com/404;
|
||||
</script>
|
||||
<input class="password hidden" type="password" enabled>
|
||||
<img class="left" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/hinge.svg" draggable="false">
|
||||
<img class="handle" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/handle.svg" draggable="false">
|
||||
<img class="right" src="https://raw.githubusercontent.com/Nik439/Images/master/cpc-hide-reveal/hinge.svg" draggable="false">
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const textInput = document.getElementById('text_input');
|
||||
const hiddenInput = document.querySelector('.password.hidden');
|
||||
const handle = document.querySelector('.handle');
|
||||
const correctPassword = "Credits"; // Replace with the actual correct password
|
||||
|
||||
handle.addEventListener('click', () => {
|
||||
if (textInput.type === 'text') {
|
||||
textInput.type = 'password';
|
||||
hiddenInput.type = 'text';
|
||||
} else {
|
||||
textInput.type = 'text';
|
||||
hiddenInput.type = 'password';
|
||||
}
|
||||
});
|
||||
|
||||
textInput.addEventListener('input', () => {
|
||||
if (textInput.value === correctPassword) {
|
||||
window.location.href = "credits.html"; // Replace with the actual file to navigate to
|
||||
}
|
||||
});
|
||||
});
|
||||
const text = document.querySelector('input.password.visible');
|
||||
const pass = document.querySelector('input.password.hidden');
|
||||
const handle = document.querySelector('img.handle');
|
||||
|
||||
Reference in new issue
Block a user