Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

* WV-333 * WV-332 * WV-327 * Tour fixes (from Beth) to show date span step * Orientation fixes for iPhone

Tilak Joshi0703b820406d
diff --git a/css/sote.css b/css/sote.css
index 8c49eaf55..29bfbda6a 100644
--- a/css/sote.css
+++ b/css/sote.css
@@ -45,7 +45,7 @@ h1, h2, h3, h4, h5, h6 { font-weight:400; }
/*#switch ul li div.hidden a:hover img {border:#155678 2px solid; }*/
#info_drop { border:none; margin:0px;}
-#info_drop div.hidden a {display:block; color:#fff; font-weight:100; font-size: 11px; width:70px; padding: 2px 5px; text-align:right; text-decoration:none;}
+#info_drop div.hidden a {display:block; color:#fff; font-weight:100; line-height:1em; font-size: 11px; width:70px; padding: 2px 5px; text-align:right; text-decoration:none;}
#info_drop div.hidden a:hover {background: rgba(38,43,49,0.45); }
#info_drop:hover div.hidden {display:block; background: rgba(38,43,49,0.45); width:80px; margin-left:-40px; margin-top:2px;}
#info {display:block; width:40px; height:40px; border:none;}
@@ -65,7 +65,7 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolu
#products {display:block; float:left; position:relative; left:0; }
#banner {
- display:block; z-index:291; float:left; position:relative; width:100%; background: transparent url("../images/toolbarbg.png");
+ display:block; z-index:291; float:left; position:relative; width:100%; height:47px; background: transparent url("../images/toolbarbg.png");
}
#wvlogo {background: transparent url('../images/logo.png') no-repeat center; width:154px; height:27px; padding:8px 5px; display:inline-block;}
diff --git a/css/splash.css b/css/splash.css
index 13a01744a..539857bba 100644
--- a/css/splash.css
+++ b/css/splash.css
@@ -218,6 +218,6 @@ ul.tour li{
}
.joyride-tip-guide {
- z-index: 220;
+ z-index: 293;
}
diff --git a/index.html b/index.html
index 9a55207ef..91ad7c1f0 100644
--- a/index.html
+++ b/index.html
@@ -180,7 +180,7 @@
</div>
</div>
<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="datePanel" data-id="timedsecbutton" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;bordered:true"></li>
<li id="productPanel" data-id="productsHolder" 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" class="toolbarTip" data-id="toolbarlist" data-button="Next" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;bordered:true;class:toolbar"></li>
diff --git a/js/datePicker.js b/js/datePicker.js
index eb4206701..609365b8d 100644
--- a/js/datePicker.js
+++ b/js/datePicker.js
@@ -118,7 +118,7 @@ SOTE.widget.DatePicker.resize = function(e){
self.ds.hide();
self.mds.show();
if(val)
- self.ds.setValue(val);
+ self.mds.setValue(val);
}
self.changed = false;
self.resizing = false;
diff --git a/js/main.js b/js/main.js
index f5cec501c..e33b7ce9c 100644
--- a/js/main.js
+++ b/js/main.js
@@ -2,6 +2,7 @@ $(function() {// Initialize "static" vars
var log = Logging.getLogger();
var selector;
+ var mobileSafari = false;
var hideURLbar = function() {
window.scrollTo(0, 1);
@@ -9,10 +10,32 @@ $(function() {// Initialize "static" vars
var checkMobile = function() {
if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1) {
+ // In Safari, the true version is after "Safari"
+ if (navigator.userAgent.indexOf('Safari')!=-1) {
+ // Set a variable to use later
+ mobileSafari = true;
+ }
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
+ addEventListener("orientationchange", function() {
+ setTimeout(hideURLbar, 0);
+ }, false);
}
+
+ // Set the div height
+ function setHeight($body) {
+ var new_height = $(window).height();
+ // if mobileSafari add +60px
+ if (mobileSafari){ new_height += 60; };
+ $body.css('min-height', 0 );
+ $body.css('height', new_height );
+ }
+
+ setHeight( $('#mappage') );
+ $(window).resize(function() {
+ setHeight($('#mappage'));
+ });
};
var entryPoint = function() {