Skip to content

Commit 3621640

Browse files
committed
- Add favicon
- Fix default comic link - Add proper keybinds
1 parent 4941763 commit 3621640

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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';">

comics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
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>

js/comics.js

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff 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 ================================ //

0 commit comments

Comments
 (0)