Created
August 17, 2009 18:01
-
-
Save bmatzelle/169277 to your computer and use it in GitHub Desktop.
Vuzit full screen example snippet
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
<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