Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

changed minimizing action, adjusted hover labels, added max-width to input values

Taylor Gunnoe2d862d56bd61
diff --git a/src/css/new-ui.css b/src/css/new-ui.css
index b1c6c52a5..480efa038 100644
--- a/src/css/new-ui.css
+++ b/src/css/new-ui.css
@@ -109,6 +109,15 @@
box-sizing:border-box;
-webkit-box-sizing:border-box;
}
+#timeline-header .input-wrapper:nth-child(2){
+ max-width:60px;
+}
+#timeline-header .input-wrapper:nth-child(3){
+ max-width:50px;
+}
+#timeline-header .input-wrapper:nth-child(4){
+ max-width:35px;
+}
#timeline-header input{
height:40px;
color:#1a1a1a;
@@ -120,6 +129,7 @@
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
+ padding:0;
}
@media all{
#timeline-header input::selection{
diff --git a/src/js/date/wv.date.timeline.js b/src/js/date/wv.date.timeline.js
index 0425068c2..baf05d200 100644
--- a/src/js/date/wv.date.timeline.js
+++ b/src/js/date/wv.date.timeline.js
@@ -259,7 +259,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
.attr("y","15")
.attr("x",rectWidth/2)
.attr("style","text-anchor:middle")
- .text(tickDate.getUTCDate() + " " + monthNames[tickDate.getUTCMonth()] + " " + tickDate.getUTCFullYear());
+ .text(tickDate.getUTCFullYear() + " " + monthNames[tickDate.getUTCMonth()] + " " + tickDate.getUTCDate());
/* tickParent.append("svg:text")
.attr("class","hover-sub-label")
.attr("y","30")
@@ -500,6 +500,16 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
guitarPick.attr("transform","translate("+ (x(newDate)-28) +",-16)");
model.select(newDate);
}
+ /*
+ tickParent.selectAll('.tick-label, .sub-label').attr("visibility","hidden");
+ tickParent.append("svg:text")
+ .attr("class","hover-tick-label")
+ .attr("y","15")
+ .attr("x",rectWidth/2)
+ .attr("style","text-anchor:middle")
+ .text(tickDate.getUTCFullYear() + " " + monthNames[tickDate.getUTCMonth()] + " " + tickDate.getUTCDate());
+
+ */
});
d3.select(document).on("mouseup",function(){
if (mousedown){
@@ -633,18 +643,14 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
$(this).siblings('.button-input-group').focus();
});
$('#timeline-hide').click(function(e){
- var tl = d3.select('#timeline-footer svg');
- var tlZ = d3.select('#timeline-zoom');
- if(tl.style('display')==='none'){
- tl.style('display','');
- tlZ.style('display','');
-
+ var tl = $('#timeline-footer, #timeline-zoom');
+ if(tl.is(':hidden')){
+ tl.show('slow');
$('#timeline').css('right','10px');
d3.select("#guitarpick").attr("style","display:block;");
}
else{
- tl.style('display','none');
- tlZ.style('display','none');
+ tl.hide('slow');
d3.select("#guitarpick").attr("style","display:none;");
$('#timeline').css('right','auto');
}