Interactive interface for browsing global, full-resolution satellite imagery
Fix interaction with map in collapsed timeline area
ZachTRice1ae00599abba
diff --git a/web/css/timeline.css b/web/css/timeline.cssindex 8f1ef1bc8..4726dec4d 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -2,24 +2,17 @@outline: 0;}-#timeline {- background: transparent;- position: absolute;- bottom: 10px;- left: 0;- right: 0;- width: 100%;-}-.timeline-inner {- position: relative;+ position: absolute;border: 1px solid #333;+ background: rgb(40, 40, 40);background: rgba(40, 40, 40, 0.9);border-radius: 5px;display: inline-block;margin-left: 10px;margin-right: 10px;min-height: 65px;+ bottom: 10px;}#timeline-footer text {@@ -139,11 +132,11 @@ g.plot rect.data-bar-invisible {#timeline-header {margin-top: 2px;- width: 290px;+ width: 304px;}#timeline-header.subdaily {- width: 384px;+ width: 396px;}#timeline-header .input-wrapper {diff --git a/web/index.html b/web/index.htmlindex 8048af862..b790fca5a 100644--- a/web/index.html+++ b/web/index.html@@ -68,124 +68,122 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs<div id="timewheels" style="display:none"></div>- <section id="timeline" style="display: none">- <div class="timeline-inner clearfix">- <div id="timeline-header">- <div id="focus-guard-1" class="focus-guard" tabindex="1"></div>- <div id="input-wrapper-year" class="input-wrapper">- <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>- </svg>- </div>- <input type="text" size="4" maxlength="4" class="button-input-group 1-interval-group" id="year-input-group" tabindex="2" />- <div class="date-arrows date-arrow-down" data-interval="year" data-value="-1">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>- </svg>- </div>+ <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 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>+ </svg></div>+ <input type="text" size="4" maxlength="4" class="button-input-group 1-interval-group" id="year-input-group" tabindex="2" />+ <div class="date-arrows date-arrow-down" data-interval="year" data-value="-1">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>+ </svg>+ </div>+ </div>- <div id="input-wrapper-month" class="input-wrapper">- <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>- </svg>- </div>- <input type="text" size="3" maxlength="3" class="button-input-group 1-interval-group" id="month-input-group" tabindex="3" />- <div class="date-arrows date-arrow-down" data-interval="month" data-value="-1">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>- </svg>- </div>+ <div id="input-wrapper-month" class="input-wrapper">+ <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>+ </svg>+ </div>+ <input type="text" size="3" maxlength="3" class="button-input-group 1-interval-group" id="month-input-group" tabindex="3" />+ <div class="date-arrows date-arrow-down" data-interval="month" data-value="-1">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>+ </svg></div>+ </div>- <div id="input-wrapper-day" class="input-wrapper">- <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>- </svg>- </div>- <input type="text" size="2" maxlength="2" class="button-input-group 1-interval-group" id="day-input-group" tabindex="4" onkeypress="return (event.charCode >= 48 && event.charCode <= 57) || event.keyCode == 13 || event.keyCode == 9 || even.keyCode == 8" />- <div class="date-arrows date-arrow-down" data-interval="day" data-value="-1">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>- </svg>- </div>+ <div id="input-wrapper-day" class="input-wrapper">+ <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>+ </svg></div>+ <input type="text" size="2" maxlength="2" class="button-input-group 1-interval-group" id="day-input-group" tabindex="4" onkeypress="return (event.charCode >= 48 && event.charCode <= 57) || event.keyCode == 13 || event.keyCode == 9 || even.keyCode == 8" />+ <div class="date-arrows date-arrow-down" data-interval="day" data-value="-1">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>+ </svg>+ </div>+ </div>- <div id="input-wrapper-hour" class="input-wrapper">- <div class="date-arrows date-arrow-up" data-interval="hour" data-value="1">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>- </svg>- </div>- <input type="text" size="2" maxlength="2" class="button-input-group 1-interval-group" id="hour-input-group" tabindex="5" />- <div class="date-arrows date-arrow-down" data-interval="hour" data-value="-1">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>- </svg>- </div>+ <div id="input-wrapper-hour" class="input-wrapper">+ <div class="date-arrows date-arrow-up" data-interval="hour" data-value="1">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>+ </svg>+ </div>+ <input type="text" size="2" maxlength="2" class="button-input-group 1-interval-group" id="hour-input-group" tabindex="5" />+ <div class="date-arrows date-arrow-down" data-interval="hour" data-value="-1">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>+ </svg></div>+ </div>- <div id="input-time-divider">:</div>+ <div id="input-time-divider">:</div>- <div id="input-wrapper-minute" class="input-wrapper">- <div class="date-arrows date-arrow-up" data-interval="minute" data-value="10">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>- </svg>- </div>- <input type="text" size="2" maxlength="2" step="10" class="button-input-group 10-interval-group" id="minute-input-group" tabindex="6" />- <div class="date-arrows date-arrow-down" data-interval="minute" data-value="-10">- <svg width="25" height="8">- <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>- </svg>- </div>+ <div id="input-wrapper-minute" class="input-wrapper">+ <div class="date-arrows date-arrow-up" data-interval="minute" data-value="10">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="uparrow"></path>+ </svg></div>- <div id="input-time-zmark">Z</div>- <div id="focus-guard-2" class="focus-guard" tabindex="7"></div>- <div id="zoom-buttons-group">- <div id="zoom-btn-container">- <span id="current-zoom" class="zoom-btn zoom-btn-active" data-zoom="3">Days</span>- <div class="wv-tooltip">- <div id="timeline-zoom">- <span id="zoom-years" class="zoom-btn zoom-btn-inactive" data-zoom="1">Years</span>- <span id="zoom-months" class="zoom-btn zoom-btn-inactive" data-zoom="2">Months</span>- <span id="zoom-days" class="zoom-btn zoom-btn-inactive" data-zoom="3">Days</span>- <span id="zoom-minutes" class="zoom-btn zoom-btn-inactive" data-zoom="4">Minutes</span>- </div>+ <input type="text" size="2" maxlength="2" step="10" class="button-input-group 10-interval-group" id="minute-input-group" tabindex="6" />+ <div class="date-arrows date-arrow-down" data-interval="minute" data-value="-10">+ <svg width="25" height="8">+ <path d="M 12.5,0 25,8 0,8 z" class="downarrow"></path>+ </svg>+ </div>+ </div>+ <div id="input-time-zmark">Z</div>+ <div id="focus-guard-2" class="focus-guard" tabindex="7"></div>+ <div id="zoom-buttons-group">+ <div id="zoom-btn-container">+ <span id="current-zoom" class="zoom-btn zoom-btn-active" data-zoom="3">Days</span>+ <div class="wv-tooltip">+ <div id="timeline-zoom">+ <span id="zoom-years" class="zoom-btn zoom-btn-inactive" data-zoom="1">Years</span>+ <span id="zoom-months" class="zoom-btn zoom-btn-inactive" data-zoom="2">Months</span>+ <span id="zoom-days" class="zoom-btn zoom-btn-inactive" data-zoom="3">Days</span>+ <span id="zoom-minutes" class="zoom-btn zoom-btn-inactive" data-zoom="4">Minutes</span></div></div>- <div class="button-action-group" id="left-arrow-group" title="Click and hold to animate backwards">- <svg width="24" height="30">- <path- d="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"- class="arrow"></path>- </svg>- </div>- <div class="button-action-group" id="right-arrow-group" title="Click and hold to animate forwards">- <svg width="24" height="30" >- <path- d="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"- class="arrow"></path>- </svg>- </div></div>- <div class="button-action-group animate-button" id="animate-button" title="Set up animation">- <i id="wv-animate" class="fa fa-video-camera wv-animate"></i>+ <div class="button-action-group" id="left-arrow-group" title="Click and hold to animate backwards">+ <svg width="24" height="30">+ <path+ d="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"+ class="arrow"></path>+ </svg></div>-- </div>- <div id="timeline-footer">- <div id="wv-animation-widet-case"> </div>- </div>- <div id="timeline-hide">- <svg class="hamburger" width="10" height="9">- <path d="M 0,0 0,1 10,1 10,0 0,0 z M 0,4 0,5 10,5 10,4 0,4 z M 0,8 0,9 10,9 10,8 0,8 z"></path>- </svg>- </div>- </div>+ <div class="button-action-group" id="right-arrow-group" title="Click and hold to animate forwards">+ <svg width="24" height="30" >+ <path+ d="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"+ class="arrow"></path>+ </svg>+ </div>+ </div>+ <div class="button-action-group animate-button" id="animate-button" title="Set up animation">+ <i id="wv-animate" class="fa fa-video-camera wv-animate"></i>+ </div>++ </div>+ <div id="timeline-footer">+ <div id="wv-animation-widet-case"> </div>+ </div>+ <div id="timeline-hide">+ <svg class="hamburger" width="10" height="9">+ <path d="M 0,0 0,1 10,1 10,0 0,0 z M 0,4 0,5 10,5 10,4 0,4 z M 0,8 0,9 10,9 10,8 0,8 z"></path>+ </svg>+ </div></section></div>diff --git a/web/js/date/timeline.js b/web/js/date/timeline.jsindex da5c44253..dc9fe6dce 100644--- a/web/js/date/timeline.js+++ b/web/js/date/timeline.js@@ -27,7 +27,7 @@ export function timeline(models, config, ui) {.outerWidth(true) -$('#timeline-hide').outerWidth(true) -- self.margin.left - self.margin.right - 2;+ self.margin.left - self.margin.right + 28;return self.width;};@@ -193,8 +193,8 @@ export function timeline(models, config, ui) {$timelineFooter.css('margin-left', self.margin.left - 1 + 'px');$timelineFooter.css('margin-right', self.margin.right - 1 + 'px');} else {- $timelineFooter.css('margin-left', '10px');- $timelineFooter.css('margin-right', (self.margin.right + self.margin.left) - 12 + 'px');+ $timelineFooter.css('margin-left', '0');+ $timelineFooter.css('margin-right', (self.margin.right + self.margin.left) - 32 + 'px');}self.x = d3.time.scale.utc();