Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed * WV-343 * WV-344 * WV-349 * WV-350

Tilak Joshi3787e7a68a5b
diff --git a/css/dateSpan.css b/css/dateSpan.css
index dfb5f254b..dd0d90830 100644
--- a/css/dateSpan.css
+++ b/css/dateSpan.css
@@ -54,7 +54,7 @@ ul.sliderLabel {text-shadow: none; color:#fff; margin:-20px 0 0 0; background:no
ul.sliderLabel li {float:left; background:none; margin:0px; text-align:center; overflow:hidden; font-weight: 700; font-size: 0.9em; padding: 0.1em 0;}
div.sliderDivYear {clear:both;}
div.sliderDivMonth {background: rgba(25,30,35,0.5);}
-div.sliderDivDay { margin-bottom:4px;}
+div.sliderDivDay { }
#timesliderLabelDay {margin:-24px 0 0;}
.disabledItem {color:rgba(125,125,125,0.9) !important;}
a.ui-slider-handle {position:relative; height:80%; top:-3%; background: rgba(31,143,237,.26); border: #1f8fed 2px solid; }
diff --git a/css/selector.css b/css/selector.css
index bd7a842f9..81695687d 100644
--- a/css/selector.css
+++ b/css/selector.css
@@ -16,6 +16,7 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e
}
.selector .tabContainer {border-bottom: 2px #906a00 solid; }
+
.selector h3 {display:inline-block; float: left; color:#333333; font-size: 0.9em; border:none; text-decoration:none; }
.selector div,.selector ul {display:block; overflow:hidden;margin:0 auto; width:100%;}
.selector li.selectorItem {padding:8px 0px 8px 0px; width:100%; display:block; float:left; overflow:hidden;
@@ -30,7 +31,7 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', e
.selector li.selectorItem input {float:right;}
.selector li.selectorItem h4 {font-size:0.85em; color:#fff;padding: 0 3px;}
.selector li.selectorItem p {padding: 0 3px; font-size:0.78em; }
-.selector ul.category { float:left; overflow:auto;}
+.selector ul.category { outline:none !important; float:left; overflow:auto;}
.selector h3.head {display:block; float: left; color:#ffffff; width:100%; border:none; text-decoration:none; background: rgba(120,120,120,.8); padding: 1px 3px;}
.selector a.flowbutton {text-decoration:none; display:inline-block; float: left; color:#ffffff; font-size: 1.4em; border:none; padding:6px 0; margin-top:20px; margin-left:5px;}
.selector ul li div {padding:0 !important;}
diff --git a/css/sote.css b/css/sote.css
index 29bfbda6a..efd47d2ba 100644
--- a/css/sote.css
+++ b/css/sote.css
@@ -39,7 +39,7 @@ h1, h2, h3, h4, h5, h6 { font-weight:400; }
#switch ul li div.hidden a.sw_antarctic:hover {background-image:url("../images/antarcticon.png");}
#switch ul li div.hidden a.sw_geographic:hover {background-image:url("../images/geographicon.png");}
-#switch ul li:hover div.hidden {display:block; background: rgba(38, 43, 49, 0.45); border-radius:0 0 5px 5px; position:relative; top:-1px;}
+#switch ul li:hover div.hidden { z-index:299; display:block; background: rgba(38, 43, 49, 0.45); border-radius:0 0 5px 5px; position:relative; top:-1px;}
/*#switch ul li:hover div.hidden a:hover img {border: #fff 1px solid; }*/
#switchcurrent {border:transparent 1px solid;}
/*#switch ul li div.hidden a:hover img {border:#155678 2px solid; }*/
@@ -65,7 +65,7 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolu
#products {display:block; float:left; position:relative; left:0; }
#banner {
- display:block; z-index:291; float:left; position:relative; width:100%; height:47px; background: transparent url("../images/toolbarbg.png");
+ display:block; z-index:294; float:left; position:relative; width:100%; height:47px; background: transparent url("../images/toolbarbg.png");
}
#wvlogo {background: transparent url('../images/logo.png') no-repeat center; width:154px; height:27px; padding:8px 5px; display:inline-block;}
diff --git a/js/selector.js b/js/selector.js
index 6cde1cae6..e8ef11db4 100644
--- a/js/selector.js
+++ b/js/selector.js
@@ -122,36 +122,7 @@ SOTE.widget.Selector.prototype.render = function(){
titleContainer.appendChild(title);
this.container.appendChild(titleContainer);
var count = 0;
- /*for(var i in this.data){
- count++;
- if(i !== "All" && i !== "palettes"){
- var catItem = document.createElement("li");
- var formatted = i.replace(/\s/g, "");
- itemLink = document.createElement("a");
- itemLink.setAttribute("id",formatted);
- itemLink.innerHTML = "<img src='images/"+formatted.toLowerCase()+".png' /><p>"+i+"</p>";
- catItem.appendChild(itemLink);
- catList.appendChild(catItem);
- $("#"+this.id).delegate("#" + formatted,'click',{self:this,category:i},SOTE.widget.Selector.loadCategory);
- }
-
- }
-
- if(count <= 2){
- SOTE.widget.Selector.loadCategory({ data: {self:this,category:"All"}, back: true });
- return;
- }
-
- this.container.appendChild(catList);
-
- var subFront = document.createElement("a");
- subFront.setAttribute("id","subfront");
- subFront.setAttribute("class","flowbutton");
- subFront.setAttribute("href","javascript:void(0);");
- subFront.innerHTML = "<b>skip this step</b> to see all available layers >>";
- this.container.appendChild(subFront);
- $("#"+this.id).undelegate("#" + "subfront",'click');
- $("#"+this.id).delegate("#" + "subfront",'click',{self:this,category:"All"},SOTE.widget.Selector.loadCategory);*/
+
SOTE.widget.Selector.loadCategory({ data: {self:this,category:"All"}, back: false });
@@ -186,8 +157,6 @@ SOTE.widget.Selector.prototype.reloadCategory = function(){
SOTE.widget.Selector.loadCategory = function(e){
- //<div id="selectorbox"><h1>Choose Your Layers: Dust Storms</h1><ul class='base'><li><a>Base 1</a></li></ul><ul class='overlays'><li><a>Overlay 1</a></li></ul><a>Previous step</a></div>
-
var self = e.data.self;
var cat = e.data.category;
self.openCat = cat;
@@ -198,13 +167,6 @@ SOTE.widget.Selector.loadCategory = function(e){
//self.container.innerHTML = "";
$("#"+self.id).empty();
- /*var titleContainer = document.createElement("div");
- titleContainer.setAttribute("class","tabContainer");
- var title = document.createElement("h2");
- title.innerHTML = "Add Layers +";
- titleContainer.appendChild(title);
- self.container.appendChild(titleContainer);*/
-
var form = document.createElement("div");
form.setAttribute("class","facetedSearch");
form.setAttribute("id",self.id+"facetedSearch");
@@ -278,25 +240,6 @@ SOTE.widget.Selector.loadCategory = function(e){
subItem.appendChild(itemHead);
subItem.appendChild(itemP);
- // Uncomment this line and the "self.renderCanvases" line below to add color bars
-
- /*if(self.data.palettes[item.value]){
- var p = self.data.palettes[item.value];
- var palette = document.createElement("span");
- palette.setAttribute("class","palette");
- palette.style.marginTop = "10px";
- palette.style.overflow = "hidden";
- palette.style.display = "block";
- var paletteString = "<span class='p-min' style='margin-right:10px;'>"+p.min+"</span>" +
- "<canvas id='canvas"+self.id+item.value+"' width=100px height=14px'></canvas>" +
- "<span class='p-max' style='margin-left:10px;'>"+p.max+"</span>";
- if(p.units && p.units != ""){
- paletteString += "<span class='units' style='margin-left:3px;'>("+p.units+")</span>";
- }
- palette.innerHTML = paletteString;
- subItem.appendChild(palette);
- }*/
-
categories[item.category].appendChild(subItem);
$("#"+self.id).delegate("#" + formatted,'click',{self:self},SOTE.widget.Selector.toggleValue);
}
@@ -435,7 +378,7 @@ SOTE.widget.Selector.search = function(e){
if($(window).width() > 720){
if(self.jsp){
var api = self.jsp.data('jsp');
- api.destroy();
+ if(api) api.destroy();
}
self.jsp = $( ".category" ).jScrollPane({autoReinitialise: true, verticalGutter:0});
}