aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorDamjan Georgievski <gdamjan@gmail.com>2013-02-06 12:24:04 +0100
committerDamjan Georgievski <gdamjan@gmail.com>2013-02-06 12:27:49 +0100
commitfd7d09f6972443279e7d06397b52ddd9d789f51e (patch)
tree929b2304f796a7a1e7d4a9dcc904604daccd2a84 /plugin
parentcf8708f932fe7ba79186f37dd9a8ea94625b5bc4 (diff)
downloadfosdem-2018-presentation-fd7d09f6972443279e7d06397b52ddd9d789f51e.tar
fosdem-2018-presentation-fd7d09f6972443279e7d06397b52ddd9d789f51e.tar.gz
find correct path to open html file from the notes.js path
Diffstat (limited to 'plugin')
-rw-r--r--plugin/notes/notes.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index 7c83366..72f6a10 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -5,7 +5,9 @@
var RevealNotes = (function() {
function openNotes() {
- var notesPopup = window.open( 'plugin/notes/notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
+ var jsFileLocation = document.querySelector('script[src*=notes]').src; // this js file path
+ jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
+ var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
// Fires when slide is changed
Reveal.addEventListener( 'slidechanged', function( event ) {