Interactive interface for browsing global, full-resolution satellite imagery
Fixed the tour. Left aligned the text on the splash screen and conclusion panel. Included page numbers on tour panels.
unknownd68f8540fe4f
diff --git a/src/css/splash.css b/src/css/splash.cssindex 3822d5feb..be436f6c4 100644--- a/src/css/splash.css+++ b/src/css/splash.css@@ -17,6 +17,11 @@ table.splash td{p.splash{color:rgb(38, 43, 49); }++p.splashwelcome{+ color:rgb(38, 43, 49);+ text-align:left;+ font-size:14px; }p.splash span.highlight{font-weight:bold; }diff --git a/src/ext/joyride/jquery.joyride.js b/src/ext/joyride/jquery.joyride.jsindex 1d1425a66..01426bf63 100644--- a/src/ext/joyride/jquery.joyride.js+++ b/src/ext/joyride/jquery.joyride.js@@ -31,6 +31,7 @@'postRideCallback' : $.noop, // A method to call once the tour closes (canceled or complete)'postStepCallback' : $.noop, // A method to call after each step'bordered' : false, // true or false to control whether a border is shown+ 'includepage' : false, // true or false to control whether a page number is shown under the next button'adjustForPhone' : true, // change window position for phones (if false, windows show in default position)'template' : { // HTML segments for tip layout'link' : '<a href="#close" class="joyride-close-tip">X</a>',@@ -99,7 +100,7 @@}settings.$document.on('click', '.joyride-next-tip, .joyride-modal-bg', function (e) {- if(e.target.text === "Next") {+ if(e.target.text === "Next" || e.target.text === "Finish") {e.preventDefault();e.stopImmediatePropagation();if (settings.$li.next().length < 1) {@@ -170,7 +171,7 @@var opts_len = opts_arr.length;var ii, p;var isBordered = settings.bordered;-+ var usePage = settings.includepage;opts.tip_class = opts.tip_class || '';if(isBordered) {@@ -182,6 +183,12 @@methods.button_text(opts.button_text, opts.li) +settings.template.link +methods.timer_instance(opts.index);+ if(usePage) {+ var numpages = settings.$content_el[0].children.length;+ var page = opts.index + 1;+ var pagestr = "<p style='text-align:right'>(page " + page + " of " + numpages + ")</p>"+ content += pagestr;+ }if(isBordered) {$blank.append($(settings.template.tipborder));}diff --git a/src/js/tour.js b/src/js/tour.jsindex e5882c584..01504a7bc 100644--- a/src/js/tour.js+++ b/src/js/tour.js@@ -78,7 +78,7 @@ Worldview.namespace("Tour");"<h3>Welcome to Worldview!</h3>"+"</br></br>"+"<center>"+- "<p class=\"splash\" style='font-size:14px;'>This tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> allows users to interactively browse satellite imagery in near real-time, generally within 3 hours of observation. Use the tools described below to change the imagery on the map and compare it to past observations.</p>"++ "<p class=\"splashwelcome\">This tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> allows users to interactively browse satellite imagery in near real-time, generally within 3 hours of observation. Use the tools described below to change the imagery on the map and compare it to past observations.</p>"+"</br></br>"+"<table id=\"splashTable\" class=\"splash\">"+"<tr>"+@@ -229,7 +229,7 @@ Worldview.namespace("Tour");"<center>"+"<h3>Finished!</h3>"+"</br></br>"+- "<p class='tour' style='font-size:14px;'>You have now completed a tour of Worldview! If you followed the “Try It” steps, you’re now looking at fires in northern California as they were observed by satellites on August 23, 2012. You can use the tools in any order. We hope you continue exploring! <p>"++ "<p class='splashwelcome'>You have now completed a tour of Worldview! If you followed the “Try It” steps, you’re now looking at fires in northern California as they were observed by satellites on August 23, 2012. You can use the tools in any order. We hope you continue exploring! <p>"+"</br>"+"<table class='tour'>"+"<tr>"+@@ -251,6 +251,7 @@ Worldview.namespace("Tour");e.stopPropagation();$('#joyRideTipContent').joyride({adjustForPhone:false,bordered:true,+ includepage:true,template : {'link':'<a href="#" class="joyride-close-tip">X</a>'},postStepCallback : function (index, tip) {if(index == 4) {@@ -290,8 +291,10 @@ Worldview.namespace("Tour");$('#joyRideTipContent').joyride({adjustForPhone:false,bordered:true,+ includepage:true,template : {'link':'<a href="#" class="joyride-close-tip">X</a>'},postStepCallback : function (index, tip) {+ console.log("index = " + index);if(index == 4) {log.debug("finished tour");conclusionPanel.show();