This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change 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+ } ) ;
123const text = document . querySelector ( 'input.password.visible' ) ;
224const pass = document . querySelector ( 'input.password.hidden' ) ;
325const handle = document . querySelector ( 'img.handle' ) ;
You can’t perform that action at this time.
0 commit comments