Interactive interface for browsing global, full-resolution satellite imagery
events updates that were stashed. link icons, mobile fixes, etc
Taylor Gunnoe2a86108667e5
diff --git a/web/css/products.css b/web/css/products.cssindex f834d876d..c1418484d 100644--- a/web/css/products.css+++ b/web/css/products.css@@ -9,7 +9,7 @@#productsHolder-tabs .ui-state-default {background: rgba(0, 0, 0, 0);border: 0;- margin: 0 2px -1px 2px;+ margin: 0;padding:0;}@@ -22,7 +22,11 @@}#productsHolder-tabs .ui-tabs-anchor {- padding: 0.5em .3em;+ box-sizing: border-box;+ -moz-box-sizing: border-box;+ -webkit-box-sizing: border-box;+ -o-box-sizing: border-box;+ padding: 0.5em .7em;float: none;}@@ -110,20 +114,42 @@background-position:0 -10px;}*//***********************************Icons***********************************/-.icon-layers { background-position:0 -10px; }-ul#productsHoldertabs .tab:hover i.icon-layers {background-position:0 20px;}-ul#productsHoldertabs li.ui-state-active .tab:hover i.icon-layers {background-position: 0 -10px;}-.icon-download { background-position:-30px -10px; }-ul#productsHoldertabs .tab:hover i.icon-download { background-position:-30px 20px; }-ul#productsHoldertabs li.ui-state-active .tab:hover i.icon-download {background-position:-30px -10px;}-.icon-download-alt{ background-position:-60px -10px; }-.icon-add { background-position:-90px -10px; }-ul#productsHoldertabs .tab:hover i.icon-add { background-position:-90px 20px; }-ul#productsHoldertabs li.ui-state-active .tab:hover i.icon-add {background-position:-90px -10px;}-.icon-add-alt { background-position:-120px -10px; }+.icon-layers {+ background-position:0 -10px;+}+ul#productsHolder-tabs .tab:hover i.icon-layers {+ background-position:0 20px;+}+ul#productsHolder-tabs li.ui-state-active .tab:hover i.icon-layers {+ background-position: 0 -10px;+}+.icon-download {+ background-position:-30px -10px;+}+ul#productsHolder-tabs .tab:hover i.icon-download {+ background-position:-30px 20px;+}+ul#productsHoldertabs li.ui-state-active .tab:hover i.icon-download {+ background-position:-30px -10px;+}+.icon-download-alt {+ background-position:-60px -10px;+}+.icon-add {+ background-position:-90px -10px;+}+ul#productsHolder-tabs .tab:hover i.icon-add {+ background-position:-90px 20px;+}+ul#productsHolder-tabs li.ui-state-active .tab:hover i.icon-add {+ background-position:-90px -10px;+}+.icon-add-alt {+ background-position:-120px -10px;+}.icon-events,-ul#productsHoldertabs li.ui-state-active .tab:hover i.icon-events {+ul#productsHolder-tabs li.ui-state-active.ui-state-hover i.icon-events {display:inline-block;width: 20px;height: 20px;@@ -137,11 +163,11 @@ ul#productsHoldertabs li.ui-state-active i.icon-events {margin-right: 5px;}-.icon-events:hover,-ul#productsHoldertabs .tab:hover i.icon-events {+ul#productsHolder-tabs li.ui-state-hover i.icon-events {background: url(../images/events-icon-highlight.png);margin-right: 5px;}+ul#productsHolder/***********************************End Icons***********************************/diff --git a/web/css/wv.events.css b/web/css/wv.events.cssindex e1ded376d..684dbde05 100644--- a/web/css/wv.events.css+++ b/web/css/wv.events.css@@ -48,7 +48,18 @@color: #666;}.map-item-list li.item p a {-+ display: block;+ clear:both;+ margin-top: 7px;+ position: relative;+ padding-left: 15px;+}+#wv-events .map-item-list li.item p a i.fa-external-link {+ margin: 0;+ position: absolute;+ top: 50%;+ margin-top: -5px;+ left: 0;}.map-item-list ul.selectorboxcategory {outline:none !important;@@ -95,6 +106,12 @@right: 10px !important;left: auto !important;}+@media screen and (max-device-height: 720px) {+ .notify-alert {+ display:none;+ }+}+.notify-alert div {}diff --git a/web/css/wv.mobile.css b/web/css/wv.mobile.cssindex 182767732..8f214d9e7 100644--- a/web/css/wv.mobile.css+++ b/web/css/wv.mobile.css@@ -100,4 +100,7 @@#selected-category .ui-tabs-panel li.measurement-settings-item{margin-left:0px;}+ .notify-alert{+ visibility: hidden;+ }}diff --git a/web/js/wv.events.js b/web/js/wv.events.jsindex 0b6daa5ee..b35493d8a 100644--- a/web/js/wv.events.js+++ b/web/js/wv.events.js@@ -162,7 +162,7 @@ wv.events = wv.events || function(models, ui) {autoOpen: false,resizable: false,height: 40,- width: 370,+ width: 320,draggable: false,show: {effect: "fade",@@ -214,6 +214,9 @@ wv.events = wv.events || function(models, ui) {showEvent($(this).attr("data-index"));$(self.selector + "content li").removeClass('item-selected');$(this).addClass('item-selected');+ if (wv.util.browser.small){+ ui.sidebar.collapseNow();+ }notify();});$(self.selector + "content a.date").click(function(event) {@@ -224,7 +227,9 @@ wv.events = wv.events || function(models, ui) {};var refreshEvent = function($content, event, index) {-+ if (event.category[0]['-domain'] === 'Floods'){+ return;+ }var geoms = toArray(event.geometry);eventDate = wv.util.parseDateUTC(geoms[0].date);dateString = dayNames[eventDate.getUTCDay()] + ", " +@@ -265,12 +270,13 @@ wv.events = wv.events || function(models, ui) {var source = _.find(self.sources, { id: reference.id });if ( reference.url ) {items.push("<a target='event' href='" + reference.url + "'>" ++ "<i class='fa fa-external-link fa-1'></i>" +source.title + "</a>");} else {items.push(source.title);}});- $subtitle.append("<br/>" + items.join(", "));+ $subtitle.append(items.join(" "));}$content.append($item);@@ -357,8 +363,7 @@ wv.events = wv.events || function(models, ui) {};var notify = function( text ) {- var message = text || 'Events may not be visible ' +- 'until the next day.';+ var message = text || 'Events may not be visible at all times.';var $message = $('.notify-message');