Skip to content

Instantly share code, notes, and snippets.

@bmatzelle
Created August 17, 2009 18:01
Show Gist options
  • Save bmatzelle/169277 to your computer and use it in GitHub Desktop.
Save bmatzelle/169277 to your computer and use it in GitHub Desktop.
Vuzit full screen example snippet
<script type="text/javascript">
// Once the page is loaded call this.
function pageLoaded() {
// Replace with your public key
vuzit.Base.apiKeySet("YOUR_PUBLIC_KEY");
// Replace with the document you are loading
var viewer = vuzit.Viewer.fromId("DOCUMENT_ID");
viewer.display(document.getElementById("viewer"), { zoom: 1, showFullScreen: true });
// Tells the Vuzit widget where the "Full screen" link should go. This is purely
// an example. You should build it to match your site.
viewer.setFullScreenUrl("http://yoursite.com/view?id=1dm8");
}
// Callback when the page is loaded.
vuzit.Event.observe(window, 'load', pageLoaded);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment