aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Bidelman2012-04-10 15:16:55 -0700
committerEric Bidelman2012-04-10 15:16:55 -0700
commita43294ef655c97758b425bd7a0c1d005cdd83483 (patch)
treed1cde3df6c5009e63f14158b46112ba2cb5afa4b /js
parent10b9ae9cd661540c377b5e598cd1f38b7f79cc2d (diff)
downloadio-slides-remote-a43294ef655c97758b425bd7a0c1d005cdd83483.tar.gz
Code highlighting in place
Diffstat (limited to 'js')
-rw-r--r--js/slides.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/slides.js b/js/slides.js
index eee44ee..3f2366b 100644
--- a/js/slides.js
+++ b/js/slides.js
@@ -123,6 +123,10 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) {
123 e.preventDefault(); 123 e.preventDefault();
124 break; 124 break;
125 125
126 case 72: // H
127 document.body.classList.toggle('highlight-code');
128 break;
129
126 case 78: // N 130 case 78: // N
127 document.body.classList.toggle('with-notes'); 131 document.body.classList.toggle('with-notes');
128 break; 132 break;