-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (177 loc) · 13.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<!--
_____ ______ ________ ________ ________ ___ ________
|\ _ \ _ \|\ __ \|\ __ \|\ ____\ |\ \|\ __ \
\ \ \\\__\ \ \ \ \|\ \ \ \|\ \ \ \___|_ \ \ \ \ \|\ \
\ \ \\|__| \ \ \ __ \ \ _ _\ \_____ \ \ \ \ \ \\\ \
\ \ \ \ \ \ \ \ \ \ \ \\ \\|____|\ \ __\ \ \ \ \\\ \
\ \__\ \ \__\ \__\ \__\ \__\\ _\ ____\_\ \|\__\ \__\ \_______\
\|__| \|__|\|__|\|__|\|__|\|__|\_________\|__|\|__|\|_______|
\|_________|
-->
<!-- Handcrafted by Jose Morales-Mendizabal @moralejf / www.jf-mm.com -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Mars.IO - Martian Weather Analytics</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!-- favicon tags-->
<link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="msapplication-TileImage" content="mstile-144x144.png">
<meta name="theme-color" content="#16161a">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<link type="text/css" rel="stylesheet" href="css/bower_components/normalize.css/normalize.css">
<link type="text/css" rel="stylesheet" href="css/styles.css">
<!-- analytics-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60472717-1', 'auto');
ga('send', 'pageview');
</script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!--- TYPEKIT SCRIPT -->
<script src="//use.typekit.net/imz4ftp.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
</head>
<body class="clearfix">
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<section id="nav-wrap">
<h1 class="logo">Mars<span class="mars-planet">•</span>IO</h1>
</section>
<aside id="sidebar-nav">
<nav>
<ul class="sidebar-nav-icons">
<li data-module="temp" class="active"><a href="#">
<svg id="thermometer" class="sidebar-icon" enable-background="new 0 0 96 96" height="96px" version="1.1" viewBox="0 0 96 96" width="96px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Dibujo"><g>
<path id="mercury" class="active-icon" d="M50,58.424V47c0-1.104-0.896-2-2-2c-1.105,0-2,0.896-2,2v11.424c-1.763,0.773-3,2.531-3,4.576c0,2.757,2.243,5,5,5 c2.757,0,5-2.243,5-5C53,60.955,51.763,59.197,50,58.424z M48,64c-0.552,0-1-0.448-1-1s0.448-1,1-1c0.552,0,1,0.448,1,1 S48.552,64,48,64z"/>
<path class="sidebar-icon outer-thermo" d="M56.009,55.459L56,30c0-4.411-3.589-8-8-8c-4.411,0-8,3.589-8,7.999l-0.01,25.46C38.08,57.492,37,60.192,37,63 c0,6.065,4.935,11,11,11c6.065,0,11-4.935,11-11C59,60.191,57.92,57.491,56.009,55.459z M48,70c-3.859,0-7-3.141-7-7 c0-1.984,0.848-3.885,2.327-5.213c0.422-0.38,0.663-0.92,0.663-1.487L44,30c0-2.206,1.794-4,4-4c2.206,0,4,1.794,4,4.001 L52.009,56.3c0,0.567,0.241,1.108,0.664,1.487C54.151,59.115,55,61.015,55,63C55,66.859,51.859,70,48,70z"/>
</g>
</g>
</svg></a> Temp </li>
<li data-module="sol"><a href="#"><svg class="sidebar-icon" enable-background="new 0 0 96 96" height="96px" version="1.1" viewBox="0 0 96 96" width="96px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Dibujo"><path id="sun" class="sidebar-icon" d="M62.142,35.858c0.512,0,1.024-0.195,1.414-0.586l2.829-2.829c0.781-0.781,0.781-2.047,0-2.828 c-0.781-0.781-2.048-0.781-2.828,0l-2.829,2.829c-0.781,0.781-0.781,2.047,0,2.828C61.118,35.663,61.63,35.858,62.142,35.858z M30,48c0-1.104-0.896-2-2-2h-4c-1.104,0-2,0.896-2,2s0.896,2,2,2h4C29.104,50,30,49.104,30,48z M32.444,60.728l-2.829,2.829 c-0.781,0.781-0.781,2.047,0,2.828c0.39,0.391,0.902,0.586,1.414,0.586c0.512,0,1.024-0.195,1.414-0.586l2.829-2.829 c0.781-0.781,0.781-2.047,0-2.828C34.492,59.947,33.224,59.947,32.444,60.728z M32.444,35.272c0.39,0.391,0.902,0.586,1.414,0.586 s1.024-0.195,1.414-0.586c0.781-0.781,0.781-2.047,0-2.828l-2.829-2.829c-0.78-0.781-2.048-0.781-2.828,0 c-0.781,0.781-0.781,2.047,0,2.828L32.444,35.272z M48,30c1.104,0,2-0.896,2-2v-4c0-1.104-0.896-2-2-2s-2,0.896-2,2v4 C46,29.104,46.896,30,48,30z M72,46h-4c-1.104,0-2,0.896-2,2s0.896,2,2,2h4c1.104,0,2-0.896,2-2S73.104,46,72,46z M63.556,60.728 c-0.78-0.781-2.048-0.781-2.828,0c-0.781,0.781-0.781,2.047,0,2.828l2.829,2.829c0.39,0.391,0.902,0.586,1.414,0.586 c0.512,0,1.023-0.195,1.414-0.586c0.781-0.781,0.781-2.047,0-2.828L63.556,60.728z M48,66c-1.104,0-2,0.896-2,2v4 c0,1.104,0.896,2,2,2s2-0.896,2-2v-4C50,66.896,49.104,66,48,66z M48,34c-7.72,0-14,6.28-14,14s6.28,14,14,14s14-6.28,14-14 S55.72,34,48,34z M48,58c-5.514,0-10-4.486-10-10s4.486-10,10-10s10,4.486,10,10S53.514,58,48,58z"/></g></svg></a>Sol</li>
<li data-module="about"><a href="#"><img style="width:40px;" src="assets/info.png"></a></li>
</ul>
</nav>
</aside>
<section id="main-dash" class="container clearfix">
<!-- start temperature module -->
<div id="temp-module" class="selected clearfix dash-module-container">
<div class="dash-module">
<div class="temp-settings">
<button data-unit="fahrenheit" class="unit-toggle unit-active">F<sup>°</sup></button>
<button data-unit="celsius" class="unit-toggle button-group-right">C<sup>°</sup></button>
</div>
<h2 class="module-heading">Temperature <span class="unit-symbol">( F )<sup>°</sup></span></h2>
<div class="temp-module temp-max">
<h4>Max Air Temp.</h4>
<span class="mars-data"></span>
</div>
<div class="temp-module temp-min">
<h4>Min Air Temp.</h4>
<span class="mars-data"></span>
</div>
<aside class="update-info"></aside>
</div>
<!-- temperature graph module -->
<div class="dash-module graph-module">
<h4 style="text-align:center;">Historical Data</h4>
<h6 id="year-range-wrapper">(<span id="year-range"></span>)</h6>
<div id="temp-graph"></div>
<div id="graph-ui">
<div class="legend">
<span class="max-bul">•</span> Max Air Temperature vs. <span class="min-bul">•</span> Min Air Temperature</div>
<input value="10" id="time-traveler" type="range" name="archive" min="10" max="470" step="10">
</div>
</div>
</div>
<!-- space time -->
<div id="sol-module" class="dash-module-container clearfix">
<div class="dash-module">
<h1 class="module-heading">Martian Orbit</h1>
<p>A sol is a martian day and it lasts approx. 40 minutes more than a day on earth. The orbit of mars is about 1.8 times larger in its circumference than that of Earth. Therefore, it takes Mars around 668.6 sols (Approx. 668.9 Earth days) to go around the sun, thus completing a year. In the controls below, you can reset the position of the planets, and slide them forward in time to see how much longer a martian year is in proportion to a year here on Earth. You can also see how the seasons in mars change as months pass by.</p>
<p>Please note that the positioning of the planets are not accurate in terms of spacial location. Rather their position in orbit represents the temporal location in relation to their year. </p>
<div id="sol-data">
<h5>Sols Since Rover Landing: <span class="mars-data sol-total"></span></h5>
<h5>Years Since Rover Landing: <span class="mars-data year-count"></span></h5>
<h5>Solar Longitude: <span class="mars-data ls-num"></span></h5>
<h5>Current Sol: <span class="mars-data sol-num"></span></h5>
<h5>Month Number: <span class="mars-data mars-month"></span></h5>
<h5>Season: <span class="mars-data mars-season"></span></h5>
<input id="orbit-traveler" type="range" min="0" max="668.6" step="1">
<div class="orbit-btns"><button id="reset">Reset</button><button id="current">Right Now</button></div>
</div>
</div>
<div class="dash-module">
<!-- svg is appended below -->
<div id="spacetime-wrap"></div>
<div>
<span class="orbit-legend legend">Current Orbit Position in Time</span>
<h5 class="legend">Mars Month: <span class="mars-month mars-data"></span> | Earth Month: <span class="earth-data earth-month"></span></h5>
</div>
</div>
</div><!-- end of orbit module-->
<div id="about-module" class="dash-module-container clearfix">
<div class="dash-module">
<h2 class="mars-data">Mars.IO</h2>
<p>Mars.IO is a Martian weather analytics application that pulls data transmitted by the Curiosity Rover back to Earth, and computes interactive, data-driven visualizations.</p>
<p>The purpose of the project is to provide an educational resource on Martian Weather, its environment, and the Curiosity Rover Mission. By gathering both the latest, and archived data available, the application can visually represent the information sent, over a 2 and a half year period, by a robot that lives 140,000,000 (that's Million) miles away, in the sloping rocky hills of Gale Crater.</p>
<p>Mars.IO is open source under MIT license, so go ahead, fork <a href="https://github.com/jfmm/Mars-IO">the project</a> and make your own version.</p>
<p>Specials thanks to:</p>
<ul>
<li>Mars Atmospheric Aggregation System <a href="http://marsweather.ingenology.com/" targe="_blank">API</a></li>
<li>El Centro de Astrobiología (<a href="http://www.cab.inta.es/en/inicio" target="_blank">España</a>)</li>
<li>To the people who made this great <a href=" http://www-mars.lmd.jussieu.fr/mars/mars.html" target="_blank">website</a></li>
<li>Clay Walker's Spacetime D3 <a href="http://bl.ocks.org/clayzermk1/9142407" target="_blank">example</a></li>
</ul>
</div>
<div id="rover-container" class="dash-module">
<img src="assets/curiosity-selfie.jpg" alt="Curiosity Rover in the surface of Mars">
</div>
</div>
</section>
<footer>
<h6>© Jose Morales Mendizabal 2017</h6>
<a href="https://twitter.com/moralejf" class="twitter-follow-button" data-show-count="false">Follow @moralejf</a>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/jfmm">Follow @jfmm</a>
<a class="github-button" href="https://github.com/jfmm/Mars-IO" data-icon="octicon-star" data-count-href="/jfmm/Mars-IO/stargazers" data-count-api="/repos/jfmm/Mars-IO#stargazers_count">Star</a>
</footer>
<script src="js/jquery-1.8.0.min.js"></script>
<script src="js/app.min.js"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!-- Place this tag right after the last button or just before your close body tag. -->
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>