Interactive interface for browsing global, full-resolution satellite imagery
Fixed responsive worldview bugs
Tilak Joshi4ada3808ad92
diff --git a/css/bank.css b/css/bank.cssindex 8f8d50400..6fc017e6c 100644--- a/css/bank.css+++ b/css/bank.css@@ -1,11 +1,13 @@canvas {float:left;}-a.accordionToggler { float:right; display:inline-block; width:10%; z-index:292; height:2.1em;/*box-shadow: 3px 0 4px 1px #bbb;*/ border-radius: 0 10px 10px 0; -moz-border-radius: 0 10px 10px 0; -webkit-border-radius: 0 10px 10px 0; text-decoration:none; background: none no-repeat scroll center; color:#fff; position:relative; letter-spacing:2px; font-family:"Gill Sans","Helvetica",sans-serif;}+a.accordionToggler {display:block; width:10%; overflow:hidden; z-index:292; height:2.1em; background: none no-repeat scroll left;}+a.arrow { float:right; border-radius: 0 10px 10px 0; -moz-border-radius: 0 10px 10px 0; -webkit-border-radius: 0 10px 10px 0; text-decoration:none; color:#fff; position:relative; letter-spacing:2px; font-family:"Gill Sans","Helvetica",sans-serif;}+a.staticLayers { float:left; left:0; position:absolute; top:49px;}a.atcollapse {background-image: url("../images/expandIn.png"); }a.atexpand {background-image: url("../images/expandOut.png");}-div.bank { display:inline-block; float:left; width: 100%; height:100%;/*box-shadow: 0 0 4px 1px #bbb;*/ font: 1em; color: #fff; text-shadow:none;}-.bank h1,h2,h3,h4 {margin:0px; padding:0px; color:#fffbe7;}+div.bank { display:inline-block; float:left; width: 100%; height:100%; /*box-shadow: 0 0 4px 1px #bbb;*/ font: 1em; color: #fff; text-shadow:none;}+.bank h1,h2,h3,h4 {margin:0px; padding:0px; color:#fff;}.bank h2 {font-size:1.4em; display:inline-block; float: left; color:#ffffff; border:none; padding:9px 30px 9px 30px;background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(11,95,160,0.7) 23%, rgba(0,88,156,0.7) 24%, rgba(0,81,144,0.7) 99%, rgba(0,81,144,0.7) 100%); /* FF3.6+ */background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.7)), color-stop(23%,rgba(11,95,160,0.7)), color-stop(24%,rgba(0,88,156,0.7)), color-stop(99%,rgba(0,81,144,0.7)), color-stop(100%,rgba(0,81,144,0.7))); /* Chrome,Safari4+ */@@ -22,15 +24,15 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e#callSelectorLink {display: inline-block; width:32px; height:32px; background: transparent url("../images/addLayers.png"); margin-left: 50px;float:right;}.bank div,.bank ul {display:block;width:100%; margin:0 auto;}.bank .category {overflow:hidden;}-.bank h3 {background: rgba(120,120,120,.7); margin-top:2px; padding: 1px 3px; }+.bank h3 {background: rgba(120,120,120,.8); padding: 1px 3px; font-size:0.9em;}.bank li.item {padding:0; display:block; width:100%; padding:8px 0px 8px 0px; overflow:hidden;-background: -moz-linear-gradient(top, rgba(0,0,0,0.54) 0%, rgba(2,2,2,0.54) 1%, rgba(78,78,78,0.54) 50%, rgba(0,0,0,0.54) 100%); /* FF3.6+ */-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.24)), color-stop(1%,rgba(2,2,2,0.24)), color-stop(50%,rgba(78,78,78,0.24)), color-stop(100%,rgba(0,0,0,0.24))); /* Chrome,Safari4+ */-background: -webkit-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* Chrome10+,Safari5.1+ */-background: -o-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* Opera 11.10+ */-background: -ms-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* IE10+ */-background: linear-gradient(to bottom, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* W3C */-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3d000000', endColorstr='#3d000000',GradientType=0 ); /* IE6-9 */+background: -moz-linear-gradient(top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.68) 50%, rgba(0,0,0,0.75) 100%); /* FF3.6+ */+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.6)), color-stop(50%,rgba(0,0,0,0.68)), color-stop(100%,rgba(0,0,0,0.75))); /* Chrome,Safari4+ */+background: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* Chrome10+,Safari5.1+ */+background: -o-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* Opera 11.10+ */+background: -ms-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* IE10+ */+background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.68) 50%,rgba(0,0,0,0.75) 100%); /* W3C */+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', endColorstr='#bf000000',GradientType=0 ); /* IE6-9 */}@@ -42,11 +44,11 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3d000000', e.bank li.item a {float:right; color:#fff; margin-right:0.3em;}.bank li.item a.hdanchor {display:inline-block; overflow:hidden;}-.bank li.item h4 {font-size:0.9em; padding:0 3px;}-.bank li.item p {padding:0 3px; color:#fffbe7; font-size:0.8em;}+.bank li.item h4 {font-size:0.85em; padding:0 3px;}+.bank li.item p {padding:0 3px; color:#fff; font-size:0.78em;}.bank li.item span.palette {display:block; overflow:hidden; margin-top:5px; margin-left:5px;}.bank li.item ul.palette li {float:left;}-.bank ul.category { overflow:auto; *background: rgba(255,255,255,.7); border-radius:5px; */}+.bank ul.category { overflow:auto; }.bank ul.category li h3 {display:block; clear:both; float:none;}img.bank-item-img { display:block; height: 14px; width:auto;}span.p-min {float:left;}diff --git a/css/dateSpan.css b/css/dateSpan.cssindex b81c4ca61..f278af63a 100644--- a/css/dateSpan.css+++ b/css/dateSpan.css@@ -1,4 +1,7 @@-#timeds, #timemds {position:absolute;}+#timeds, #timemds {position:relative;}+#timemds {display:none;}++div.dwv, div.dwl, div.dw-i { font-weight:700; }.datespan ul, menu, dir{-webkit-margin-before: 0em;@@ -6,12 +9,14 @@-webkit-margin-start: 0px;-webkit-margin-end: 0px;-webkit-padding-start: 0px;+}.spanContainerLabel {width:25%; float:left; text-shadow:none; display:block; margin-top:20px; text-align:center; font-size:.1em; color:#fff;}.spanContainerLabelDate,.spanContainerLabelDay {display:block; font-size:.25em;}.spanContainerLabelDay{font-size:.16em;}.spanContainer { float:left; min-height:100%; width:100%;}-.datespan {width:100%; overflow:hidden; background:none; padding-bottom:5px;}+div.datespan {width:auto; overflow:hidden; background:none;+}.datespan div.olMap {width:11.78%; height:100px;float:left;-moz-box-shadow: 0 0 5px 5px #111;@@ -31,20 +36,22 @@ input.ui-slider-input {width:0px; margin:0px;}div.slider {/*background: rgba(45,50,55,.75);*/ margin-bottom:0px; /*box-shadow: 0px 0px 4px 1px #bbb;*/-background: -moz-linear-gradient(top, rgba(35,40,45,0.65) 0%, rgba(0,5,10,0.65) 50%, rgba(35,40,45,0.65) 100%); /* FF3.6+ */-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(35,40,45,0.65)), color-stop(50%,rgba(0,5,10,0.65)), color-stop(100%,rgba(35,40,45,0.65))); /* Chrome,Safari4+ */-background: -webkit-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* Chrome10+,Safari5.1+ */-background: -o-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* Opera 11.10+ */-background: -ms-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* IE10+ */-background: linear-gradient(to bottom, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* W3C */-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf2d2d2d', endColorstr='#bf2d2d2d',GradientType=0 ); /* IE6-9 */+background: -moz-linear-gradient(top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.8) 100%); /* FF3.6+ */+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.6)), color-stop(50%,rgba(0,0,0,0.7)), color-stop(100%,rgba(0,0,0,0.8))); /* Chrome,Safari4+ */+background: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,0.8) 100%); /* Chrome10+,Safari5.1+ */+background: -o-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,0.8) 100%); /* Opera 11.10+ */+background: -ms-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,0.8) 100%); /* IE10+ */+background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.7) 50%,rgba(0,0,0,0.8) 100%); /* W3C */+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99000000', endColorstr='#cc000000',GradientType=0 ); /* IE6-9 */++height:23px;}-ul.sliderLabel {text-shadow: none; color:#fff; margin:-20px 0 0 0; background:none; height:20px; overflow:hidden; font-size:12px !important; font-weight:100; line-height:20px !important;}-ul.sliderLabel li {float:left; background:none; margin:0px; text-align:center; overflow:hidden;}+ul.sliderLabel {text-shadow: none; color:#fff; margin:-20px 0 0 0; background:none; overflow:hidden; }+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(45,50,55,0.5);}+div.sliderDivMonth {background: rgba(25,30,35,0.5);}div.sliderDivDay { margin-bottom:4px;}#timesliderLabelDay {margin:-24px 0 0;}.disabledItem {color:rgba(125,125,125,0.9) !important;}@@ -55,16 +62,16 @@ div.ui-slider {border:none; background:transparent; /*width:100%;*/ margin:0px;.sliderDivMonth a.ui-slider-handle {width:54px; margin-left:-30px !important;}.sliderDivYear a.ui-slider-handle {width:54px; margin-left:-30px !important;}*/-.dateHolder,#linkmode {display:inline-block; float:left; width:6em; /*background: rgba(45,50,55,.75);*/ margin-bottom:10px; margin-top:3px;text-shadow:none; color:#fff; font-weight:bold; font-size:12px; text-align:center; padding:5px 0px; padding-right:28px;+.dateHolder,#linkmode {display:inline-block; float:left; width:6em; /*background: rgba(45,50,55,.75);*/ margin-bottom:10px; margin-top:3px;text-shadow:none; color:#fff; font-weight:bold; font-size:.9em; text-align:center; padding:0.3em 0px; padding-right:28px;border-radius: 0 5px 5px 0;-background: -moz-linear-gradient(top, rgba(35,40,45,0.65) 0%, rgba(0,5,10,0.65) 50%, rgba(35,40,45,0.65) 100%); /* FF3.6+ */-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(35,40,45,0.65)), color-stop(50%,rgba(0,5,10,0.65)), color-stop(100%,rgba(35,40,45,0.65))); /* Chrome,Safari4+ */-background: -webkit-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* Chrome10+,Safari5.1+ */-background: -o-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* Opera 11.10+ */-background: -ms-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* IE10+ */-background: linear-gradient(to bottom, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* W3C */-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf2d2d2d', endColorstr='#bf2d2d2d',GradientType=0 ); /* IE6-9 */+background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.5)), color-stop(50%,rgba(0,0,0,0.6)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */+background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */+background: -o-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */+background: -ms-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* IE10+ */+background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* W3C */+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 *//*-moz-box-shadow: 0 -1px 15px #fff;-webkit-box-shadow: 0 -1px 15px #fff;*//*box-shadow: 0 0px 4px 1px #bbb;*/}diff --git a/css/products.css b/css/products.cssindex 8c76d7b87..30c099373 100644--- a/css/products.css+++ b/css/products.css@@ -1,8 +1,8 @@-.products {display:block; float:left; z-index:292; min-width:238px; top:2%; width:25%; height:65%; position:relative; overflow:hidden;+.products {display:block; float:left; z-index:292; min-width:238px; width:18%; height:65%; position:relative; overflow:hidden;background: rgba(38,43,49,0.65); border-radius:0 10px 10px 0;}-.ui-tabs-nav {clear:both; display:inline-block; overflow:hidden; width:90%; border-radius:0; border-bottom: 3px #00457b solid; }+.ui-tabs-nav {clear:both; display:inline-block; overflow:hidden; width:90%; border-radius:0; border-bottom: 3px #00457b solid; float:left;}.ui-tabs-nav li {height:100%; display:inline-block; float:left; width:50%;}.ui-tabs-nav li a {/*border-radius: 10px 10px 0 0;*/ color: #fff; font-size:1.1em; font-weight: 400; display:block; border:none; padding:0.5em 0; width:100%;text-align:center; text-decoration:none; text-shadow:none;diff --git a/css/selector.css b/css/selector.cssindex df85ffbac..bd7a842f9 100644--- a/css/selector.css+++ b/css/selector.css@@ -16,22 +16,22 @@ 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: 1em; border:none; text-decoration:none; }+.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;-color:#fffbe7;-background: -moz-linear-gradient(top, rgba(0,0,0,0.24) 0%, rgba(2,2,2,0.24) 1%, rgba(78,78,78,0.24) 50%, rgba(0,0,0,0.24) 100%); /* FF3.6+ */-background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.24)), color-stop(1%,rgba(2,2,2,0.24)), color-stop(50%,rgba(78,78,78,0.24)), color-stop(100%,rgba(0,0,0,0.24))); /* Chrome,Safari4+ */-background: -webkit-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* Chrome10+,Safari5.1+ */-background: -o-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* Opera 11.10+ */-background: -ms-linear-gradient(top, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* IE10+ */-background: linear-gradient(to bottom, rgba(0,0,0,0.24) 0%,rgba(2,2,2,0.24) 1%,rgba(78,78,78,0.24) 50%,rgba(0,0,0,0.24) 100%); /* W3C */-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3d000000', endColorstr='#3d000000',GradientType=0 ); /* IE6-9 */}+color:#fff;+background: -moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.5)), color-stop(50%,rgba(0,0,0,0.6)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */+background: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */+background: -o-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */+background: -ms-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* IE10+ */+background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* W3C */+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 */}.selector li.selectorItem input {float:right;}-.selector li.selectorItem h4 {font-size:0.9em; color:#fffbe7;padding: 0 3px;}-.selector li.selectorItem p {padding: 0 3px; font-size:0.8em; }+.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 h3.head {display:block; float: left; color:#ffffff; width:100%; border:none; text-decoration:none; background: rgba(120,120,120,.7); margin-top:2px; padding: 1px 3px;}+.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;}.selector ul.toplevel {padding:0px;}diff --git a/css/sote.css b/css/sote.cssindex f90e0b35b..623b49617 100644--- a/css/sote.css+++ b/css/sote.css@@ -54,10 +54,8 @@ h1, h2, h3, h4, h5, h6 { font-weight:400; }#permpanel h3 {color:#FFFFFF; font: 12px "Gill Sans", sans-serif; font-weight:100; text-decoration:none;}#permpanel input[type='text']{width:280px;}-div.horizontalContainer {width:100%; height:17%; display:block; float:left; position:absolute; overflow:hidden; bottom:10px; z-index:200; padding: 5px 0 5px 0;}-/*#imgDownloadLink,#aboutus,#permalink {float:right; margin-top:5px; position:relative; z-index:1002;display:block; width:50px; }-#imgDownloadLink,#aboutus,#permalink img {width:50px; height:44.5px; border:none;}-#imgDownloadLink,#aboutus,#permalink a{text-decoration:none; border:none;}*/+div.horizontalContainer {width:100%; display:block; float:left; position:absolute; bottom:10px; overflow:hidden; z-index:200; padding: 0;}+#permalink_content {margin-top:10px;}diff --git a/index.html b/index.htmlindex 942e04f3d..72094db5a 100644--- a/index.html+++ b/index.html@@ -46,14 +46,14 @@<!-- css.dev --> <link href="css/ext/mobiscroll/mobiscroll.wp.css" rel="stylesheet" type="text/css" /><!-- css.dev --> <link href="css/ext/mobiscroll/mobiscroll.animation.css" rel="stylesheet" type="text/css" />-++ <!-- css.dev --> <link type="text/css" href="css/sote.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/map.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/dateSpan.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/menuPicker.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/accordionPicker.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/bank.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/selector.css" rel="Stylesheet" />- <!-- css.dev --> <link type="text/css" href="css/sote.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/palette.css" rel="Stylesheet"/><!-- css.dev --> <link type="text/css" href="css/splash.css" rel="Stylesheet" /><!-- css.dev --> <link type="text/css" href="css/products.css" rel="Stylesheet" />diff --git a/js/bank.js b/js/bank.jsindex 600934d5d..f175253c8 100644--- a/js/bank.js+++ b/js/bank.js@@ -299,7 +299,7 @@ SOTE.widget.Bank.prototype.render = function(){{if(this.jsp){var api = this.jsp.data('jsp');- api.destroy();+ if(api) api.destroy();}this.jsp = $( "." + this.id + "category" ).jScrollPane({autoReinitialise: true});}diff --git a/js/datePicker.js b/js/datePicker.jsindex 9223396b4..f645639e7 100644--- a/js/datePicker.js+++ b/js/datePicker.js@@ -39,9 +39,9 @@ SOTE.widget.DatePicker = function(containerId, config){this.config = config;this.current = null;+ this.resizing = false;this.init();-$(window).bind("resize",{self:this},SOTE.widget.DatePicker.resize);};@@ -71,6 +71,8 @@ SOTE.widget.DatePicker.prototype.init = function(){this.ds = new SOTE.widget.DateSpan(this.ds_id, this.config);this.mds = new SOTE.widget.MobileDateSpan(this.mds_id, this.config);+ this.current = this.ds;+$("#"+this.ds_id).bind("fire", {self:this}, SOTE.widget.DatePicker.handleFire);$("#"+this.mds_id).bind("fire", {self:this}, SOTE.widget.DatePicker.handleFire)@@ -83,28 +85,37 @@ SOTE.widget.DatePicker.prototype.init = function(){else{alert("No REGISTRY found! Cannot register DatePicker!");}+ //this.fire();+};SOTE.widget.DatePicker.handleFire = function(e,value){var self = e.data.self;- if(self.current.id = self.ds_id) self.mds.set(value); else self.ds.set(value);+ if(self.current.id == self.ds_id) self.mds.set(value); else self.ds.set(value);self.fire();};SOTE.widget.DatePicker.resize = function(e){+var self = e.data.self;- if($(window).width() > 720){- self.current = self.ds;- self.ds.show();- self.mds.hide();+ if(!self.resizing){+ setTimeout(function(){+ if($(window).width() > 720){+ self.current = self.ds;+ self.ds.show();+ self.mds.hide();+ }+ else {+ self.current = self.mds;+ self.ds.hide();+ self.mds.show();+ }+ self.resizing = false;+ }, 1000);}- else {- self.current = self.mds;- self.ds.hide();- self.mds.show();- }+ self.resizing = true;};/**diff --git a/js/dateSpan.js b/js/dateSpan.jsindex b691d0fa9..da5d4feac 100644--- a/js/dateSpan.js+++ b/js/dateSpan.js@@ -456,13 +456,15 @@ SOTE.widget.DateSpan.prototype.hideSliders = function(){for(var i in this.sliders){$("#"+this.id+"sliderDiv"+i).css('display','none');}-}+ $('.sliderLabel').css("display","none");+};SOTE.widget.DateSpan.prototype.showSliders = function(){for(var i in this.sliders){$("#"+this.id+"sliderDiv"+i).css('display','block');}-}+ $('.sliderLabel').css("display","block");+};/*** Sets the selected date in the dateSpan from the passed in date string (ISO8601 format), if valid@@ -706,7 +708,7 @@ SOTE.widget.DateSpan.prototype.getStatus = function(){**/SOTE.widget.DateSpan.prototype.hide = function(){- $("#"+this.id).css("left","-999em");+ $("#"+this.id).css("display","none");};/**@@ -716,7 +718,7 @@ SOTE.widget.DateSpan.prototype.hide = function(){**/SOTE.widget.DateSpan.prototype.show = function(){- $("#"+this.id).css("left","0");+ $("#"+this.id).css("display","block");};/**diff --git a/js/main.js b/js/main.jsindex b40a8ba93..22ef9b06f 100644--- a/js/main.js+++ b/js/main.js@@ -95,8 +95,8 @@ $(function() {// Initialize "static" vars//REGISTRY.addEventListener("map","time","imagedownload");REGISTRY.addEventListener("time","map","imagedownload", apcn.containerId, epsg.containerId);- REGISTRY.addEventListener("switch","map","products","selectorbox","time", "imagedownload", "camera", apcn.containerId, epsg.containerId);- REGISTRY.addEventListener("products","map","time","selectorbox","imagedownload","palettes", apcn.containerId);+ REGISTRY.addEventListener("switch","map","products","selectorbox", "imagedownload", "camera", apcn.containerId, epsg.containerId);+ REGISTRY.addEventListener("products","map","selectorbox","imagedownload","palettes", apcn.containerId);REGISTRY.addEventListener("selectorbox","products");REGISTRY.addEventListener("camera","imagedownload");REGISTRY.addEventListener("palettes","map","camera","products");diff --git a/js/mobileDateSpan.js b/js/mobileDateSpan.jsindex a41742c27..3c0020f4e 100644--- a/js/mobileDateSpan.js+++ b/js/mobileDateSpan.js@@ -107,7 +107,8 @@ SOTE.widget.MobileDateSpan.prototype.init = function(){},onClose: function(){$("#linkmode").css("display","block");- }+ },+ dateFormat: 'yyyy-mm-dd'});$("#linkmode").mobiscroll('setDate',this.value,true);@@ -290,7 +291,7 @@ SOTE.widget.MobileDateSpan.prototype.getStatus = function(){**/SOTE.widget.MobileDateSpan.prototype.hide = function(){- $("#"+this.id).css("left","-999em");+ $("#"+this.id).css("display","none");};/**@@ -300,7 +301,7 @@ SOTE.widget.MobileDateSpan.prototype.hide = function(){**/SOTE.widget.MobileDateSpan.prototype.show = function(){- $("#"+this.id).css("left","0");+ $("#"+this.id).css("display","block");};/**diff --git a/js/products.js b/js/products.jsindex 73dd39890..9a3e22e3a 100644--- a/js/products.js+++ b/js/products.js@@ -109,7 +109,7 @@ SOTE.widget.Products.prototype.render = function(){toggleButtonHolder.setAttribute("id",this.id+"toggleButtonHolder");toggleButtonHolder.setAttribute("class","toggleButtonHolder");var accordionToggler = document.createElement("a");- accordionToggler.setAttribute("class","accordionToggler atcollapse");+ accordionToggler.setAttribute("class","accordionToggler atcollapse arrow");accordionToggler.setAttribute("title","Hide Products");this.isCollapsed = false;toggleButtonHolder.appendChild(accordionToggler);@@ -132,6 +132,10 @@ SOTE.widget.Products.prototype.render = function(){//$('#'+this.id+"prods").on("tabsshow",SOTE.widget.Products.change);$('.accordionToggler').bind('click',{self:this},SOTE.widget.Products.toggle);++ if($(window).width() < 720){+ SOTE.widget.Products.toggle({data: {self:this}});+ }//setTimeout(SOTE.forceResize();@@ -145,9 +149,17 @@ SOTE.widget.Products.prototype.render = function(){$(window).resize(function(){self.b.render();self.s.render();+ self.adjustAlignment();});};+SOTE.widget.Products.prototype.adjustAlignment = function(){+ if($(window).width() < 720 && this.isCollapsed){+ var w = $('.products').outerWidth();+ $('.products').css("left", "-"+w+"px");+ }+};+SOTE.widget.Products.forceResize = function(self){var outerHeight = $("#"+self.id).outerHeight();var tabHeight = $("#"+self.id+"tabs").outerHeight();@@ -173,24 +185,19 @@ SOTE.widget.Products.change = function(e,ui){SOTE.widget.Products.toggle = function(e,ui){var self = e.data.self;if(self.isCollapsed){- $('.accordionToggler').removeClass('atexpand').addClass('atcollapse');+ $('.accordionToggler').removeClass('atexpand').addClass('atcollapse').removeClass('staticLayers').addClass('arrow');$('.accordionToggler').attr("title","Hide Products");- $('.accordionToggler').css("float","right");- $('.products').css("position","relative");//$('.products').css("left","0");- $('.products').animate({left:'0'}, 200);+ $('.products').animate({left:'0'}, 300);self.isCollapsed = false;$('.accordionToggler').appendTo("#"+self.id+"toggleButtonHolder");}else{- $('.accordionToggler').removeClass('atcollapse').addClass('atexpand');+ $('.accordionToggler').removeClass('atcollapse').addClass('atexpand').removeClass('arrow').addClass('staticLayers');$('.accordionToggler').attr("title","Show Products");- $('.accordionToggler').css("float","left");-- //$('.products').css("left","-999em");- $('.products').animate({left:'-100em'}, 300, function(){- $('.products').css("position","absolute");- });++ var w = $('.products').outerWidth();+ $('.products').animate({left:'-'+w+"px"}, 300);self.isCollapsed = true;$("#"+self.id).after($('.accordionToggler'));}diff --git a/js/selector.js b/js/selector.jsindex debeca076..f2fa11966 100644--- a/js/selector.js+++ b/js/selector.js@@ -331,7 +331,7 @@ SOTE.widget.Selector.loadCategory = function(e){var api = self.jsp.data('jsp');if(api) {api.destroy()};}- self.jsp = $( ".category" ).jScrollPane({autoReinitialise: true});+ self.jsp = $( ".category" ).jScrollPane({autoReinitialise: true, verticalGutter:0});}setTimeout(SOTE.widget.Selector.adjustCategoryHeights,1,{self:self});@@ -431,7 +431,7 @@ SOTE.widget.Selector.search = function(e){var api = self.jsp.data('jsp');api.destroy();}- self.jsp = $( ".category" ).jScrollPane({autoReinitialise: true});+ self.jsp = $( ".category" ).jScrollPane({autoReinitialise: true, verticalGutter:0});}setTimeout(SOTE.widget.Selector.adjustCategoryHeights,1,{self:self});