File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
12 - Key Sequence Detection Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 66 < script type ="text/javascript " src ="http://www.cornify.com/js/cornify.js "> </ script >
77</ head >
88< body >
9+ < p > TYPE: 'wesbos' to active the gifs</ p >
910< script >
11+ const pwd = 'wesbos' ;
12+ let pressed = Array ( Array . from ( pwd ) . length ) ;
13+
14+ window . addEventListener ( 'keyup' , e => {
15+ pressed . shift ( ) ;
16+ pressed . push ( e . key ) ;
17+ if ( pressed . join ( '' ) === pwd ) cornify_add ( ) ;
18+ } ) ;
1019</ script >
1120</ body >
1221</ html >
Original file line number Diff line number Diff line change 15159 . [x] ~~ Dev Tools Domination~~
161610 . [x] ~~ Hold Shift and Check Checkboxes~~
171711 . [ ] Custom Video Player
18- 12 . [ ] Key Sequence Detection
18+ 12 . [x] ~~ Key Sequence Detection~~
191913 . [ ] Slide in on Scroll
202014 . [ ] JavaScript References vs. Copying
212115 . [ ] LocalStorage
You can’t perform that action at this time.
0 commit comments