Interactive interface for browsing global, full-resolution satellite imagery
customize ab alert dialog #1234
Benjamin Kingb74a7c6512fd
diff --git a/web/css/compare.css b/web/css/compare.cssindex 00e7390e3..60c97a60a 100644--- a/web/css/compare.css+++ b/web/css/compare.css@@ -101,3 +101,19 @@padding: 2px;margin-left: -4px;}+.compare-dialog ul {+ display: flex;+}+.compare-dialog .compare-dialog-list-item {+ flex: 0 32%;+ margin: 0 auto;+ list-style: none;+}+.compare-dialog p {+ margin-bottom: 10px;+ line-height: 1.2;+}+.compare-dialog img {+ display: block;+ max-width: 100%;+}\ No newline at end of filediff --git a/web/images/ab-modes.png b/web/images/ab-modes.pngnew file mode 100644index 000000000..045dd993bBinary files /dev/null and b/web/images/ab-modes.png differdiff --git a/web/images/ab-picks.png b/web/images/ab-picks.pngnew file mode 100644index 000000000..d275de425Binary files /dev/null and b/web/images/ab-picks.png differdiff --git a/web/images/ab-tabs.png b/web/images/ab-tabs.pngnew file mode 100644index 000000000..26cf189c3Binary files /dev/null and b/web/images/ab-tabs.png differdiff --git a/web/js/compare/ui.js b/web/js/compare/ui.jsindex e1c4648a7..e5c461a6b 100644--- a/web/js/compare/ui.js+++ b/web/js/compare/ui.js@@ -1,18 +1,13 @@import util from '../util/util';import wvui from '../ui/ui';-var compareAlertBody =- '<h3 class="compare-dialog-header">What can I compare?</h3>' ++const compareAlertBody =+ '<div class="compare-dialog">' ++ '<p>How to get started?</p>' +'<ul>' +- '<li>The same imagery at different times.</li>' +- '<li>The same time with different imagery products</li>' +- '<li>A mix of different times and layers</li>' +- '</ul>' +- '<p>You can toggle between three different comparison modes found at the base of the sidebar</p>' +- '<ul>' +- '<li>Swipe</li>' +- '<li>Opacity</li>' +- '<li>Spy</li>' +- '</ul>';+ '<li class="compare-dialog-list-item"><p>Toggle between states by clicking the <b>A</b> or <b>B</b> tabs. Toggling a state on allows you to update the layers and date of that state.<p><img src="images/ab-tabs.png"/></li>' ++ '<li class="compare-dialog-list-item"><p>There are now time sliders on the timeline. You can click on the deactivated time slider to toggle that state on and change the date.</p><img src="images/ab-picks.png"/></li>' ++ '<li class="compare-dialog-list-item"><p>There are three compare modes. You can choose different modes using the selection at the bottom of the layer list.</p><img src="images/ab-modes.png"/></li>' ++ '</ul></div>';export function compareUi(models, ui, config) {var self = {};@@ -22,7 +17,7 @@ export function compareUi(models, ui, config) {if (!alertDialog) {alertDialog = wvui.alert(compareAlertBody,- 'You are in comparison mode',+ 'You are now in comparison mode',800,'warning',function() {