Activated speaker-notes feature for offline presentations.

This commit is contained in:
David Russell 2017-04-29 10:28:08 +07:00
parent 18ef3fd3a4
commit 912dd03796

View File

@ -31,8 +31,8 @@
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/Chart.min.js"}, { src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/Chart.min.js"},
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/csv2chart.js"}, { src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/chart/csv2chart.js"},
} }
@if(ssm.showNotes()) { @if(offline) {
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/notes/notes.js", async: true }, { src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/notes/notes.js", async: true },
} }
{ src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, { src: "@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
@if(ssm.mathEnabled()) { @if(ssm.mathEnabled()) {
@ -43,7 +43,7 @@
Reveal.configure({ Reveal.configure({
keyboard: { keyboard: {
83: function() { // bind "s" key to "select" code block content 88: function() { // bind "x" key to "select" code block content
var currentSlide = Reveal.getCurrentSlide(); var currentSlide = Reveal.getCurrentSlide();
var preBlock = $(currentSlide).find("pre"); var preBlock = $(currentSlide).find("pre");