File tree Expand file tree Collapse file tree 3 files changed +24
-24
lines changed Expand file tree Collapse file tree 3 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 33
44< head >
55 < title > {{ page.title }}</ title >
6+ < link rel ="icon " href ="/img/duck.png " type ="image/png ">
67 <!-- Main css -->
78 < div id ="theme-fonts ">
89 < link rel ="stylesheet " href ="themes/font/Roboto.css " id ="Roboto " style ="font-family:'Roboto'; ">
Original file line number Diff line number Diff line change 1616 < button class ="comicButton comicButtonZoom comicButtonPlus " type ="button "> + </ button >
1717 </ div >
1818 < div class ="comicHolder ">
19- < img class ="comic " src ="./comics/0001 .bmp " />
19+ < img class ="comic " src ="./comics/000001 .bmp " />
2020 </ div >
2121</ div >
Original file line number Diff line number Diff line change @@ -191,29 +191,28 @@ $(document).on("keydown", (e) => {
191191 * r = random
192192 */
193193 let shift = e . shiftKey
194- console . log ( `Pressed ${ e . key } with shift status ${ shift } ` )
195- // switch (e.key) {
196- // case "ArrowLeft":
197- // if (shift) buttonFirst()
198- // else buttonPrevious()
199- // break
200- // case "ArrowRight":
201- // if (shift) buttonLast()
202- // else buttonNext()
203- // break
204- // case "r":
205- // buttonRandom()
206- // break
207- // case "plus":
208- // buttonPlus()
209- // break
210- // case "minus":
211- // buttonMinus()
212- // break
213- // default:
214- // console.log(`Unhandled key: ${e.key}`);
215- // break;
216- // }
194+ switch ( e . key ) {
195+ case "ArrowLeft" :
196+ if ( shift ) buttonFirst ( )
197+ else buttonPrevious ( )
198+ break
199+ case "ArrowRight" :
200+ if ( shift ) buttonLast ( )
201+ else buttonNext ( )
202+ break
203+ case "r" :
204+ case "R" :
205+ buttonRandom ( )
206+ break
207+ case "=" :
208+ case "+" :
209+ buttonPlus ( )
210+ break
211+ case "-" :
212+ case "_" :
213+ buttonMinus ( )
214+ break
215+ }
217216} )
218217
219218// ================================ ON LOAD ================================ //
You can’t perform that action at this time.
0 commit comments