Skip to content
Snippets Groups Projects
Commit fd7d09f6 authored by Damjan Georgievski's avatar Damjan Georgievski
Browse files

find correct path to open html file from the notes.js path

parent cf8708f9
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment