Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added close button to anim widget

Benjamin25b6acda93ca
diff --git a/web/css/wv.anim.widget.css b/web/css/wv.anim.widget.css
index 45cf06b45..5e4077475 100644
--- a/web/css/wv.anim.widget.css
+++ b/web/css/wv.anim.widget.css
@@ -94,6 +94,15 @@
.wv-anim-active #wv-animation-widget {
display: block;
}
+.wv-animation-widget i.wv-close {
+ position: absolute;
+ top: 5px;
+ right: 5px;
+}
+.wv-animation-widget i.wv-close:hover {
+ color: #999999;
+ cursor: pointer;
+}
/*
* Gif Styles
*/
diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.js
index 0b9f226d7..1d8b7c08f 100644
--- a/web/js/animation/wv.anim.widget.js
+++ b/web/js/animation/wv.anim.widget.js
@@ -46,6 +46,7 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {
$timelineFooter = $('#timeline-footer');
$animateButton.on('click', self.toggleAnimationWidget);
+ $('#wv-animation-widet .wv-close').on('click', self.toggleAnimationWidget);
if(model.rangeState.state === 'on') { // show animation widget if active in permalink
$timelineFooter.toggleClass('wv-anim-active');
}