This commit is contained in:
Valentin Boettcher 2019-06-26 11:39:45 +02:00
parent 76ca2e68fa
commit 3fdbf78fcf
2 changed files with 8 additions and 8 deletions

View file

@ -8,9 +8,9 @@ the [[http://www.gigamonkeys.com/book/][online version]] of Practical Common Lis
- syntax highlighting
- table of contents
- quick-nav:
- =right-arrow-key= - next chapter
- =left-arrow-key= - previous chapter
- =HOME/POS1= - index page
- =n= - next chapter
- =p= - previous chapter
- =h= - index page
- footnote popvers
** TODO
@ -20,3 +20,4 @@ the [[http://www.gigamonkeys.com/book/][online version]] of Practical Common Lis
** Credits
- syntax highlighting: [[https://github.com/orthecreedence/highlight-lisp][highlight-lisp]]
- Table of Contents: [[https://tscanlin.github.io/tocbot/][Tocbot]]
- Tooltips: [[https://github.com/atomiks/tippyjs][Tippy]]

View file

@ -87,14 +87,14 @@ function gotoNext() {
// set up the navigation shortcuts
function setUpNav() {
document.addEventListener('keypress', (event) => {
switch(event.keyCode) {
case 37:
switch(event.key) {
case 'p':
goToPrevious();
break;
case 39:
case 'n':
gotoNext();
break;
case 36:
case 'h':
document.location.href = 'index.html';
break;
}
@ -163,7 +163,6 @@ function linkFootnotes() {
// Let's apply that stuff.
loadChapters().then(newChapters => {
console.log(newChapters);
chapters = newChapters;
setUpNumbering();
});