Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Close buttons back in tour

Mike McGann5a25c8baf692
diff --git a/src/css/splash.css b/src/css/splash.css
index a81dd6f93..1f64c7e6e 100644
--- a/src/css/splash.css
+++ b/src/css/splash.css
@@ -14,11 +14,29 @@ body {
.yui-skin-sam .yui-panel-container .bd .splash h3{ color:rgb(38, 43, 49); font: 18px "Gill Sans", sans-serif; font-weight:400; text-decoration:none; }
.tour .ui-dialog-content {
- background: #AFB5C4
+ background: #AFB5C4;
}
.tour .ui-dialog-titlebar {
- display: none;
+ font-size: 16px;
+ background: #AFB5C4;
+ color:rgb(38, 43, 49);
+ border: 0;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.tour .ui-button {
+ background: #F4F5F5;
+ border-color: #F4F5F5;
+}
+
+.tour .ui-button:hover:enabled {
+ background: #d9dddd
+}
+
+.tour .ui-icon-closethick {
+ background-image: url("../ext/ui/jquery-ui-1.10.4/ui-darkness/images/ui-icons_404040_256x240.png");
}
.tour h3 {
diff --git a/src/js/link/wv.link.ui.js b/src/js/link/wv.link.ui.js
index f4aa9cefc..199e1a464 100644
--- a/src/js/link/wv.link.ui.js
+++ b/src/js/link/wv.link.ui.js
@@ -61,7 +61,7 @@ wv.link.ui = wv.link.ui || function(models) {
show: { effect: "fade" },
hide: { effect: "fade" },
width: 350,
- height: 170
+ height: "auto"
});
$("#wv-link-shorten-check").button();
$("#wv-link-shorten-check").click(function() {
diff --git a/src/js/ui/wv.ui.js b/src/js/ui/wv.ui.js
index d1533d220..78983c2f0 100644
--- a/src/js/ui/wv.ui.js
+++ b/src/js/ui/wv.ui.js
@@ -46,10 +46,7 @@ wv.ui = (function(self) {
"again. If you continue to have problems, contact us at " +
"<a href='mailto:@MAIL@'>" +
"@MAIL@</a>" +
- "</div>", {
- title: "Error",
- height: 175
- }
+ "</div>", "Error"
);
};
@@ -63,18 +60,15 @@ wv.ui = (function(self) {
*
* @param [title="Notice"] {string} Title for the dialog box.
*/
- self.notify = function(message, options) {
+ self.notify = function(message, title) {
var $dialog = self.getDialog();
- options = options || {};
- var title = options.title || "Notice";
- var width = options.width || 300;
- var height = options.height || 150;
+ var title = title || "Notice";
$dialog.html(message).dialog({
title: title,
show: { effect: "fade" },
hide: { effect: "fade" },
- width: width,
- height: height
+ width: 300,
+ height: "auto"
});
};
diff --git a/src/js/wv.tour.js b/src/js/wv.tour.js
index 9caaedf38..aea5cbe8a 100644
--- a/src/js/wv.tour.js
+++ b/src/js/wv.tour.js
@@ -75,8 +75,6 @@ wv.tour = wv.tour || function(models, ui) {
finalRow = "<td colspan='2'><p id='dontShowP' class=\"splash\"><input id='dontShowAgain' type='checkbox'>Do not show again (Access from <i class='fa fa-info-circle fa-fw'></i> menu)</p></td>";
}
var item = "<div class=\"splash\">"+
- "<h3>Welcome to @NAME@!</h3>"+
- "</br></br>"+
"<center>"+
"<p class=\"splashwelcome\">This application allows you to interactively browse global satellite imagery within hours of it being acquired. Use the features described below to find interesting imagery, then save and share what you find.</p>"+
"</br></br>"+
@@ -112,14 +110,14 @@ wv.tour = wv.tour || function(models, ui) {
$startDialog
.html(item)
.dialog({
+ title: "Welcome to @NAME@!",
dialogClass: "tour",
modal: true,
width: 700,
- height: 550,
+ height: "auto",
draggable: false,
resizable: false
});
- active = true;
/*
splashOverlay = new YAHOO.widget.Panel("splash", { zIndex:1020, visible:false, modal:true, draggable:false, } );
@@ -237,8 +235,6 @@ wv.tour = wv.tour || function(models, ui) {
var $dialog = wv.ui.getDialog();
var conclusionText = "<div class=\"splash\">"+
"<center>"+
- "<h3>Finished!</h3>"+
- "</br></br>"+
"<p class='splashwelcome'>You have now completed a tour of @NAME@! 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'>"+
@@ -252,10 +248,11 @@ wv.tour = wv.tour || function(models, ui) {
$dialog
.html(conclusionText)
.dialog({
+ title: "Finished!",
dialogClass: "tour",
modal: true,
width: 600,
- height: 215,
+ height: "auto",
draggable: false,
resizable: false
});
@@ -328,24 +325,12 @@ wv.tour = wv.tour || function(models, ui) {
wv.util.localStorage('hideSplash', !hideSplash);
};
-
- $(window).resize(function() {
- splashOverlay.center();
- conclusionPanel.center();
- });
-
// assign events and start
$("#takeTour").click(handleTakeTour);
$("#skipTour").click(handleSkipTour);
$("#dontShowAgain").click(setDoNotShow);
- /*
- YAHOO.util.Event.on('takeTour', 'click', handleTakeTour);
- YAHOO.util.Event.on('skipTour', 'click', handleSkipTour);
- YAHOO.util.Event.on('dontShowAgain', 'click', setDoNotShow);
- YAHOO.util.Event.on('repeat', 'click', repeatTour);
- YAHOO.util.Event.on('done', 'click', handleDone);
- */
+ active = true;
};
var initTourState = function() {