Skip to content

Instantly share code, notes, and snippets.

@bmatzelle
Created December 17, 2014 16:51
Show Gist options
  • Save bmatzelle/f015981938a55de4bd43 to your computer and use it in GitHub Desktop.
Save bmatzelle/f015981938a55de4bd43 to your computer and use it in GitHub Desktop.
Python Django template example
<html>
<head>
<link href="https://ssl.vuzit.com/stylesheets/Vuzit-2.10.css" rel="Stylesheet" type="text/css" />
<script src="https://ssl.vuzit.com/javascripts/Vuzit-2.10.js" type="text/javascript"></script>
<script type="text/javascript">
// Called when the page is loaded.
function initialize() {
vuzit.Base.apiKeySet("{{public_key}}");
var options = {signature: '{{signature}}',
timestamp: '{{timestamp}}', ssl: true}
var viewer = vuzit.Viewer.fromId("{{document_id}}", options);
viewer.display(document.getElementById("vuzit_viewer"), { zoom: 1 });
}
</script>
</head>
<body onload="initialize()">
<div id="vuzit_viewer" style="width: 650px; height: 500px;"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment