Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix page count position, dialog box appearing unexpectedly, nub position - Fix page count position on last step - Fix dialog background from not closing properly - Fix tour completion window appearing when clicking previous on last step - Add css to move nub position to the right on the last tour step

ZachTRicea094ee607f83
diff --git a/web/css/tour.css b/web/css/tour.css
index a2b6cd919..6e9b7f070 100644
--- a/web/css/tour.css
+++ b/web/css/tour.css
@@ -151,9 +151,11 @@ button.skipTour:hover {
vertical-align: top;
}
-.tour p {
+.tour p,
+.tour ul {
color: rgb(38, 43, 49);
font: 400 13px/16px 'Open Sans', sans-serif;
+ margin: 0 0 14px;
}
.joyride-content-wrapper {
@@ -284,6 +286,7 @@ button.done:hover {
z-index: 293;
background: rgb(175, 181, 196);
padding-bottom: 32px;
+ width: 350px;
}
.joyride-tip-guide[data-index="0"] {
@@ -306,6 +309,7 @@ button.done:hover {
-moz-border-radius: 6px;
border-radius: 6px;
text-align: center;
+ text-shadow: none;
color: #000;
background-color: #f4f5f5;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4f5f5), color-stop(100%, #dfdddd));
@@ -454,3 +458,7 @@ p.wv-tour-page-count {
border-left-color: transparent !important;
border-bottom-color: transparent !important;
}
+
+.joyride-tip-guide.toolbarTip span.joyride-nub.top {
+ left: 250px;
+}
diff --git a/web/js/tour.js b/web/js/tour.js
index 9e2d5d2d1..2369b6c68 100644
--- a/web/js/tour.js
+++ b/web/js/tour.js
@@ -170,7 +170,7 @@ export default function (models, ui, config) {
// console.log(index, tip, button);
setTourState();
googleAnalytics.event('Tour', 'Click', 'Post Tour View', index + 1);
- if (index === 5 && button !== 'previous') {
+ if (index === 5 && button === false) {
endTour();
}
};
diff --git a/web/pages/tour.html b/web/pages/tour.html
index 2c284082b..adc3e9c00 100644
--- a/web/pages/tour.html
+++ b/web/pages/tour.html
@@ -62,7 +62,7 @@
<ol id="joyRideTipContent" class="tour">
<!-- Timeline -->
- <li id="wv-tour-timeline" style="display: none" class="joyride-bordered joyride-wide" data-id="timeline-footer" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;">
+ <li id="wv-tour-timeline" style="display: none" class="bordered wide" data-id="timeline-footer" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;">
<div class="tour">
<h3>Timeline</h3>
<p>
@@ -123,7 +123,7 @@
</li>
<!-- Timeline - Continued -->
- <li id="wv-tour-timline-continued" class="joyride-bordered" data-id="timeline" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;prevButton:true;">
+ <li id="wv-tour-timline-continued" class="bordered" data-id="timeline" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;prevButton:true;">
<div class="tour">
<h3>Timeline - Continued</h3>
<p>To the left of the timeline the selected day is shown.</p>
@@ -157,7 +157,7 @@
</li>
<!-- Layer Picker - Base Layers -->
- <li id="wv-tour-base-layers" class="joyride-bordered" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">
+ <li id="wv-tour-base-layers" class="bordered" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">
<div class="tour">
<h3>Layer Picker - Base Layers</h3>
<p>
@@ -189,7 +189,7 @@
</li>
<!-- Layer Picker - Continued -->
- <li id="wv-tour-overlay-layers" class="joyride-bordered joyride-wide" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">
+ <li id="wv-tour-overlay-layers" class="bordered wide" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">
<div class="tour">
<h3>Layer Picker - Continued</h3>
<p>
@@ -232,7 +232,7 @@
</li>
<!-- Map -->
- <li id="wv-tour-map" class="joyride-bordered" data-id="mapPanelTourAnchor" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;">
+ <li id="wv-tour-map" class="bordered" data-id="mapPanelTourAnchor" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;">
<div class="tour">
<h3>Map</h3>
<p>
@@ -262,7 +262,7 @@
</li>
<!-- Toolbar -->
- <li id="wv-tour-toolbar" class="joyride-bordered toolbarTip" data-id="wv-toolbar" data-button="Finish" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;">
+ <li id="wv-tour-toolbar" class="bordered toolbarTip" data-id="wv-toolbar" data-button="Finish" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;">
<div class="tour">
<h3>Toolbar</h3>
<p>
@@ -303,8 +303,8 @@
</tr>
</table>
</div>
+ <p class="wv-tour-page-count">(page 6 of 6)</p>
</li>
- <p class="wv-tour-page-count">(page 6 of 6)</p>
</ol>