Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Map

By: a guest on May 2nd, 2012  |  syntax: HTML  |  size: 5.22 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <html>
  2.  
  3. <head>
  4.        
  5. <base href="http://zoom.it/" />
  6.  
  7. <script type="text/javascript">
  8.         var BASE = "http://zoom.it/";    
  9.         var PUBLIC = "http://zoom.it/";
  10.        
  11.         function $(elmt) {
  12.             if (typeof elmt == "string") {
  13.                 return document.getElementById(elmt);
  14.             }
  15.             return elmt;
  16.         }
  17.        
  18.         if (typeof Seadragon === "undefined") {
  19.             Seadragon = {};
  20.         }
  21.     </script>
  22.  
  23.     <script>
  24.         // reusable helper to progressively enhance button images w/ hover and pressed states!
  25.         function addHoverAndPressedStates(img, srcHover, srcPressed) {
  26.             img.srcRest = img.src;
  27.             img.srcHover = srcHover;
  28.             img.srcPressed = srcPressed;
  29.             img.onmouseover = onImageMouseOver;
  30.             img.onmouseout = onImageMouseOut;
  31.             img.onmousedown = onImageMouseDown;
  32.             img.onmouseup = onImageMouseUp;
  33.         }
  34.  
  35.         function onImageMouseOver() {
  36.             this.src = this.srcHover;
  37.         }
  38.  
  39.         function onImageMouseOut() {
  40.             this.src = this.srcRest;
  41.         }
  42.  
  43.         function onImageMouseDown() {
  44.             this.src = this.srcPressed;
  45.         }
  46.  
  47.         function onImageMouseUp() {
  48.             this.src = this.srcHover;
  49.         }
  50.     </script>
  51.     </head>
  52.  
  53. <body>
  54.  
  55. <script type="text/javascript" src="scripts/tinydzi-embed-min.js"></script>
  56.  
  57.                 <script type="text/javascript">
  58.                  
  59.                  Seadragon.Config.debugMode = false;
  60.            
  61.                     Seadragon.Config.imagePath = BASE + "images/seajax/";
  62.                     Seadragon.Config.xapPath = BASE + "scripts/";
  63.                     Seadragon.Config.tinydziRoot = BASE;
  64.            
  65.                     Seadragon.Strings.setString("About.LogoUrl", PUBLIC);
  66.                     Seadragon.Strings.setString("About.MainUrl", PUBLIC + "pages/create/");
  67.                     Seadragon.Strings.setString("TinyDZI.About.ReturnLink", PUBLIC + "{0}");
  68.            
  69.                     // full page logic -- when full page is entered, update the URL
  70.                     // fragment (AKA hash) to "#full", and remove it when full page is
  71.                     // exited. on page load, enter full page if the fragment is there.
  72.  
  73.                     var FULL_PAGE_HASH = "#full";
  74.  
  75.                     function checkFullPage(viewer) {
  76.                         // TEMP quick and dirty logic
  77.                         viewer.setFullPage(location.hash === FULL_PAGE_HASH);
  78.                     }
  79.  
  80.                     Seadragon.tinydziEmbed.onViewerResize = function(id, viewer) {
  81.                         if (viewer.isFullPage()) {
  82.                             location.hash = FULL_PAGE_HASH;
  83.                         } else if (location.hash) {
  84.                             // only explicitly clearing hash if one is already set
  85.                             // because "clearing" actually results in a "#" hash.
  86.                             location.hash = "";
  87.                         }
  88.                     };
  89.  
  90.                     // if the viewer is created before we get to the tracking code at
  91.                     // the bottom of this page, save the viewer instance...
  92.                     var viewerInstance = null;
  93.                     Seadragon.tinydziEmbed.onViewerCreate = function(id, viewer) {
  94.                         viewerInstance = viewer;
  95.                         checkFullPage(viewer);
  96.                     };
  97.  
  98.                     // similarly, if the user interacts before we get to the tracking
  99.                     // code at the bottom of this page, remember it...
  100.                     var firstInteraction = false;
  101.                     Seadragon.tinydziEmbed.onFirstInteraction = function(id, viewer) {
  102.                         firstInteraction = true;
  103.                     };
  104.  
  105.                     // if the user uses the browser's back/forward buttons, update full page!
  106.                     window.onhashchange = function() {
  107.                         checkFullPage(viewerInstance);
  108.                     };
  109.  
  110.                     // finally, the data!
  111.                     // important: lowercase status conflicts with window.status!
  112.  
  113.                     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":""};
  114.                         // saving this to a var because report abuse functionality needs it.
  115.  
  116.                    
  117.                     Seadragon.tinydziEmbed("auto", "100%", "gO0L",
  118.                         STATUS, {"Height":0,"Id":"gO0L","TileFormat":"","TileOverlap":0,"TileSize":0,"Width":0});
  119.                 </script>
  120.             </div>
  121.             <div class="right"></div>
  122.         </div>
  123.         <div class="bottom">
  124.             <div class="left"></div>
  125.             <div class="center"></div>
  126.             <div class="right"></div>
  127.         </div>
  128.     </div>
  129.                
  130.  
  131. </body>
  132.  
  133. </html>