Interactive interface for browsing global, full-resolution satellite imagery
Temporary day slider
Mike McGann72d8345569f1
diff --git a/src/css/wv.main.css b/src/css/wv.main.cssindex df885e770..920de0b75 100644--- a/src/css/wv.main.css+++ b/src/css/wv.main.css@@ -258,3 +258,17 @@ label {.ui-state-focus:focus { outline: none !important }.ui-state-focus a:focus { outline: none !important }+/* TEMP: Remove this once the real slider goes in */+#day-panel {+ position: absolute;+ left: 20em;+ bottom: 1em;+ padding: 1em;+ background-color: rgba(200, 200, 200, 0.8);+ border-radius: 5px;+ border: 1px solid rgb(40, 40, 40);+}++#day-panel div {+ width: 10em;+}diff --git a/src/index.html b/src/index.htmlindex 2d4bc66b6..cdcdced90 100644--- a/src/index.html+++ b/src/index.html@@ -214,6 +214,11 @@<div id="timemds"></div></div></div>++ <!-- TEMP: Remove this once the real slider goes in -->+ <div id="day-panel">+ <div id="day-slider"></div>+ </div></div></div><ol id="joyRideTipContent">diff --git a/src/js/wv.debug.js b/src/js/wv.debug.jsindex d33cdd55f..8245b7e04 100644--- a/src/js/wv.debug.js+++ b/src/js/wv.debug.js@@ -207,3 +207,19 @@ wv.debug.layers = wv.debug.layers || function(ui, models, config) {init();};+// TEMP: Remove this once the new real slider goes in+wv.debug.slider = function(models, config) {+ $("#day-slider").slider({+ value: 0,+ min: -6,+ max: 0,+ step: 1,+ slide: function(event, ui) {+ // Add the slider value (effectively subracting) to today's+ // date.+ var newDay = new Date();+ newDay.setUTCDate(new Date().getUTCDate() + ui.value);+ models.date.select(newDay);+ }+ });+}diff --git a/src/js/wv.main.js b/src/js/wv.main.jsindex 5e09f8e95..b8f978811 100644--- a/src/js/wv.main.js+++ b/src/js/wv.main.js@@ -125,6 +125,9 @@ $(function() {ui.addLayers = wv.layers.add(models, ui, config);//ui.dateSliders = wv.date.sliders(models, config);//ui.dateLabel = wv.date.label(models);+ // TEMP: Remove this once the real slider goes in. Search for other+ // comments marked as TEMP+ wv.debug.slider(models, config);ui.dateWheels = wv.date.wheels(models, config);ui.rubberband = wv.image.rubberband(models, config);ui.image = wv.image.panel(models, ui, config);