Created
February 25, 2015 02:30
-
-
Save gordonbisnor/4641b0ede13dd3bdead6 to your computer and use it in GitHub Desktop.
This file contains 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
<div class="flexpaper_viewer_wrap flexpaper_viewer_container"> | |
<div id="documentViewer" class="flexpaper_viewer"></div> | |
</div> | |
<script type="text/javascript"> | |
$('#documentViewer').FlexPaperViewer({config:{}}); | |
$(function() { | |
$('#documentViewer').bind('onDocumentLoaded',function(){ | |
window.$FlexPaper = window.getDocViewer = window["$FlexPaper"] = function(id){ | |
var instance = (id==="undefined")?"":id; | |
if (window['ViewerMode'] == 'flash') { | |
return window["FlexPaperViewer_Instance"+instance].getApi(); | |
} else if(window['ViewerMode'] == 'html'){ | |
return window["FlexPaperViewer_Instance"+instance]; | |
}; | |
}; | |
setTimeout(function(){ | |
$FlexPaper('documentViewer').searchText('mackenzie king'); | |
$FlexPaper('documentViewer').gotoPage(33) | |
}, | |
1500); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment