Last active
August 29, 2015 14:06
-
-
Save jonlow/dbf0310080947604a271 to your computer and use it in GitHub Desktop.
Output links for all pages in a Lectora module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 0, | |
pages = contentframe.document.querySelectorAll('#foldertree a') | |
for (; i < pages.length; i++) { | |
if(!pages[i].querySelector('img')) { | |
console.log(pages[i]); | |
// Now that we have the links we can use the | |
// trivExitPage('page12345.html') function | |
// to handpick pages to navigate to | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment