Interactive interface for browsing global, full-resolution satellite imagery
corrected gif dialog styling
Benjamin4df899c2915f
diff --git a/web/css/wv.anim.widget.css b/web/css/wv.anim.widget.cssindex 2e9925641..45cf06b45 100644--- a/web/css/wv.anim.widget.css+++ b/web/css/wv.anim.widget.css@@ -50,7 +50,7 @@display: block;text-align: center;}-#wv-animation-widget .thruLabel {+#wv-animation-widget .thru-label {position: absolute;left: 0;right: 0;@@ -121,7 +121,10 @@ gif-dialog {}line-height: 30px;color: #000;font-size: 15px;- }+ }+.wv-gif-progress {+ width: 100%;+}/** Jcrop Styles*/diff --git a/web/js/animation/wv.anim.gif.js b/web/js/animation/wv.anim.gif.jsindex 2ff32c741..4dae58ce6 100644--- a/web/js/animation/wv.anim.gif.js+++ b/web/js/animation/wv.anim.gif.js@@ -45,7 +45,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {$progress = $("<progress />") //display progress for GIF creation- .attr("id", "wv-gif-progress");+ .attr("class", "wv-gif-progress");wv.ui.getDialog().append($progress).dialog({ //dialog for progresstitle: "Downloading images...",@@ -56,7 +56,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {'gifWidth': animCoords.w,'gifHeight': animCoords.h,'images': getImageArray(startDate, endDate),- 'interval': interval / 10,+ 'interval': 1 / interval,'progressCallback': function(captureProgress) {$progress.parent().dialog("option", "title", "Creating GIF..."); //set dialog title$progress.attr("value", captureProgress); //before value set, it is in indeterminate state@@ -184,7 +184,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {a.push(src);current = wv.util.dateAdd(current, ui.anim.getInterval(), 1);}- for(var i = 0,+ for(var i = 0,len = animModel.rangeState.speed / 2, // get a half seconds worth of frameslastSrc = a.length - 1;i < len; i++) {