Interactive interface for browsing global, full-resolution satellite imagery
Fixed mobile display issues in iOS 6-7
Taylor Gunnoece8af0b7f8c6
diff --git a/src/css/dateSpan.css b/src/css/dateSpan.cssindex c8a7a9e46..37043248e 100644--- a/src/css/dateSpan.css+++ b/src/css/dateSpan.css@@ -88,4 +88,3 @@ a.ui-btn-up-c {box-shadow:none;}#mapdiv {margin:0; padding:0; left:0px;}.dateitem {cursor:pointer !important;}-diff --git a/src/css/products.css b/src/css/products.cssindex 17760cdee..8e91c3db6 100644--- a/src/css/products.css+++ b/src/css/products.css@@ -67,7 +67,7 @@.toggleButtonHolder { display:inline; overflow:hidden;}-@media only screen and (max-width: 720px) and (orientation: portrait), only screen and (device-aspect-ratio: 2/3), only screen and (device-aspect-ratio:40/71){+@media only screen and (max-width: 720px) and (orientation: portrait), only screen and (device-aspect-ratio: 2/3) and (orientation:portrait), only screen and (device-aspect-ratio:40/71) and (orientation:portrait){.products {display:block; float:left; min-width:238px; width:100%; height:100%; position:absolute !important; overflow:hidden;background: rgba(38,43,49,0.95); border-radius:0 10px 10px 0; top:0; z-index:295;}.bank { height:96%; }diff --git a/src/index.html b/src/index.htmlindex e6db72b31..cca379089 100644--- a/src/index.html+++ b/src/index.html@@ -14,7 +14,7 @@<!-- meta defines --><meta http-equiv="Content-Type" content="text/html" charset="UTF-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimal-ui"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="keywords" content="nasa, worldview, nasa worldview, eosdis worldview, satellite imagery, remote sensing, natural hazards, natural disasters, near real-time, nrt, lance, wildfire management, air quality, weather forecasting, agriculture, dust storms, smoke plumes, vegetation, severe storms, shipping, fisheries, floods, drought, oil spills"><meta name="description" content="Interactive interface for browsing full-resolution, global, near real-time satellite imagery. Supports time-critical application areas such as wildfire management, air quality measurements, and weather forecasting. Data is generally available within three hours of observation.">diff --git a/src/js/Worldview/Support.js b/src/js/Worldview/Support.jsindex 9c11c070c..fbeffdab7 100644--- a/src/js/Worldview/Support.js+++ b/src/js/Worldview/Support.js@@ -121,7 +121,7 @@ Worldview.namespace("Support");};var hideURLbar = function() {- window.scrollTo(0, 1);+ window.scrollTo(0, 0);};var checkMobile = function() {@@ -132,30 +132,32 @@ Worldview.namespace("Support");mobileSafari = true;}addEventListener("load", function() {- setTimeout(hideURLbar, 0);+ setTimeout(hideURLbar, 0);}, false);addEventListener("orientationchange", function() {- setTimeout(hideURLbar, 0);+ setTimeout(hideURLbar, 0);}, false);}// Set the div heightfunction setHeight($body) {- if (navigator.userAgent.indexOf('iPhone') != -1 && navigator.userAgent.indexOf('Safari')!=-1) {+ if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)){+ $("div#app.ui-page.ui-body-c.ui-page-active").css("min-height", 0);+ }+ else {var new_height = $(window).height();// if mobileSafari add +60pxnew_height += 60;$body.css('min-height', 0 );$body.css('height', new_height );-}-}-- setHeight( $('#mappage') );++ setHeight( $('#app') );$(window).resize(function() {- setHeight($('#mappage'));+ setHeight($('#app'));});+};var modernSetTimeout = function() {diff --git a/src/js/Worldview/Widget/DateSlider.js b/src/js/Worldview/Widget/DateSlider.jsindex ed78e4498..e3da1db2b 100644--- a/src/js/Worldview/Widget/DateSlider.js+++ b/src/js/Worldview/Widget/DateSlider.js@@ -140,8 +140,12 @@ Worldview.Widget.DateSlider.prototype = new SOTE.widget.Component;Worldview.Widget.DateSlider.prototype.init = function(){// inherit styles into the user-specified div+ if ($(window).width() < 720) { //this is not the best way to do this+ $("#timeds").css("display","none");+ $("#timemds").css("display","block");+ }this.container.setAttribute("class","datespan");-+var dateHolder = document.createElement('div');dateHolder.setAttribute('id',this.id+'dateHolder');dateHolder.setAttribute('class','dateHolder');diff --git a/src/js/main.js b/src/js/main.jsindex c75d17028..dd4160fec 100644--- a/src/js/main.js+++ b/src/js/main.js@@ -218,6 +218,10 @@ $(function() {// Initialize "static" vars$('#productsHoldertabs li.first a').trigger('click');}});++ document.activeElement.blur();+ $("input").blur();+ $("#eventsHolder").hide();// WiringslayerSideBar.events.on("dataDownloadSelect", function() {