Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Style changes to splash screen (take/skip buttons centered). Overlays panel made wider. Size requirement slightly changed.

unknowne7f087fbf38b
diff --git a/src/css/events.css b/src/css/events.css
index cc53eafb9..01167248a 100644
--- a/src/css/events.css
+++ b/src/css/events.css
@@ -21,7 +21,7 @@
height:300px;
position:absolute;
right:0;
- top:350px; /* to prevent conflict with zoom controls */
+ top:250px; /* to prevent conflict with zoom controls */
text-shadow:none;
}
diff --git a/src/css/splash.css b/src/css/splash.css
index be436f6c4..285599af4 100644
--- a/src/css/splash.css
+++ b/src/css/splash.css
@@ -27,7 +27,7 @@ p.splash span.highlight{
font-weight:bold; }
button.takeTour{
- float:right;
+
border:1px solid #d7dada;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
@@ -43,7 +43,9 @@ button.takeTour{
background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
width:110px;
- height:40px; }
+ height:40px;
+ margin-right: 10px;
+}
button.takeTour:hover {
@@ -60,7 +62,7 @@ button.takeTour:hover {
button.skipTour{
- float:left;
+
border:1px solid #d7dada;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
@@ -76,7 +78,9 @@ button.skipTour{
background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
width:110px;
- height:40px; }
+ height:40px;
+ margin-left: 10px;
+}
button.skipTour:hover {
@@ -108,7 +112,6 @@ p.tour span.tryIt{
font-weight:bold; }
button.repeatTour{
- float:right;
border:1px solid #d7dada;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
@@ -124,7 +127,9 @@ button.repeatTour{
background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
width:110px;
- height:40px; }
+ height:40px;
+ margin-right:10px;
+}
button.repeatTour:hover {
@@ -140,7 +145,6 @@ button.repeatTour:hover {
}
button.done{
- float:left;
border:1px solid #d7dada;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
@@ -156,7 +160,9 @@ button.done{
background-image: -o-linear-gradient(top, #f4f5f5, #dfdddd);
background-image: linear-gradient(top, #f4f5f5, #dfdddd);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f4f5f5, endColorstr=#dfdddd);
width:110px;
- height:40px; }
+ height:40px;
+ margin-left:10px;
+}
button.done:hover {
border:1px solid #bfc4c4;
diff --git a/src/ext/joyride/joyride.css b/src/ext/joyride/joyride.css
index 8b40572aa..2b313c567 100644
--- a/src/ext/joyride/joyride.css
+++ b/src/ext/joyride/joyride.css
@@ -12,7 +12,7 @@ body {
background: rgba(175, 181, 196, 1);
display: none;
color: rgb(38, 43, 49);
- width: 300px;
+ width: 350px;
z-index: 1050;
top: 0; /* keeps the page from scrolling when calculating position */
left: 0;
@@ -31,6 +31,10 @@ body {
border: #808080 solid 1px;
}
+.wide {
+ width:450px;
+}
+
/* Mobile */
/* @media only screen and (max-width: 767px) */
.joyride-tip-guide.mobile {
diff --git a/src/ext/joyride/jquery.joyride.js b/src/ext/joyride/jquery.joyride.js
index 01426bf63..ed35f86e1 100644
--- a/src/ext/joyride/jquery.joyride.js
+++ b/src/ext/joyride/jquery.joyride.js
@@ -171,12 +171,14 @@
var opts_len = opts_arr.length;
var ii, p;
var isBordered = settings.bordered;
+ var isShifted = settings.shiftedArrow;
var usePage = settings.includepage;
opts.tip_class = opts.tip_class || '';
if(isBordered) {
opts.tip_class += " bordered";
}
+
$blank = $(settings.template.tip).addClass(opts.tip_class);
content = $.trim($(opts.li).html()) +
@@ -632,9 +634,6 @@
methods.nub_position($nub, $border, settings.tipSettings.nubPosition, 'bottom');
} else if (methods.right()) {
- console.log("methods.right");
- console.log("settings.$target.outerWidth() = " + settings.$target.outerWidth());
- console.log("settings.$target.offset().left = " + settings.$target.offset().left);
settings.$next_tip.css({
top: settings.$target.offset().top,
left: (settings.$target.outerWidth() + settings.$target.offset().left + 20)});
diff --git a/src/index.html b/src/index.html
index 1a5cfe874..cf3f97711 100644
--- a/src/index.html
+++ b/src/index.html
@@ -262,7 +262,7 @@
<ol id="joyRideTipContent">
<li id="datePanel" data-id="timedsecbutton" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;bordered:true"></li>
<li id="productBasePanel" data-id="productsBaseLayers" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;bordered:true"></li>
- <li id="productOverlayPanel" data-id="productsOverlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;bordered:true"></li>
+ <li id="productOverlayPanel" class="wide" data-id="productsOverlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;bordered:true;class:wide"></li>
<li id="mapPanel" data-id="mapPanelTourAnchor" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;bordered:true"></li>
<li id="toolbarPanel" class="toolbarTip" data-id="toolbarlist" data-button="Finish" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;bordered:true;class:toolbar"></li>
</ol>
diff --git a/src/js/tour.js b/src/js/tour.js
index bb3749841..85d00e49f 100644
--- a/src/js/tour.js
+++ b/src/js/tour.js
@@ -30,13 +30,11 @@ Worldview.namespace("Tour");
storageEngine = storageEngine || Worldview.storageEngine;
// determine screen size - don't show if too small
- var devWidth = window.screen.availWidth;
- var devHeight = window.screen.availHeight;
-
var viewWidth = $(window).width();
var viewHeight = $(window).height();
+ console.log(viewWidth + " x " + viewHeight);
- if(viewWidth < 768 || viewHeight < 600) {
+ if(viewWidth < 768 || viewHeight < 680) {
if(noDisable) {
Worldview.notify("Unfortunately the Worldview tour can only be viewed in larger web browser windows.");
}
@@ -162,7 +160,7 @@ Worldview.namespace("Tour");
"<li>Click on the <i class=\"productsIcon selected icon-active\"></i> tab to see the layers that have been added.</li>"+
"</ul>"+
"</br>"+
- "</div>";
+ "</div>";
document.getElementById("productOverlayPanel").innerHTML = overlayText;
var dateText = "<div class=\"tour\">"+
@@ -223,7 +221,7 @@ Worldview.namespace("Tour");
var mapAnchor = document.getElementById("mapPanelTourAnchor");
if(!mapAnchor) {
- console.log("creating mapanchor");
+ //console.log("creating mapanchor");
var owner = document.getElementById("map");
mapAnchor = document.createElement("div");
mapAnchor.setAttribute("id", "mapPanelTourAnchor");
@@ -309,7 +307,7 @@ Worldview.namespace("Tour");
includepage:true,
template : {'link':'<a href="#" class="joyride-close-tip">X</a>'},
postStepCallback : function (index, tip) {
- console.log("index = " + index);
+ //console.log("index = " + index);
if(index == 4) {
log.debug("finished tour");
conclusionPanel.show();