mirror of
https://github.com/seigler/janus
synced 2025-07-26 17:26:10 +00:00
feat: better example slides
This commit is contained in:
parent
59e965047e
commit
22927bfd38
4 changed files with 382 additions and 17 deletions
|
@ -35,6 +35,7 @@
|
|||
}
|
||||
|
||||
var sessionListener = function(e) {
|
||||
console.log(e);
|
||||
if (e.url === window.location.href) {
|
||||
if (e.key === 'janus-currentSlideNumber') {
|
||||
setCurrentSlide(+e.newValue);
|
||||
|
@ -48,6 +49,9 @@
|
|||
shortcut.add('F1', function() {
|
||||
document.body.classList.toggle('show-notes');
|
||||
});
|
||||
shortcut.add('F2', function() {
|
||||
window.open(window.location.href, '_blank');
|
||||
});
|
||||
shortcut.add('Page_down', function() {
|
||||
setCurrentSlide(currentSlideNumber + 1);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue