Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gordonbisnor/4641b0ede13dd3bdead6 to your computer and use it in GitHub Desktop.
Save gordonbisnor/4641b0ede13dd3bdead6 to your computer and use it in GitHub Desktop.
<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