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 6
6
< script type ="text/javascript " src ="http://www.cornify.com/js/cornify.js "> </ script >
7
7
</ head >
8
8
< body >
9
+ < p > TYPE: 'wesbos' to active the gifs</ p >
9
10
< 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
+ } ) ;
10
19
</ script >
11
20
</ body >
12
21
</ html >
Original file line number Diff line number Diff line change 15
15
9 . [x] ~~ Dev Tools Domination~~
16
16
10 . [x] ~~ Hold Shift and Check Checkboxes~~
17
17
11 . [ ] Custom Video Player
18
- 12 . [ ] Key Sequence Detection
18
+ 12 . [x] ~~ Key Sequence Detection~~
19
19
13 . [ ] Slide in on Scroll
20
20
14 . [ ] JavaScript References vs. Copying
21
21
15 . [ ] LocalStorage
You can’t perform that action at this time.
0 commit comments