Interactive interface for browsing global, full-resolution satellite imagery
Return to year input when tabbing from minute input in non-subdaily view
ZachTRice8024d393b5b2
diff --git a/web/index.html b/web/index.htmlindex b790fca5a..73bc9cbc6 100644--- a/web/index.html+++ b/web/index.html@@ -71,7 +71,7 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs<section id="timeline" class="timeline-inner clearfix" style="display: none"><div id="timeline-header"><div id="focus-guard-1" class="focus-guard" tabindex="1"></div>- <div id="input-wrapper-year" class="input-wrapper">+ <div id="input-wrapper-year" class="input-wrapper selectable"><div class="date-arrows date-arrow-up" data-interval="year" data-value="1"><svg width="25" height="8"><path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>@@ -84,8 +84,7 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs</svg></div></div>-- <div id="input-wrapper-month" class="input-wrapper">+ <div id="input-wrapper-month" class="input-wrapper selectable"><div class="date-arrows date-arrow-up" data-interval="month" data-value="1"><svg width="25" height="8"><path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>@@ -99,7 +98,7 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs</div></div>- <div id="input-wrapper-day" class="input-wrapper">+ <div id="input-wrapper-day" class="input-wrapper selectable"><div class="date-arrows date-arrow-up" data-interval="day" data-value="1"><svg width="25" height="8"><path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>diff --git a/web/js/date/timeline-input.js b/web/js/date/timeline-input.jsindex 666587213..fbf712ca1 100644--- a/web/js/date/timeline-input.js+++ b/web/js/date/timeline-input.js@@ -283,10 +283,10 @@ export function timelineInput(models, config, ui) {if ((selectedDateObj > tl.data.start()) &&(selectedDateObj <= util.today())) {var parent = selected.parent();- var sib = parent.next('div.input-wrapper')+ var sib = parent.next('div.input-wrapper.selectable').find('input.button-input-group');if (parent.next('#input-time-divider').length) {- sib = parent.next().next('div.input-wrapper')+ sib = parent.next().next('div.input-wrapper.selectable').find('input.button-input-group');}diff --git a/web/js/layers/active.js b/web/js/layers/active.jsindex e8a64c379..71f55b2f2 100644--- a/web/js/layers/active.js+++ b/web/js/layers/active.js@@ -430,8 +430,10 @@ export function layersActive(models, ui, config) {setMaxZoomlevel(4);document.getElementById('zoom-minutes').style.display = null;document.getElementById('input-wrapper-hour').style.display = null;+ document.getElementById('input-wrapper-hour').classList.add('selectable');document.getElementById('input-time-divider').style.display = null;document.getElementById('input-wrapper-minute').style.display = null;+ document.getElementById('input-wrapper-minute').classList.add('selectable');document.getElementById('input-time-zmark').style.display = null;document.getElementById('timeline-header').classList.add('subdaily');} else {@@ -441,8 +443,10 @@ export function layersActive(models, ui, config) {}document.getElementById('zoom-minutes').style.display = 'none';document.getElementById('input-wrapper-hour').style.display = 'none';+ document.getElementById('input-wrapper-hour').classList.remove('selectable');document.getElementById('input-time-divider').style.display = 'none';document.getElementById('input-wrapper-minute').style.display = 'none';+ document.getElementById('input-wrapper-minute').classList.remove('selectable');document.getElementById('input-time-zmark').style.display = 'none';document.getElementById('timeline-header').classList.remove('subdaily');}