Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Temporary longer notification for publishing a demo

Taylor Gunnoee9e435c77645
diff --git a/web/css/wv.events.css b/web/css/wv.events.css
index 3d1838e94..e1ded376d 100644
--- a/web/css/wv.events.css
+++ b/web/css/wv.events.css
@@ -94,6 +94,9 @@
top: 60px !important;
right: 10px !important;
left: auto !important;
+}
+.notify-alert div {
+
}
.notify-alert i{
font-size: 1.4em;
@@ -101,23 +104,44 @@
box-sizing: border-box;
line-height: 40px;
}
-.notify-alert i:first-child{
+.notify-alert .ui-dialog-content div> i{
color: #d54e21;
margin-right: 10px;
+ margin-left: 10px;
+}
+.notify-alert .ui-dialog-content div{
+ margin-right: 40px;
+
+}
+.notify-alert .ui-dialog-content div:hover{
+ background:#ccc;
+ cursor:pointer;
}
-.notify-alert i:last-child{
+.notify-alert .ui-dialog-content div:hover span{
+ color:#000;
+}
+.notify-alert .ui-dialog-content>i{
float: right;
padding:0 10px;
}
-.notify-alert i:last-child:hover {
+.notify-alert .ui-dialog-content>i:hover {
cursor: pointer;
background: #ccc;
color: #333;
}
.notify-alert .ui-dialog-content {
- padding: 0 0 0 10px;
+ padding: 0 0 0 0px;
box-sizing: border-box;
line-height: 40px;
}
-
+.wv-dialog ul {
+ padding-left:20px;
+ margin:10px 0;
+}
+.wv-dialog ul li{
+ list-style-type: disc;
+ display: list-item;
+ margin: 2px 0 2px 20px;
+
+}
/****************** End Notifications ********************/
\ No newline at end of file
diff --git a/web/js/wv.events.js b/web/js/wv.events.js
index 5b677df27..35cd9cb64 100644
--- a/web/js/wv.events.js
+++ b/web/js/wv.events.js
@@ -120,16 +120,44 @@ wv.events = wv.events || function(models, ui) {
var $icon = $('<i></i>')
.addClass('fa fa-warning fa-1x');
+ var $messageWrapper = $('<div></div>')
+ .click( function(e){
+ showNotificationHelp();
+ //showLargeNotification();
+ });
+
+ var $altMessage = $('<span></span>')
+ .text("Why can’t I see an event?")
+ .addClass('notify-message-alt').hide();
+
+ var $longmessage = 'There are a variety of factors as to why you may not be seeing an event in Worldview at the moment.' +
+ '<ul>' +
+ '<li>Satellite overpass time and the event occurrence time may not coincide.</li>' +
+ '<li>Cloud cover may obscure the event.</li><li>The time it takes for an event to appear in the imagery, you may have to wait a day or two for an event to be visible. Try and scroll through the days to see an event’s progression.</li>' +
+ '<li>The resolution of the imagery may be too coarse to see an event.</li>' +
+ '<li>There are swath data gaps between some of the imagery layers, and an event may have occurred in the data gap.</li>' +
+ '</ul>' +
+ 'This is currently an experimental feature and we are working closely with the provider of these events, the <a href="http://eonet.sci.gsfc.nasa.gov/" target="_blank">Earth Observatory Natural Event Tracker</a>, to refine this listing to only show events that are visible with our satellite imagery.';
+
+ var $longWrapper = $('<div></div>')
+ .addClass('notify-message-body')
+ .hide();
+
+ $messageWrapper
+ .append($icon)
+ .append($message)
+ .append($altMessage);
+
var $close = $('<i></i>')
- .addClass('fa fa-times-circle-o fa-1x')
+ .addClass('fa fa-times fa-1x')
.click(function(e){
$notification.dialog( 'close' );
});
$notification = $('<div></div>')
- .append( $icon)
- .append( $message )
.append( $close )
+ .append( $messageWrapper )
+ .append( $longWrapper )
.dialog({
autoOpen: false,
resizable: false,
@@ -155,6 +183,26 @@ wv.events = wv.events || function(models, ui) {
self.refresh();
};
+ var showLargeNotification = function(){
+ $('.notify-message').hide();
+ $('.notify-message-alt').show();
+
+ $('.notify-message-long').show();
+ $()
+ };
+ var showNotificationHelp = function(){
+ var headerMsg = "<h3 class='wv-data-unavailable-header'>Why can’t I see an event?</h3>";
+ var bodyMsg = 'There are a variety of factors as to why you may not be seeing an event in Worldview at the moment.' +
+ '<ul>' +
+ '<li>Satellite overpass time and the event occurrence time may not coincide.</li>' +
+ '<li>Cloud cover may obscure the event.</li><li>The time it takes for an event to appear in the imagery, you may have to wait a day or two for an event to be visible. Try and scroll through the days to see an event’s progression.</li>' +
+ '<li>The resolution of the imagery may be too coarse to see an event.</li>' +
+ '<li>There are swath data gaps between some of the imagery layers, and an event may have occurred in the data gap.</li>' +
+ '</ul>' +
+ 'This is currently an experimental feature and we are working closely with the provider of these events, the <a href="http://eonet.sci.gsfc.nasa.gov/" target="_blank">Earth Observatory Natural Event Tracker</a>, to refine this listing to only show events that are visible with our satellite imagery.';
+
+ wv.ui.notify(headerMsg + bodyMsg, "Notice", 800);
+ };
self.refresh = function() {
var $content = $(self.selector + "content");