Last active
December 10, 2019 09:51
-
-
Save gartmeier/c0439490b0344501380a6411df0867dc to your computer and use it in GitHub Desktop.
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 urlPieces = window.location.href.split('/'); | |
var slideFolder = urlPieces[urlPieces.length - 2]; | |
function gotoPage(p) { | |
for (var i = 0; i < slideOrder.length; i++) { | |
var pieces = slideOrder[i].split('|'); | |
if (pieces[0] == slideFolder && pieces[1] == "" + p) { | |
Ti.App.fireEvent('gotoVSlide', {p: i}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment