Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <base href="http://zoom.it/" />
- <script type="text/javascript">
- var BASE = "http://zoom.it/";
- var PUBLIC = "http://zoom.it/";
- function $(elmt) {
- if (typeof elmt == "string") {
- return document.getElementById(elmt);
- }
- return elmt;
- }
- if (typeof Seadragon === "undefined") {
- Seadragon = {};
- }
- </script>
- <script>
- // reusable helper to progressively enhance button images w/ hover and pressed states!
- function addHoverAndPressedStates(img, srcHover, srcPressed) {
- img.srcRest = img.src;
- img.srcHover = srcHover;
- img.srcPressed = srcPressed;
- img.onmouseover = onImageMouseOver;
- img.onmouseout = onImageMouseOut;
- img.onmousedown = onImageMouseDown;
- img.onmouseup = onImageMouseUp;
- }
- function onImageMouseOver() {
- this.src = this.srcHover;
- }
- function onImageMouseOut() {
- this.src = this.srcRest;
- }
- function onImageMouseDown() {
- this.src = this.srcPressed;
- }
- function onImageMouseUp() {
- this.src = this.srcHover;
- }
- </script>
- </head>
- <body>
- <script type="text/javascript" src="scripts/tinydzi-embed-min.js"></script>
- <script type="text/javascript">
- Seadragon.Config.debugMode = false;
- Seadragon.Config.imagePath = BASE + "images/seajax/";
- Seadragon.Config.xapPath = BASE + "scripts/";
- Seadragon.Config.tinydziRoot = BASE;
- Seadragon.Strings.setString("About.LogoUrl", PUBLIC);
- Seadragon.Strings.setString("About.MainUrl", PUBLIC + "pages/create/");
- Seadragon.Strings.setString("TinyDZI.About.ReturnLink", PUBLIC + "{0}");
- // full page logic -- when full page is entered, update the URL
- // fragment (AKA hash) to "#full", and remove it when full page is
- // exited. on page load, enter full page if the fragment is there.
- var FULL_PAGE_HASH = "#full";
- function checkFullPage(viewer) {
- // TEMP quick and dirty logic
- viewer.setFullPage(location.hash === FULL_PAGE_HASH);
- }
- Seadragon.tinydziEmbed.onViewerResize = function(id, viewer) {
- if (viewer.isFullPage()) {
- location.hash = FULL_PAGE_HASH;
- } else if (location.hash) {
- // only explicitly clearing hash if one is already set
- // because "clearing" actually results in a "#" hash.
- location.hash = "";
- }
- };
- // if the viewer is created before we get to the tracking code at
- // the bottom of this page, save the viewer instance...
- var viewerInstance = null;
- Seadragon.tinydziEmbed.onViewerCreate = function(id, viewer) {
- viewerInstance = viewer;
- checkFullPage(viewer);
- };
- // similarly, if the user interacts before we get to the tracking
- // code at the bottom of this page, remember it...
- var firstInteraction = false;
- Seadragon.tinydziEmbed.onFirstInteraction = function(id, viewer) {
- firstInteraction = true;
- };
- // if the user uses the browser's back/forward buttons, update full page!
- window.onhashchange = function() {
- checkFullPage(viewerInstance);
- };
- // finally, the data!
- // important: lowercase status conflicts with window.status!
- var STATUS = {"AttributionLink":null,"AttributionText":"","ErrorDetails":"","Id":"gO0L","Progress":0,"SiteDown":0,"Source":"http:\/\/www.rs2006.net\/img\/worldmap.jpg","Stage":10,"StageText":"Queued","Title":"","Type":0,"TypeText":"Unknown","Url":""};
- // saving this to a var because report abuse functionality needs it.
- Seadragon.tinydziEmbed("auto", "100%", "gO0L",
- STATUS, {"Height":0,"Id":"gO0L","TileFormat":"","TileOverlap":0,"TileSize":0,"Width":0});
- </script>
- </div>
- <div class="right"></div>
- </div>
- <div class="bottom">
- <div class="left"></div>
- <div class="center"></div>
- <div class="right"></div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement