Interactive interface for browsing global, full-resolution satellite imagery
Working version of timeline, major code cleanup needed!
Taylor Gunnoed9244aa1ecaa
diff --git a/brand/brand.json b/brand/brand.jsonnew file mode 100644index 000000000..6bb3f7d74--- /dev/null+++ b/brand/brand.json@@ -0,0 +1 @@+{"brand": "worldview"}diff --git a/brand/options.json b/brand/options.jsonnew file mode 100644index 000000000..2051a77e7--- /dev/null+++ b/brand/options.json@@ -0,0 +1,11 @@+{+ "packageName": "worldview",+ "officialName": "EOSDIS Worldview (Alpha)",+ "longName": "EOSDIS Worldview",+ "shortName": "Worldview",+ "description": "Interactive satellite viewer",+ "url": "https://earthdata.nasa.gov/worldview",+ "version": "0.7.0",+ "release": "1",+ "email": "[email protected]"+}diff --git a/conf/web/brand/features.json b/conf/web/brand/features.jsonnew file mode 100644index 000000000..c267b5062--- /dev/null+++ b/conf/web/brand/features.json@@ -0,0 +1,6 @@+{+ "features": {+ "dataDownload": true,+ "urlShortening": true+ }+}diff --git a/conf/web/brand/scripts.json b/conf/web/brand/scripts.jsonnew file mode 100644index 000000000..13e93cf53--- /dev/null+++ b/conf/web/brand/scripts.json@@ -0,0 +1,5 @@+{+ "scripts": [+ "https://earthdata.nasa.gov/sites/all/themes/earthdata/js/ntpagetag.js"+ ]+}diff --git a/src/css/new-ui.css b/src/css/new-ui.cssindex c90527a18..6b8ea8667 100644--- a/src/css/new-ui.css+++ b/src/css/new-ui.css@@ -12,7 +12,8 @@/************************Timeline!****************************/#timeline{position:absolute;- bottom:5px;+ bottom:10px;+ left:10px;}#timeline footer text{font-size:16px;@@ -37,6 +38,7 @@background:url("../images/bg-not-front.gif") transparent 20% 50% no-repeat;}#timeline header input{+height:60px;background:transparent;border:1px solid transparent;@@ -45,21 +47,21 @@font-family:'Arial Narrow', sans-serif;vertical-align:middle;box-sizing:border-box;+ -moz-box-sizing:border-box;+ -webkit-box-sizing:border-box;}@media all{+ #timeline header input::selection{+ background:#2059a6;+ }#timeline header input::-moz-selection{- background:red;+ background:#2059a6;}#timeline header input::-webkit-selection{- background:red;+ background:#2059a6;}}-#this{-position: absolute;-left: 50%;-top: 50%;-color: #fff;-}+/* Temporary sizing of inputs until something more dynamic can be made */#timeline header input:nth-child(1){width:2em;padding:3px;}#timeline header input:nth-child(2){width:1.8em;padding:3px;}@@ -101,7 +103,7 @@ display:inline-block;}#timeline footer{height:60px;margin-left:-5px;- background:rgba(0,0,0,0.6);+ background:rgba(0,0,0,0.8);}@@ -133,16 +135,71 @@ display:inline-block;}}.line2 {fill: steelblue;- stroke: steelblue;- stroke-width: 2px;+ stroke: transparent;+ stroke-width: 1px;+ cursor:pointer;+}++.hoverkill{+ fill: steelblue;+ stroke-width:1px;+ stroke:transparent;}.hover-line{fill:none;- stroke:red;- stroke-width: 2px;+ stroke:#ff2a2a;+ stroke-width: 3px;}.hover-text{fill:red;font-weight:normal;font-size:12px;}+#timeline-text{+ color:black;+ font-size:14px;+ font-weight:bold;+ position:absolute;+ bottom:75px;+ left:0;+ display:none;+ background-color:#ff2a2a;+ border:2px solid #ff7070;+ padding:5px;+ border-radius:5px;+}+svg#now-line{+ position:absolute;+ bottom:0px;+ left:0;+ width:18px;+ height:79px;+ cursor:pointer;+}++.arrow-outer {+ fill:#548edd;+ fill-opacity:1;+ stroke:#222222;+ stroke-width:0.5;+ stroke-opacity:1;+}+svg#now-line rect.arrow-inner{+ stroke-width:0.5;+ stroke:transparent;+}+svg#now-line:hover .arrow-outer{+ stroke:#fff;+}+svg#now-line:hover rect.arrow-inner{+ stroke:#fff;+}+.arrow-inner{+ fill:#2059a6;+ fill-opacity:1;+}++.arrow-inner-line{+ fill:#222222;+ fill-opacity:1;+}diff --git a/src/images/brand/wv-logo.png b/src/images/brand/wv-logo.pngnew file mode 100644index 000000000..c3d6db10cBinary files /dev/null and b/src/images/brand/wv-logo.png differdiff --git a/src/images/brand/wv-logo.svg b/src/images/brand/wv-logo.svgnew file mode 100644index 000000000..5486b6d1f--- /dev/null+++ b/src/images/brand/wv-logo.svg@@ -0,0 +1,333 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ version="1.1"+ width="246.685"+ height="45"+ id="svg3121"+ inkscape:version="0.48.2 r9819"+ sodipodi:docname="wv-logo.svg">+ <sodipodi:namedview+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1"+ objecttolerance="10"+ gridtolerance="10"+ guidetolerance="10"+ inkscape:pageopacity="0"+ inkscape:pageshadow="2"+ inkscape:window-width="1088"+ inkscape:window-height="660"+ id="namedview4863"+ showgrid="false"+ inkscape:zoom="1.3053084"+ inkscape:cx="123.3425"+ inkscape:cy="22.5"+ inkscape:window-x="0"+ inkscape:window-y="581"+ inkscape:window-maximized="0"+ inkscape:current-layer="g4605" />+ <defs+ id="defs3123" />+ <metadata+ id="metadata3126">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title />+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g+ transform="translate(-1712.2751,-643.41528)"+ id="layer1">+ <g+ transform="matrix(0.29645651,0,0,0.29645651,1204.66,484.33009)"+ id="g4605">+ <path+ d="m 1895.2494,572.15701 34.8518,87.15769 12.374,0 14.5027,-34.85173 13.935,34.85173 12.4025,0 36.2422,-87.15769 -11.4658,0 -29.8283,70.64002 -14.304,-35.16392 14.7581,-35.4761 -11.4658,0 -9.0252,21.3708 -8.8548,-21.3708 -9.1671,0 -4.1435,0 15.1838,37.94523 -13.7932,32.69479 -28.9201,-70.64002 -9.167,0 -4.1153,0 z m 156.5206,20.80318 c -9.1633,7e-5 -16.4689,3.08596 -21.9668,9.22379 -5.4688,6.10885 -8.2305,14.30856 -8.2305,24.60623 0,10.29772 2.7617,18.49742 8.2305,24.60622 5.4979,6.10881 12.8035,9.16702 21.9668,9.16702 9.1341,0 16.4412,-3.05821 21.9101,-9.16702 5.4687,-6.13788 8.202,-14.33759 8.202,-24.60622 0,-10.29767 -2.7333,-18.49738 -8.202,-24.60623 -5.4689,-6.13783 -12.776,-9.22372 -21.9101,-9.22379 z m 296.7222,1.07848 0.056,0.11352 -36.6965,0 0,65.13412 41.9754,0 0,-7.40741 -33.1773,0 0,-23.61289 31.0203,0 0,-7.40741 -31.0203,0 0,-19.299 30.85,0 23.0737,57.7551 9.2805,0 10.8415,-26.11041 10.4442,26.11041 9.2805,0 27.1321,-65.27603 -8.571,0 -22.3358,52.90196 -10.6995,-26.33745 11.0401,-26.56451 -8.5994,0 -6.7546,16.00681 -6.6127,-16.00681 -6.8683,0 -3.1218,0 11.3807,28.43764 -10.3307,24.46432 -21.6546,-52.90196 -6.8681,0 -3.0651,0 z m -261.2177,0.11352 0,65.13412 8.8264,0 0,-27.52945 9.5928,0 c 3.4907,3e-5 6.2516,0.7032 8.2588,2.12856 2.0362,1.42541 4.1195,4.32115 6.2722,8.68455 l 8.344,16.71634 9.4509,0 -8.94,-17.7948 c -1.8036,-3.66528 -3.589,-6.5617 -5.3924,-8.65618 -1.7746,-2.09441 -3.6152,-3.44684 -5.5059,-4.08684 3.6361,-1.0472 6.3963,-2.91405 8.2872,-5.61942 1.9198,-2.70529 2.8947,-6.11544 2.8948,-10.21712 -1e-4,-6.28329 -1.8406,-10.99265 -5.5059,-14.1053 -3.6653,-3.11251 -9.241,-4.65439 -16.6879,-4.65446 l -19.895,0 z m 53.7533,0 0,65.13412 40.5279,0 0,-7.40741 -31.7013,0 0,-57.72671 -8.8266,0 z m 41.351,0 0,65.13412 18.1071,0 c 12.5666,0 21.8222,-2.62467 27.7564,-7.88988 5.9343,-5.2652 8.9115,-13.51953 8.9116,-24.74813 -10e-5,-11.17034 -2.9781,-19.37006 -8.8832,-24.60622 -5.9052,-5.26515 -15.1601,-7.88982 -27.7848,-7.88989 l -18.1071,0 z m 50.7451,0 24.8616,65.13412 9.9901,0 24.8332,-65.13412 -9.167,0 -20.6897,54.83187 -20.6329,-54.83187 -9.1953,0 z m 60.7635,0 0,65.13412 8.7979,0 0,-65.13412 -8.7979,0 z m -242.1174,5.95998 c 6.3996,7e-5 11.4602,2.38136 15.1838,7.15199 3.7525,4.77073 5.6477,11.29373 5.6478,19.52605 -10e-5,8.20328 -1.8953,14.67023 -5.6478,19.4409 -3.7236,4.7707 -8.7842,7.18037 -15.1838,7.18036 -6.3997,10e-6 -11.4873,-2.40966 -15.2689,-7.18036 -3.7526,-4.77067 -5.6194,-11.23762 -5.6194,-19.4409 0,-8.23232 1.8668,-14.75532 5.6194,-19.52605 3.7816,-4.77063 8.8692,-7.15192 15.2689,-7.15199 z m 44.3309,1.27715 11.0686,0 c 4.247,5e-5 7.4685,0.97428 9.6212,2.92323 2.1816,1.91997 3.2637,4.78872 3.2637,8.5994 0,3.81078 -1.0821,6.7065 -3.2637,8.68455 -2.1527,1.94904 -5.3742,2.92327 -9.6212,2.92324 l -11.0686,0 0,-23.13042 z m 95.1044,0 10.6428,0 c 8.9886,5e-5 15.5649,2.0294 19.7248,6.10188 4.1888,4.0435 6.272,10.43027 6.2721,19.1571 -10e-5,8.78507 -2.0833,15.22647 -6.2721,19.299 -4.1599,4.07255 -10.7362,6.1019 -19.7248,6.10189 l -10.6428,0 0,-50.65987 z"+ id="path4411"+ style="fill:#ececec;stroke:none" />+ <g+ style="font-size:40.85018157999999744px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#224f93;fill-opacity:1;stroke:none;font-family:Sans;stroke-opacity:1"+ id="text4422">+ <path+ d="m 2452.9695,646.49482 c -1.4893,10e-6 -2.613,0.25266 -3.3709,0.75796 -0.7447,0.50532 -1.1171,1.24998 -1.117,2.23399 -1e-4,0.90424 0.2991,1.61566 0.8975,2.13427 0.6117,0.50531 1.4561,0.75796 2.5332,0.75796 1.3431,0 2.4734,-0.47871 3.3909,-1.43614 0.9175,-0.97072 1.3763,-2.1808 1.3763,-3.63024 l 0,-0.8178 -3.71,0 m 10.9107,-2.69276 0,12.74573 -7.2007,0 0,-3.3111 c -0.9574,1.35636 -2.0345,2.34703 -3.2313,2.97201 -1.1968,0.61169 -2.6529,0.91753 -4.3683,0.91754 -2.3137,-1e-5 -4.1953,-0.67153 -5.6448,-2.01459 -1.4361,-1.35635 -2.1542,-3.11163 -2.1542,-5.26584 0,-2.61962 0.8976,-4.54112 2.6928,-5.76451 1.8084,-1.22336 4.6408,-1.83505 8.4971,-1.83506 l 4.2087,0 0,-0.5585 c 0,-1.13028 -0.4455,-1.95473 -1.3364,-2.47335 -0.8909,-0.53189 -2.2805,-0.79784 -4.1688,-0.79786 -1.5292,2e-5 -2.9521,0.15294 -4.2685,0.45877 -1.3165,0.30586 -2.5398,0.76463 -3.6701,1.3763 l 0,-5.44536 c 1.5292,-0.37231 3.065,-0.65156 4.6076,-0.83775 1.5425,-0.19944 3.085,-0.29917 4.6275,-0.29919 4.0292,2e-5 6.9347,0.79787 8.7166,2.39356 1.7952,1.58243 2.6927,4.16216 2.6928,7.7392"+ style="font-weight:bold;letter-spacing:-4.88605261000000013px;fill:#224f93;-inkscape-font-specification:Sans Bold;stroke:none;stroke-opacity:1"+ id="path4866" />+ <path+ d="m 2465.6761,625.51123 7.1408,0 0,31.03656 -7.1408,0 0,-31.03656"+ style="font-weight:bold;letter-spacing:-4.88605261000000013px;fill:#224f93;-inkscape-font-specification:Sans Bold;stroke:none;stroke-opacity:1"+ id="path4868" />+ <path+ d="m 2481.9731,653.31648 0,11.72847 -7.1408,0 0,-30.8371 7.1408,0 0,3.2712 c 0.9841,-1.30314 2.0745,-2.26056 3.2713,-2.87227 1.1967,-0.62497 2.573,-0.93746 4.1289,-0.93748 2.7525,2e-5 5.0131,1.09707 6.7817,3.29115 1.7686,2.18082 2.6529,4.99326 2.6529,8.43732 0,3.44408 -0.8843,6.26316 -2.6529,8.45726 -1.7686,2.1808 -4.0292,3.2712 -6.7817,3.27121 -1.5559,-1e-5 -2.9322,-0.30585 -4.1289,-0.91754 -1.1968,-0.62498 -2.2872,-1.58906 -3.2713,-2.89222 m 4.7473,-14.46113 c -1.5293,2e-5 -2.7061,0.56517 -3.5305,1.69545 -0.8112,1.11701 -1.2168,2.73266 -1.2168,4.84697 0,2.11432 0.4056,3.73662 1.2168,4.86691 0.8244,1.117 2.0012,1.6755 3.5305,1.6755 1.5292,0 2.6927,-0.5585 3.4906,-1.6755 0.8111,-1.11699 1.2167,-2.73929 1.2167,-4.86691 0,-2.1276 -0.4056,-3.74991 -1.2167,-4.86692 -0.7979,-1.11698 -1.9614,-1.67548 -3.4906,-1.6755"+ style="font-weight:bold;letter-spacing:-4.88605261000000013px;fill:#224f93;-inkscape-font-specification:Sans Bold;stroke:none;stroke-opacity:1"+ id="path4870" />+ <path+ d="m 2521.6872,642.94436 0,13.60343 -7.1807,0 0,-2.21405 0,-8.15807 c 0,-1.95473 -0.047,-3.29778 -0.1396,-4.02916 -0.08,-0.73136 -0.2261,-1.26991 -0.4388,-1.61566 -0.2793,-0.4654 -0.6583,-0.82443 -1.137,-1.07711 -0.4787,-0.26593 -1.0239,-0.39891 -1.6356,-0.39892 -1.4893,1e-5 -2.6595,0.57846 -3.5106,1.73533 -0.851,1.14361 -1.2765,2.73267 -1.2765,4.76719 l 0,10.99045 -7.1408,0 0,-31.03656 7.1408,0 0,11.96782 c 1.0771,-1.30314 2.2207,-2.26056 3.4308,-2.87227 1.21,-0.62497 2.5464,-0.93746 4.0092,-0.93748 2.5797,2e-5 4.5344,0.79122 5.8642,2.37361 1.343,1.58244 2.0146,3.88292 2.0146,6.90145"+ style="font-weight:bold;letter-spacing:-4.88605261000000013px;fill:#224f93;-inkscape-font-specification:Sans Bold;stroke:none;stroke-opacity:1"+ id="path4872" />+ <path+ d="m 2533.4763,646.49482 c -1.4893,10e-6 -2.613,0.25266 -3.3709,0.75796 -0.7447,0.50532 -1.117,1.24998 -1.117,2.23399 0,0.90424 0.2992,1.61566 0.8976,2.13427 0.6116,0.50531 1.456,0.75796 2.5332,0.75796 1.343,0 2.4733,-0.47871 3.3908,-1.43614 0.9176,-0.97072 1.3763,-2.1808 1.3763,-3.63024 l 0,-0.8178 -3.71,0 m 10.9107,-2.69276 0,12.74573 -7.2007,0 0,-3.3111 c -0.9574,1.35636 -2.0345,2.34703 -3.2313,2.97201 -1.1968,0.61169 -2.6529,0.91753 -4.3682,0.91754 -2.3138,-1e-5 -4.1954,-0.67153 -5.6449,-2.01459 -1.4361,-1.35635 -2.1542,-3.11163 -2.1542,-5.26584 0,-2.61962 0.8976,-4.54112 2.6928,-5.76451 1.8085,-1.22336 4.6408,-1.83505 8.4972,-1.83506 l 4.2086,0 0,-0.5585 c 0,-1.13028 -0.4454,-1.95473 -1.3364,-2.47335 -0.8909,-0.53189 -2.2805,-0.79784 -4.1688,-0.79786 -1.5292,2e-5 -2.952,0.15294 -4.2685,0.45877 -1.3165,0.30586 -2.5398,0.76463 -3.6701,1.3763 l 0,-5.44536 c 1.5292,-0.37231 3.0651,-0.65156 4.6076,-0.83775 1.5425,-0.19944 3.085,-0.29917 4.6276,-0.29919 4.0291,2e-5 6.9346,0.79787 8.7165,2.39356 1.7952,1.58243 2.6928,4.16216 2.6928,7.7392"+ style="font-weight:bold;letter-spacing:-4.88605261000000013px;fill:#224f93;-inkscape-font-specification:Sans Bold;stroke:none;stroke-opacity:1"+ id="path4874" />+ </g>+ <g+ transform="matrix(0.12062202,0,0,0.12062202,1758.9343,548.30421)"+ id="g4487">+ <path+ d="m -308.648,532.35218 c 0,-347.5 281.699,-629.198997 629.199,-629.198997 347.5,0 629.2,281.698997 629.2,629.198997 0,347.5 -281.699,629.21902 -629.2,629.21902 -347.5,0 -629.199,-281.71902 -629.199,-629.21902"+ id="path4489"+ style="fill:#224f93;fill-opacity:1" />+ <path+ d="m 319.321,-40.508817 c 0,-3.32 2.676,-5.996 5.996,-5.996 3.32,0 5.996,2.676 5.996,5.996 0,3.32 -2.676,5.996 -5.996,5.996 -3.32,0 -5.996,-2.676 -5.996,-5.996"+ id="path4491"+ style="fill:#ffffff" />+ <path+ d="m 352.612,37.606183 c 0,-3.311 2.705,-6.016 6.025,-6.016 3.32,0 5.996,2.705 5.996,6.016 0,3.32 -2.676,6.006 -5.996,6.006 -3.32,0 -6.025,-2.686 -6.025,-6.006"+ id="path4493"+ style="fill:#ffffff" />+ <path+ d="m 280.512,29.413183 c 0,-3.32 2.705,-6.006 6.025,-6.006 3.301,0 5.996,2.686 5.996,6.006 0,3.32 -2.695,6.016 -5.996,6.016 -3.32,-0.001 -6.025,-2.696 -6.025,-6.016"+ id="path4495"+ style="fill:#ffffff" />+ <path+ d="m 298.559,82.948183 c 0,-3.32 2.676,-5.996 5.996,-5.996 3.32,0 5.996,2.676 5.996,5.996 0,3.32 -2.676,6.006 -5.996,6.006 -3.32,0 -5.996,-2.686 -5.996,-6.006"+ id="path4497"+ style="fill:#ffffff" />+ <path+ d="m 353.178,110.25318 c 0,-3.301 2.676,-6.006 5.996,-6.006 3.32,0 6.025,2.705 6.025,6.006 0,3.34 -2.705,6.016 -6.025,6.016 -3.32,0 -5.996,-2.677 -5.996,-6.016"+ id="path4499"+ style="fill:#ffffff" />+ <path+ d="m 445.473,166.53218 c 0,-3.32 2.705,-6.025 6.025,-6.025 3.32,0 6.016,2.705 6.016,6.025 0,3.32 -2.695,5.996 -6.016,5.996 -3.321,0 -6.025,-2.676 -6.025,-5.996"+ id="path4501"+ style="fill:#ffffff" />+ <path+ d="m 197.895,79.335183 c 0,-2.9 2.363,-5.264 5.264,-5.264 2.901,0 5.254,2.363 5.254,5.264 0,2.901 -2.354,5.254 -5.254,5.254 -2.9,0 -5.264,-2.354 -5.264,-5.254"+ id="path4503"+ style="fill:#ffffff" />+ <path+ d="m 213.217,91.346183 c 0,-2.871 2.354,-5.234 5.264,-5.234 2.871,0 5.234,2.363 5.234,5.234 0,2.9 -2.363,5.264 -5.234,5.264 -2.91,0 -5.264,-2.363 -5.264,-5.264"+ id="path4505"+ style="fill:#ffffff" />+ <path+ d="m 228.295,103.55318 c 0,-2.822 2.275,-5.097997 5.078,-5.097997 2.803,0 5.088,2.274997 5.088,5.097997 0,2.793 -2.285,5.078 -5.088,5.078 -2.803,0 -5.078,-2.285 -5.078,-5.078"+ id="path4507"+ style="fill:#ffffff" />+ <path+ d="m 202.25,117.83118 c 0,-2.764 2.246,-5 4.98,-5 2.764,0 5,2.236 5,5 0,2.764 -2.236,5 -5,5 -2.734,0 -4.98,-2.237 -4.98,-5"+ id="path4509"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4511"+ points="817.061,120.254 833.857,116.338 837.754,99.541 841.68,116.338 858.477,120.254 841.68,123.76 837.754,140.977 834.258,123.359 817.061,120.254 "+ style="fill:#ffffff" />+ <path+ d="m 442.895,23.407183 c 0,-4.434 3.604,-8.057 8.037,-8.057 4.443,0 8.066,3.623 8.066,8.057 0,4.443 -3.623,8.047 -8.066,8.047 -4.434,0 -8.037,-3.604 -8.037,-8.047"+ id="path4513"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4515"+ points="526.66,309.756 543.457,305.84 547.373,289.033 551.299,305.84 568.096,309.756 551.299,313.281 547.373,330.479 543.877,312.861 526.66,309.756 "+ style="fill:#ffffff" />+ <path+ d="m 152.514,212.90918 c 0,-4.434 3.604,-8.037 8.037,-8.037 4.463,0 8.066,3.604 8.066,8.037 0,4.463 -3.604,8.066 -8.066,8.066 -4.434,0 -8.037,-3.603 -8.037,-8.066"+ id="path4517"+ style="fill:#ffffff" />+ <path+ d="m 86.694,202.06918 c 0,-2.92 2.363,-5.254 5.264,-5.254 2.901,0 5.254,2.334 5.254,5.254 0,2.9 -2.354,5.244 -5.254,5.244 -2.9,0 -5.264,-2.344 -5.264,-5.244"+ id="path4519"+ style="fill:#ffffff" />+ <path+ d="m 107.973,235.48718 c 0,-2.9 2.363,-5.234 5.264,-5.234 2.901,0 5.264,2.334 5.264,5.234 0,2.9 -2.363,5.264 -5.264,5.264 -2.901,0 -5.264,-2.364 -5.264,-5.264"+ id="path4521"+ style="fill:#ffffff" />+ <path+ d="m -143.648,821.19018 c 0,-3.32 2.705,-6.016 6.006,-6.016 3.32,0 6.016,2.695 6.016,6.016 0,3.321 -2.695,6.006 -6.016,6.006 -3.301,0 -6.006,-2.686 -6.006,-6.006"+ id="path4523"+ style="fill:#ffffff" />+ <path+ d="m 91.498,665.97518 c 0,-3.32 2.676,-6.025 5.996,-6.025 3.32,0 6.025,2.705 6.025,6.025 0,3.32 -2.705,5.996 -6.025,5.996 -3.32,0 -5.996,-2.675 -5.996,-5.996"+ id="path4525"+ style="fill:#ffffff" />+ <path+ d="m -66.363,806.66918 c 0,-3.32 2.676,-6.016 5.996,-6.016 3.32,0 6.025,2.695 6.025,6.016 0,3.301 -2.705,6.006 -6.025,6.006 -3.32,0 -5.996,-2.706 -5.996,-6.006"+ id="path4527"+ style="fill:#ffffff" />+ <path+ d="m -86.842,850.90718 c 0,-3.32 2.695,-5.996 5.996,-5.996 3.34,0 6.025,2.676 6.025,5.996 0,3.32 -2.686,6.025 -6.025,6.025 -3.3,0 -5.996,-2.705 -5.996,-6.025"+ id="path4529"+ style="fill:#ffffff" />+ <path+ d="m -54.488,874.69618 c 0,-3.32 2.705,-6.006 6.025,-6.006 3.32,0 5.996,2.686 5.996,6.006 0,3.311 -2.676,5.996 -5.996,5.996 -3.32,0 -6.025,-2.685 -6.025,-5.996"+ id="path4531"+ style="fill:#ffffff" />+ <path+ d="m 21.537,848.30918 c 0,-2.939 2.373,-5.322 5.322,-5.322 2.939,0 5.313,2.383 5.313,5.322 0,2.92 -2.373,5.303 -5.313,5.303 -2.949,0 -5.322,-2.383 -5.322,-5.303"+ id="path4533"+ style="fill:#ffffff" />+ <path+ d="m 92.153,783.55318 c 0,-3.32 2.686,-6.025 6.006,-6.025 3.32,0 6.016,2.705 6.016,6.025 0,3.301 -2.695,5.996 -6.016,5.996 -3.321,0 -6.006,-2.695 -6.006,-5.996"+ id="path4535"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4537"+ points="469.434,1100.117 486.24,1096.201 490.156,1079.395 494.072,1096.201 510.879,1100.117 494.072,1103.613 490.156,1120.84 486.66,1103.223 469.434,1100.117 "+ style="fill:#ffffff" />+ <path+ d="m 95.297,1003.2702 c 0,-4.44302 3.594,-8.03702 8.037,-8.03702 4.463,0 8.057,3.594 8.057,8.03702 0,4.443 -3.594,8.057 -8.057,8.057 -4.443,0 -8.037,-3.613 -8.037,-8.057"+ id="path4539"+ style="fill:#ffffff" />+ <path+ d="m 69.672,915.25318 c 0,-2.9 2.344,-5.264 5.264,-5.264 2.9,0 5.244,2.363 5.244,5.264 0,2.901 -2.344,5.234 -5.244,5.234 -2.92,0 -5.264,-2.334 -5.264,-5.234"+ id="path4541"+ style="fill:#ffffff" />+ <path+ d="m 143.158,940.57518 c 0,-2.92 2.354,-5.264 5.254,-5.264 2.9,0 5.264,2.344 5.264,5.264 0,2.9 -2.363,5.234 -5.264,5.234 -2.901,0 -5.254,-2.334 -5.254,-5.234"+ id="path4543"+ style="fill:#ffffff" />+ <path+ d="m 130.912,884.20818 c 0,-2.9 2.344,-5.254 5.264,-5.254 2.9,0 5.264,2.354 5.264,5.254 0,2.9 -2.363,5.264 -5.264,5.264 -2.92,-10e-4 -5.264,-2.364 -5.264,-5.264"+ id="path4545"+ style="fill:#ffffff" />+ <path+ d="m 282.797,920.15518 c 0,-2.9 2.363,-5.264 5.254,-5.264 2.91,0 5.264,2.363 5.264,5.264 0,2.901 -2.354,5.234 -5.264,5.234 -2.891,0 -5.254,-2.334 -5.254,-5.234"+ id="path4547"+ style="fill:#ffffff" />+ <path+ d="m 405.278,873.59218 c 0,-2.9 2.363,-5.264 5.273,-5.264 2.91,0 5.244,2.363 5.244,5.264 0,2.901 -2.334,5.254 -5.244,5.254 -2.91,0 -5.273,-2.353 -5.273,-5.254"+ id="path4549"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4551"+ points="1163.174,839.297 1179.981,835.381 1183.897,818.574 1187.823,835.381 1204.62,839.297 1187.823,842.822 1183.897,860.02 1180.401,842.402 1163.174,839.297 "+ style="fill:#ffffff" />+ <path+ d="m 789.038,742.45018 c 0,-4.443 3.604,-8.037 8.037,-8.037 4.463,0 8.066,3.594 8.066,8.037 0,4.443 -3.604,8.057 -8.066,8.057 -4.434,0 -8.037,-3.614 -8.037,-8.057"+ id="path4553"+ style="fill:#ffffff" />+ <path+ d="m 639.077,783.09418 c 0,-2.9 2.363,-5.264 5.264,-5.264 2.891,0 5.254,2.363 5.254,5.264 0,2.901 -2.363,5.254 -5.254,5.254 -2.901,0 -5.264,-2.353 -5.264,-5.254"+ id="path4555"+ style="fill:#ffffff" />+ <path+ d="m 589.302,847.45018 c 0,-2.9 2.354,-5.254 5.254,-5.254 2.9,0 5.264,2.354 5.264,5.254 0,2.9 -2.363,5.264 -5.264,5.264 -2.901,0 -5.254,-2.364 -5.254,-5.264"+ id="path4557"+ style="fill:#ffffff" />+ <path+ d="m 588.462,771.93218 c 0,-2.9 2.334,-5.264 5.234,-5.264 2.92,0 5.264,2.363 5.264,5.264 0,2.901 -2.344,5.254 -5.264,5.254 -2.9,0 -5.234,-2.353 -5.234,-5.254"+ id="path4559"+ style="fill:#ffffff" />+ <path+ d="m 613.335,983.03618 c 0,-2.9 2.363,-5.244 5.264,-5.244 2.901,0 5.254,2.344 5.254,5.244 0,2.91 -2.354,5.273 -5.254,5.273 -2.9,0 -5.264,-2.363 -5.264,-5.273"+ id="path4561"+ style="fill:#ffffff" />+ <path+ d="m 788.735,898.47518 c 0,-2.9 2.363,-5.264 5.283,-5.264 2.9,0 5.234,2.363 5.234,5.264 0,2.901 -2.334,5.254 -5.234,5.254 -2.92,0 -5.283,-2.353 -5.283,-5.254"+ id="path4563"+ style="fill:#ffffff" />+ <path+ d="m 634.78,741.03418 c 0,-2.9 2.354,-5.264 5.254,-5.264 2.92,0 5.264,2.363 5.264,5.264 0,2.901 -2.344,5.254 -5.264,5.254 -2.9,0 -5.254,-2.354 -5.254,-5.254"+ id="path4565"+ style="fill:#ffffff" />+ <path+ d="m 772.954,868.05518 c 0,-2.9 2.344,-5.264 5.244,-5.264 2.9,0 5.264,2.363 5.264,5.264 0,2.891 -2.363,5.254 -5.264,5.254 -2.901,0 -5.244,-2.363 -5.244,-5.254"+ id="path4567"+ style="fill:#ffffff" />+ <path+ d="m 725.757,837.14718 c 0,-2.9 2.344,-5.254 5.244,-5.254 2.891,0 5.254,2.354 5.254,5.254 0,2.9 -2.363,5.264 -5.254,5.264 -2.901,0 -5.244,-2.363 -5.244,-5.264"+ id="path4569"+ style="fill:#ffffff" />+ <path+ d="m 783.237,785.67318 c 0,-2.9 2.363,-5.264 5.264,-5.264 2.891,0 5.254,2.363 5.254,5.264 0,2.901 -2.363,5.234 -5.254,5.234 -2.901,0 -5.264,-2.334 -5.264,-5.234"+ id="path4571"+ style="fill:#ffffff" />+ <path+ d="m 817.573,771.93218 c 0,-2.9 2.363,-5.264 5.264,-5.264 2.901,0 5.234,2.363 5.234,5.264 0,2.901 -2.334,5.254 -5.234,5.254 -2.9,0 -5.264,-2.353 -5.264,-5.254"+ id="path4573"+ style="fill:#ffffff" />+ <path+ d="m 729.175,736.74718 c 0,-2.9 2.363,-5.254 5.264,-5.254 2.901,0 5.254,2.354 5.254,5.254 0,2.9 -2.354,5.264 -5.254,5.264 -2.9,0 -5.264,-2.364 -5.264,-5.264"+ id="path4575"+ style="fill:#ffffff" />+ <path+ d="m 706.88,698.99318 c 0,-2.92 2.334,-5.264 5.254,-5.264 2.9,0 5.264,2.344 5.264,5.264 0,2.9 -2.363,5.254 -5.264,5.254 -2.92,0 -5.254,-2.354 -5.254,-5.254"+ id="path4577"+ style="fill:#ffffff" />+ <path+ d="m 125.737,535.73118 21.982,31.738 c 0,0 31.24,43.037 51.934,69.98 20.283,26.377 53.086,66.777 53.086,66.777 l 12.48,14.824 c 0,0 33.193,19.863 50.215,34.375 19.346,16.504 32.363,31.865 24.297,44.404 -6.572,10.244 -26.416,4.238 -41.973,-8.018 -23.721,-18.701 -47.461,-61.143 -47.461,-61.143 l -12.227,-17.1 c 0,0 -30.791,-39.6 -50.215,-65.156 -19.639,-25.879 -49.902,-66.729 -49.902,-66.729 l -19.541,-31.758 7.325,-12.194"+ id="path4579"+ style="fill:#ffffff" />+ <path+ d="m 1136.821,-38.184817 c 0,0 -26.201,50.654 -117.227,126.992 -78.037,66.122997 -216.279,152.040997 -344.355,210.019997 -302.666,137.002 -647.022,222.627 -813.262,295.508 -138.682,60.82 -248.799,124.853 -248.799,124.853 l 19.834,8.262"+ id="path4581"+ style="fill:#e32630" />+ <path+ d="m -366.988,727.45018 c 0,0 27.1,-21.963 95.645,-51.299 57.637,-24.277 163.018,-64.463 298.643,-99.238 106.934,-22.764 207.5,-54.98 309.951,-79.824 207.725,-50.361 421.709,-137.734 553.106,-239.414 176.318,-152.207 246.465,-295.858997 246.465,-295.858997"+ id="path4583"+ style="fill:#e32630" />+ <path+ d="m 396.557,491.74718 c 0,-41.514 25,-73.691 89.98,-77.539 33.496,-1.953 47.734,3.145 62.198,9.023 l 23.926,-16.943 2.432,70.82 c 0,0 -34.414,-20.479 -72.657,-22.695 -31.123,-1.826 -35.361,13.76 -35.361,13.76 -7.422,18.555 54.238,28.779 96.124,52.695 36.377,20.801 34.141,56.807 34.141,56.807 4.072,65.693 -77.198,80.918 -115.04,77.715 -29.639,-0.996 -53.721,-9.775 -53.721,-9.775 l -26.885,19.541 -0.361,-72.148 c 11.104,9.043 29.941,19.541 52.705,26.104 30.82,8.877 62.021,4.219 69.082,-15.078 7.041,-23.018 -48.623,-30.059 -68.027,-41.699 -33.321,-12.864 -58.536,-37.444 -58.536,-70.588"+ id="path4585"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4587"+ points="549.199,539.775 524.775,515.342 637.119,515.342 720.156,720.479 747.021,747.354 600.479,747.354 627.334,720.479 617.578,693.613 534.541,693.613 527.217,722.939 546.758,747.354 471.035,747.354 497.9,720.479 527.217,617.92 558.955,617.92 546.758,659.434 602.92,659.434 568.74,576.396 558.955,617.92 527.217,617.92 "+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4589"+ points="1076.719,539.775 1052.295,515.342 1164.639,515.342 1247.657,720.479 1274.522,747.354 1127.999,747.354 1154.854,720.479 1145.079,693.613 1062.061,693.613 1054.737,722.939 1074.258,747.354 998.555,747.354 1025.42,720.479 1054.737,617.92 1086.475,617.92 1074.258,659.434 1130.44,659.434 1096.241,576.396 1086.475,617.92 1054.737,617.92 "+ style="fill:#ffffff" />+ <path+ d="m 1136.821,-35.752817 c 0,0 -156.445,208.925997 -187.07,235.888997"+ id="path4591"+ style="fill:#e32630" />+ <path+ d="m 949.751,200.13518 c -158.252,139.238 -510.293,375.752 -566.094,410.176 -127.744,78.799 -317.656,212.52 -403.965,289.639 -76.992,68.818 -189.551,173.74002 -189.551,173.74002 l -1.426,21.299 c 0,0 110.195,-115.15602 302.08,-250.11702 95.459,-66.104 268.701,-184.541 385.664,-256.836 121.817,-75.283 252.061,-175.146 339.659,-243.145 104.58,-81.182 168.975,-152.041 196.738,-183.74 66.816,-76.337997 123.965,-196.903997 123.965,-196.903997"+ id="path4593"+ style="fill:#e32630" />+ <path+ d="m 95.815,510.69218 c -61.777,-103.896 -138.154,-306.182 -48.223,-375.479 54.229,-41.806997 198.906,-47.538997 442.061,251.582 251.163,308.936 172.266,472.314 146.504,490.84 -56.445,40.615 -146.524,0 -146.524,0 l -24.434,-9.766 21.992,4.883 c 0,0 90.586,36.777 141.641,-4.883 47.52,-38.76 58.604,-217.363 -151.417,-473.799 -130.879,-159.805 -310.02,-311.776997 -415.186,-251.543 -105.234,60.303 5.146,299.824 46.709,363.584 l -13.123,4.581"+ id="path4595"+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4597"+ points="944.815,600.82 959.483,625.234 966.817,620.361 952.159,593.496 944.815,600.82 "+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4599"+ points="373.359,659.434 373.359,539.775 348.936,515.342 427.08,515.342 405.098,539.775 405.098,720.479 431.982,747.354 329.395,747.354 241.475,598.379 241.475,720.479 263.457,747.354 180.42,747.354 207.275,720.479 207.275,539.775 185.303,515.342 287.881,515.342 373.359,659.434 "+ style="fill:#ffffff" />+ <polyline+ transform="translate(-386.822,-96.846817)"+ id="polyline4601"+ points="1112.92,965.615 1129.795,961.68 1133.741,944.795 1137.676,961.68 1154.561,965.615 1137.676,969.141 1133.741,986.436 1130.215,968.74 1112.92,965.615 "+ style="fill:#ffffff" />+ <path+ d="m 738.833,868.76818 c 0,-4.453 3.623,-8.076 8.086,-8.076 4.453,0 8.076,3.623 8.076,8.076 0,4.463 -3.623,8.086 -8.076,8.086 -4.463,0 -8.086,-3.623 -8.086,-8.086"+ id="path4603"+ style="fill:#ffffff" />+ </g>+ </g>+ </g>+</svg>diff --git a/src/index.html b/src/index.htmlindex 6453b2811..e313cdb6f 100644--- a/src/index.html+++ b/src/index.html@@ -210,32 +210,71 @@<div id="eventsHolder"></div><div id="imagedownload"></div><div id="dlMap"></div>-- <section id="timeline">- <header>- <input type="text" value="2014" maxlength="4" class="button-input-group" id="year-input-group" />- <input type="text" value="Mar" maxlength="3" class="button-input-group" id="month-input-group" />- <input type="text" value="03" maxlength="2" class="button-input-group" id="day-input-group" />- <div class="button-action-group" id="left-arrow-group">- <svg>- <path- d="M 13.759236,15 0,30 13.759236,45 24,45 10.240764,30 24,15 13.759236,15 z"- class="arrow" />- </svg>- </div>- <div class="button-action-group" id="right-arrow-group">- <svg>- <path- d="M 10.240764,15 24,30 10.240764,45 0,45 13.759236,30 0,15 10.240764,15 z"- class="arrow" />- </svg>- </div>- </header>- <footer>-- </footer>- </section>-+ <div id="timeline-text">Test</div>++ <section id="timeline">+ <header>+ <input type="text" value="2014" maxlength="4" class="button-input-group" id="year-input-group" />+ <input type="text" value="Mar" maxlength="3" class="button-input-group" id="month-input-group" />+ <input type="text" value="03" maxlength="2" class="button-input-group" id="day-input-group" />+ <div class="button-action-group" id="left-arrow-group">+ <svg>+ <path+ d="M 13.759236,15 0,30 13.759236,45 24,45 10.240764,30 24,15 13.759236,15 z"+ class="arrow" />+ </svg>+ </div>+ <div class="button-action-group" id="right-arrow-group">+ <svg>+ <path+ d="M 10.240764,15 24,30 10.240764,45 0,45 13.759236,30 0,15 10.240764,15 z"+ class="arrow" />+ </svg>+ </div>+ </header>+ <footer>++ </footer>+ </section>+ <svg id="now-line">+ <rect+ width="3"+ height="50"+ x="7.1827502"+ y="15"+ class="arrow-inner"+ />+ <path+ d="m 4.01075,0.2462 c -2.08,0 -3.75,1.701 -3.75,3.781 l 0,4.813 4.218,4.156 4.188,4.1564 4.219,-4.1564 4.219,-4.156 0,-4.813 c 0,-2.08 -1.67,-3.781 -3.75,-3.781 l -9.344,0 z"+ class="arrow-outer" />+ <path+ d="m 4.63075,1.3682 c -1.804,0 -3.252,1.475 -3.252,3.279 l 0,3.577 3.658,3.604 3.632,3.6044 3.659,-3.6044 3.659,-3.604 0,-3.577 c 0,-1.804 -1.448,-3.279 -3.252,-3.279 z"+ class="arrow-inner" />+ <path+ d="m 4.51875,3.9961 0,2.594 1,0 0,-2.594 -1,0 z"+ class="arrow-inner-line" />+ <path+ d="m 8.18375,3.9961 0,2.594 1,0 0,-2.594 -1,0 z"+ class="arrow-inner-line" />+ <path+ d="m 11.84775,3.9961 0,2.594 1,0 0,-2.594 -1,0 z"+ class="arrow-inner-line" />+ <path+ d="m 4.01075,78.1567 c -2.08,0 -3.75,-1.701 -3.75,-3.781 l 0,-4.813 4.218,-4.156 4.188,-4.156 4.219,4.156 4.219,4.156 0,4.813 c 0,2.08 -1.67,3.781 -3.75,3.781 l -9.344,0 z"+ class="arrow-outer" />+ <path+ d="m 4.63075,77.0347 c -1.804,0 -3.252,-1.475 -3.252,-3.279 l 0,-3.577 3.658,-3.604 3.632,-3.604 3.659,3.604 3.659,3.604 0,3.577 c 0,1.804 -1.448,3.279 -3.252,3.279 z"+ class="arrow-inner" />+ <path+ d="m 4.51875,74.407 0,-2.594 1,0 0,2.594 -1,0 z"+ class="arrow-inner-line" />+ <path+ d="m 8.18375,74.407 0,-2.594 1,0 0,2.594 -1,0 z"+ class="arrow-inner-line" />+ <path+ d="m 11.84775,74.407 0,-2.594 1,0 0,2.594 -1,0 z"+ class="arrow-inner-line" />+ </svg></div></div><ol id="joyRideTipContent">diff --git a/src/js/date/wv.date.timeline.js b/src/js/date/wv.date.timeline.jsindex 8b28e36e4..f692af6d2 100644--- a/src/js/date/wv.date.timeline.js+++ b/src/js/date/wv.date.timeline.js@@ -71,10 +71,10 @@ Element.prototype.toggleClass = function (className) {//Current date linevar data2 = [{- "date": Date.now(),+ "date": todayDateMs,"value": "0"}, {- "date": Date.now(),+ "date": todayDateMs,"value": "6"}];@@ -120,7 +120,6 @@ Element.prototype.toggleClass = function (className) {});var zoomed = function(){- console.log("HERERERERERER###################");var t = zoom.translate(),s = zoom.scale();@@ -145,7 +144,14 @@ Element.prototype.toggleClass = function (className) {svg.select(".line2").attr("class", "line2").attr("d", line);++ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");+d3.selectAll('.x.axis .tick text').attr('x',5).attr('style','text-anchor:left;');+};var zoom = d3.behavior.zoom()@@ -179,16 +185,6 @@ Element.prototype.toggleClass = function (className) {var init = function() {----------svg = d3.select('#timeline footer').append("svg:svg").attr('width', width + margin.left + margin.right)@@ -238,6 +234,10 @@ Element.prototype.toggleClass = function (className) {.datum(data2).attr("class", "line2").attr("d", line);+ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");d3.selectAll('.x.axis .tick text').attr('x',5).attr('style','text-anchor:left;');@@ -261,10 +261,14 @@ Element.prototype.toggleClass = function (className) {// Add mouseover events.- d3.select('#timeline footer').on("mouseover", function() {- //console.log('mouseover')++ d3.select("#timeline footer").on("mouseenter", function() {+ //console.log(d3.event.pageX);+ $("#timeline-text").show();+ hoverLineGroup.style("opacity", 1);}).on("mousemove", function() {//console.log('mousemove', d3.mouse(this));+var mouse_x = d3.mouse(this)[0];var mouse_y = d3.mouse(this)[1];var graph_y = y.invert(mouse_y);@@ -273,14 +277,22 @@ Element.prototype.toggleClass = function (className) {var format = d3.time.format('%e %b');//format.parse(graph_x)var stringDate = String(graph_x).split(' ');- hoverDate.text(stringDate[3] + " " + stringDate[1] + " " + stringDate[2]);- hoverDate.attr('x', mouse_x + 5);+ $("#timeline-text").text(stringDate[3] + " " + stringDate[1] + " " + stringDate[2]);hoverLine.attr("x1", mouse_x).attr("x2", mouse_x);- hoverLineGroup.style("opacity", 1);-+ if ((mouse_x > (x(data2[0].date)- 3)) && (mouse_x < (x(data2[0].date) + 6))){+ hoverLineGroup.style("opacity", 1e-6);+ $("#timeline-text").hide();+ $(".line2").css("stroke","#fff");+ }else {+ $("#timeline-text").show();+ hoverLineGroup.style("opacity", 1);+ $(".line2").css("stroke","transparent");+ }+ $("#timeline-text").css({"left": d3.event.pageX});}).on("mouseleave", function() {//console.log('mouseout');hoverLineGroup.style("opacity", 1e-6);+ $("#timeline-text").hide();}).on("click", function(){var mouse_x = d3.mouse(this)[0];@@ -288,12 +300,63 @@ Element.prototype.toggleClass = function (className) {data2[1].date = Date.parse(x.invert(mouse_x));svg.select(".line2").attr("d", line);+ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");currentDate = new Date(data2[0].date);console.log("#################### Current date: " + currentDate);updateTime();++});--+ $("svg#now-line").mousedown(function(e){+ console.log("mousedown");+ e.preventDefault();+ d3.select("#timeline footer").on("mousemove", function(){+ var mouse_x = d3.mouse(this)[0];+ data2[0].date = Date.parse(x.invert(mouse_x));+ data2[1].date = Date.parse(x.invert(mouse_x));+ svg.select(".line2")+ .attr("d", line);+ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");+ currentDate = new Date(data2[0].date);+ console.log("#################### Current date: " + currentDate);+ updateTime();+ });+ }).mouseup(function(){+ console.log("mouseup!!!");+ d3.select("#timeline footer").on("mousemove", null);+ d3.select("#timeline footer").on("mousemove", function() {+ //console.log('mousemove', d3.mouse(this));++ var mouse_x = d3.mouse(this)[0];+ var mouse_y = d3.mouse(this)[1];+ var graph_y = y.invert(mouse_y);+ var graph_x = x.invert(mouse_x);+ //console.log("########### " + x.invert(mouse_x) + "######## " + x(graph_x));+ var format = d3.time.format('%e %b');+ //format.parse(graph_x)+ var stringDate = String(graph_x).split(' ');+ $("#timeline-text").text(stringDate[3] + " " + stringDate[1] + " " + stringDate[2]);+ hoverLine.attr("x1", mouse_x).attr("x2", mouse_x);+ if ((mouse_x > (x(data2[0].date)- 3)) && (mouse_x < (x(data2[0].date) + 6))){+ hoverLineGroup.style("opacity", 1e-6);+ $("#timeline-text").hide();+ $(".line2").css("stroke","#fff");+ }else {+ $("#timeline-text").show();+ hoverLineGroup.style("opacity", 1);+ $(".line2").css("stroke","transparent");+ }+ $("#timeline-text").css({"left": d3.event.pageX});+ });++ });+//bind click action to interval radio buttonsvar buttons = document.getElementsByClassName('button-input-group');@@ -379,6 +442,12 @@ Element.prototype.toggleClass = function (className) {var newTimeBar = x(new Date(data2[0].date));//update timeline linesvg.select(".line2").attr("d", line);++ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");+currentDate = new Date(data2[0].date);updateTime();@@ -414,6 +483,12 @@ Element.prototype.toggleClass = function (className) {var newTimeBar = x(new Date(data2[0].date));//update timeline linesvg.select(".line2").attr("d", line);++ var makeFill = d3.select('.line2').attr("d");+ d3.select(".line2").attr("d", makeFill + "l3,0l0,60z");+ var makeFillPos = $(".line2").offset();+ $("svg#now-line").css("left", (makeFillPos.left-3) + "px");+currentDate = new Date(data2[0].date);updateTime();}//ifdiff --git a/src/pages/brand/about.html b/src/pages/brand/about.htmlnew file mode 100644index 000000000..7a3096da3--- /dev/null+++ b/src/pages/brand/about.html@@ -0,0 +1,168 @@+<!doctype html>+<html>+ <head>+ <title>@OFFICIAL_NAME@ - About</title>+ <link type="text/css" href="../css/wv.document.css?v=@BUILD_NONCE@" rel="Stylesheet" />+ <link type="text/css" href="../css/wv.standalone.css?v=@BUILD_NONCE@" rel="Stylesheet" />+ <meta name="viewport" content="width=device-width, initial-scale=1">+ </head>++ <body>+ <div id="page" class="wv-document">+ <div class="right">+ <div class="caption">+ Version @BUILD_VERSION@+ </div>+ </div>+ <h1>Welcome to @NAME@</h1>+ <p>+ This tool from NASA's+ <a href='https://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a>+ provides the capability to interactively browse global,+ full-resolution satellite imagery and then download the underlying+ data. Most of the 100+ available products are updated within three+ hours of observation, essentially showing the entire Earth as it+ looks "right now". This supports time-critical application areas+ such as wildfire management, air quality measurements, and flood+ monitoring. Arctic and Antarctic views of several products are+ also available for a "full globe" perspective. Browsing on tablet+ and smartphone devices is generally supported for mobile access to+ the imagery.+ </p>+ <div class="right">+ <a href='https://earthdata.nasa.gov/gibs' target='_blank' class="gibs-logo"> </a>+ <div class="caption gibs-caption">+ Powered by GIBS+ </div>+ </div>+ <p>+ @NAME@ uses the+ <a href='https://earthdata.nasa.gov/gibs' target='_blank'>Global Imagery Browse Services (GIBS)</a>+ to rapidly retrieve its imagery for an interactive browsing experience.+ While @NAME@ uses+ <a href='http://openlayers.org/' target='_blank'>OpenLayers</a> as+ its mapping library, GIBS imagery can also be accessed from+ Google Earth, NASA World Wind, and several other clients. We+ encourage interested developers to build their own clients or+ integrate NASA imagery into their existing ones using these+ services.+ </p>++ <hr/>++ <h2><a id='imagery-use'>Imagery Use</a></h2>+ <p>+ NASA supports an+ <a href='http://science.nasa.gov/earth-science/earth-science-data/data-information-policy/' target='_blank'>open data policy</a>+ and we encourage publication of imagery from @NAME@; when+ doing so, please cite it as "NASA @NAME@" and also consider+ including a permalink (such as+ <a href='https://earthdata.nasa.gov/labs/worldview/?map=-126.907471,36.373535,-117.415283,42.815918&products=baselayers,MODIS_Aqua_CorrectedReflectance_TrueColor~overlays,MODIS_Fires_All,sedac_bound&time=2012-08-23&switch=geographic' target='_blank'>this one</a>)+ to allow others to explore the imagery.+ </p>++ <hr/>++ <h2><a id='acknowledgements'>Acknowledgements</a></h2>+ <p>+ <ul>+ <li>+ Near-real time data is courtesy of <a href='http://lance.nasa.gov/' target='_blank'>LANCE</a> data providers:+ <ul>+ <li>+ <a href='http://lance.nasa.gov/home/about/amsr-e-sips/' target='_blank'>AMSR-E SIPS</a>+ </li>+ <li>+ <a href='http://lance.nasa.gov/home/about/ges-disc/' target='_blank'>GES DISC</a>+ </li>+ <li>+ <a href='http://lance.nasa.gov/home/about/modaps/' target='_blank'>MODAPS</a>+ </li>+ <li>+ <a href='http://lance.nasa.gov/home/about/omi-sips/' target='_blank'>OMI SIPS</a>+ </li>+ <li>+ <a href='http://earthdata.nasa.gov/data/near-real-time-data/firms' target='_blank'>FIRMS</a>+ </li>+ </ul>+ </li>+ <li>+ Ocean color and temperature data provided by+ <a href='http://oceancolor.gsfc.nasa.gov/' target='_blank'>OBPG</a>+ and <a href='http://podaac.jpl.nasa.gov/' target='_blank'>PO.DAAC</a>+ </li>+ <li>+ Socioeconomic data supplied by+ <a href='http://sedac.ciesin.org/' target='_blank'>SEDAC</a>.+ </li>+ <li>+ Freeze / Thaw products supplied by+ <a href='http://nsidc.org' target='_blank'>NSIDC</a>.+ </li>+ <li>+ Orbit tracks provided by+ <a href='https://www.space-track.org' target='_blank'>space-track.org</a>.+ </li>+ <li>+ Polar coastlines and graticules courtesy of+ <a href='http://www.add.scar.org/' target='_blank'>ADD SCAR</a>, <a href='http://www.openstreetmap.org/' target='_blank'>OpenStreetMap</a>,+ and <a href='http://www.polarview.aq/' target='_blank'>PolarView</a>.+ </li>+ <li>+ User-selectable color palettes are primarily derived from+ <a href='http://neo.sci.gsfc.nasa.gov/' target='_blank'>NEO</a>.+ </li>+ <li>+ The imagery ingest and serving system (GIBS) is built by+ NASA/JPL and operated by NASA/GSFC.+ </li>+ <li>+ @NAME@ is built by the NASA/GSFC Earth Science Data+ Information System+ (<a href='http://earthdata.nasa.gov/esdis' target='_blank'>ESDIS</a>)+ Project and is grateful for the use of many+ <a href='pages/worldview-opensourcelibs.html' target='_blank'>open source projects</a>.+ </li>+ </ul>+ </p>++ <hr/>++ <h2><a id='disclaimer'>Disclaimer</a></h2>+ <p>+ The information presented through this interface is provided+ "as is" and users bear all responsibility and liability for their+ use of the data. Please read the+ <a href='https://earthdata.nasa.gov/data/nrt-data/disclaimer' target='_blank'>full disclaimer</a>.+ </p>++ <hr/>++ <h2><a id='license'>License</a></h2>+ <p>+ Copyright (C) 2013 - 2014 United States Government as represented+ by the Administrator of the National Aeronautics and Space+ Administration. All Rights Reserved.+ </p>+ <p>+ This software is licensed under the+ <a href='pages/license.html'>NASA Open Source Software Agreement, Version 1.3.</a>+ Source code is available on+ <a target='_blank' href="https://github.com/nasa-gibs/worldview.git">github</a>.+ </p>+ <hr/>++ <p>+ <div>+ @BUILD_TIMESTAMP@+ </div>+ <div>+ Release Management: <a href="mailto:[email protected]">Mike McGann</a>+ </div>+ <div>+ Responsible NASA official: <a href="mailto:[email protected]">Ryan Boller</a>+ </div>+ </p>++ </div>+ </body>diff --git a/src/pages/brand/new.html b/src/pages/brand/new.htmlnew file mode 100644index 000000000..499b613ab--- /dev/null+++ b/src/pages/brand/new.html@@ -0,0 +1,25 @@+<!doctype html>+<html>+ <head>+ <title>@OFFICIAL_NAME@ - About</title>+ <link type="text/css" href="../css/wv.document.css?v=@BUILD_NONCE@" rel="Stylesheet" />+ <link type="text/css" href="../css/wv.standalone.css?v=@BUILD_NONCE@" rel="Stylesheet" />+ <meta name="viewport" content="width=device-width, initial-scale=1">+ </head>++ <body>+ <div id="page" class="wv-document">+ <h2>New in 0.7.0</h2>+ <ul>+ <li>Item 1</li>+ <li>Item 2</li>+ </ul>+ <p>+ <a href="https://github.com/nasa-gibs/worldview/RELEASE_NOTES.md">+ Older changes+ </a>+ </p>+ </div>+ </body>++</html>\ No newline at end of file