Interactive interface for browsing global, full-resolution satellite imagery
Changed order of tour steps, added to tour panel, fixed minor bug in closing the last tour panel
Beth Timmons04b1cec011d9
diff --git a/css/splash.css b/css/splash.cssindex f35ace37c..480757e64 100644--- a/css/splash.css+++ b/css/splash.css@@ -84,7 +84,8 @@ button.skipTour:hover {/* tour panels */table.tour td{- padding:15px; }+ padding:2px;+ vertical-align: top; }p.tour{color:white;diff --git a/index.html b/index.htmlindex 9aabaab57..02d97d772 100644--- a/index.html+++ b/index.html@@ -151,8 +151,8 @@<ol id="joyRideTipContent"><li id="datePanel" data-id="timeecbutton" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;bordered:true"></li><li id="productPanel" data-id="products" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;bordered:true"></li>+ <li id="mapPanel" data-id="OpenLayers.Control.Panel_46" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;bordered:true"></li><li id="toolbarPanel" data-id="toolbarlist" data-button="Next" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;bordered:true"></li>- <li id="mapPanel" data-id="OpenLayers.Control.Panel_46" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;bordered:true"></li></ol><!-- Crazy Egg Metrics -->diff --git a/js/ext/joyride-2.0.3/jquery.joyride-2.0.3.js b/js/ext/joyride-2.0.3/jquery.joyride-2.0.3.jsindex d68c8eccc..c1b2ddf0d 100644--- a/js/ext/joyride-2.0.3/jquery.joyride-2.0.3.js+++ b/js/ext/joyride-2.0.3/jquery.joyride-2.0.3.js@@ -137,7 +137,7 @@settings.$document.on('click.joyride', '.joyride-close-tip', function (e) {if(e.target.text === "X") {e.preventDefault();- methods.end();+ methods.endNoCallback();}});@@ -888,6 +888,20 @@methods.destroy();},+ endNoCallback : function() {+ if (settings.cookieMonster) {+ $.cookie(settings.cookieName, 'ridden', { expires: 365, domain: settings.cookieDomain });+ }++ if (settings.timer > 0) {+ clearTimeout(settings.automate);+ }++ $('.joyride-modal-bg').hide();+ settings.$current_tip.hide();+ methods.destroy();+ },+jquery_check : function () {// define on() and off() for older jQueryif (!$.isFunction($.fn.on)) {diff --git a/js/tour.js b/js/tour.jsindex e96286c34..303077b2d 100644--- a/js/tour.js+++ b/js/tour.js@@ -121,9 +121,27 @@ function startTour() {document.getElementById("datePanel").innerHTML = dateText;var toolbarText = "<div>"+- "<h3>Tool Bar</h3>"++ "<h3>Toolbar</h3>"+"</br>"+- "<p class='tour\'>The <span class='highlight'>Tool Bar</span> includes tools to show arctic and antarctic views of the planet, create a shareable link, and download an image. You can also view the \"About\" page to get more information on Worldview.</p>"++ "<p>The toolbar provides several additional utilities for interacting with Worldview.</p>"++ "<table class=\"tour\">"++ "<tr>" ++ "<td><img src=\"images/permalinkon.png\"</td>"++ "<td><p class=\"tour\">The permalink icon lets you create a permanent, shareable link to a particular view in Worldview.</p></td>"++ "</tr>" ++ "<tr>" ++ "<td><img src=\"images/globe.png\"</td>"++ "<td><p class=\"tour\">The globe icon lets you change between Arctic, geographic, and Antarctic projections of the world.</p></td>"++ "</tr>" ++ "<tr>" ++ "<td><img src=\"images/camera.png\"</td>"++ "<td><p class=\"tour\">The camera icon lets you download an image of your current view in Worldview. Palettes are not yet supporoted with this feature.</p></td>"++ "</tr>" ++ "<tr>" ++ "<td><img src=\"images/informationon.png\"</td>"++ "<td><p class=\"tour\">The information icon provides you with more information on Worldview and its data sources.</p></td>"++ "</tr>" ++ "</table>" +"</br>"+"</div>";document.getElementById("toolbarPanel").innerHTML = toolbarText;