-
Notifications
You must be signed in to change notification settings - Fork 0
/
english.html
507 lines (386 loc) · 17.1 KB
/
english.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
<!DOCTYPE HTML>
<!--
화성 시간과 지구 시간
-->
<html>
<head>
<title>Landed by HTML5 UP</title>
<script>
// Difference between TAI and UTC. This value should be
// updated each time the IERS announces a leap second.
var tai_offset = 37;
// Last time the above value changed.시간설정
var last_leap_second = "1 January 2017";
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload landing">
<div id="page-wrapper">
<!-- Header -->
<!-- memo
class="button primary"
-->
<header id="header">
<h1 id="logo"><a href="index.html">Mars Time</a></h1>
<nav id="nav">
<ul>
<li><a href="index.html">한국어</a></li>
<li><a href="chinese.html">中文</a> </li>
<li><a href="russian.html">русский</a></li>
<li><a href="arabic.html">عربى</a></li>
</ul>
</nav>
</header>
<!-- Banner -->
<section id="banner">
<div class="content">
<header>
<div class="date-conversion-results">
<h2>The Mars Time</h2>
<p>
Shows Time on Mars<br />
MSL Gale crator.
<div class="time curiosity_sol"></div>
<h2> <div class="time curiosity_ltst"></div> </h2>
</p>
</div>
</header>
<span class="image"><img src="images/marsa.gif" alt="" /></span>
</div>
<a href="#one" class="goto-next scrolly">Next</a>
</section>
<!-- Earth -->
<section id="banner">
<div class="content">
<span class="image">
<img src="images/eartha.gif" alt="" />
</span>
<header>
<div class="date-conversion-results">
<h2>The Earth Time</h2>
<p>
This is local time<br />
of the Earth.
<h2 id="clock">00:00</h2>
</p>
</div>
</header>
</div>
<a href="#one" class="goto-next scrolly">Next</a>
</section>
<!-- One -->
<section id="one" class="spotlight style1 bottom">
<span class="image fit main"><img src="images/planets.gif" alt="" /></span>
<div class="content">
<div class="container">
<div class="row">
<div class="col-4 col-12-medium">
<header>
<h2>Learn more about interplanetary time zones</h2>
<p>This is information of the Mercury,Venus,Earth and Mars Time zones.</p>
</header>
</div>
<div class="col-4 col-12-medium">
<p>
There are four planets in the solar system that have crusts and feet.
Mercury, Venus, Earth, and Mars all rotate on their own.
The time zone exists. However, Venus and Mercury have a rotational speed that is fast and fast.
There is no difference in proportion, so this site does not cover Venus and Mercury's time zones.
</p>
</div>
<div class="col-4 col-12-medium">
<p>
Mars has a rotation cycle that is very similar to Earth.
One day is about 30 minutes longer than the Earth, and the season is also three months longer than the Earth.
Thanks to this, the time zone on Mars is similar to Earth.
The day humans settle on Mars, they will use this time zone.
</p>
</div>
</div>
</div>
</div>
<a href="#two" class="goto-next scrolly">Next</a>
</section>
<!-- Two -->
<section id="two" class="spotlight style2 right">
<span class="image fit main"><img src="images/marssunclock.png" alt="" /></span>
<div class="content">
<header>
<h2>Mars Time zones</h2>
<p>The polar regions of Mars also have a white night phenomenon and a time zone similar to Earth.</p>
</header>
<p>Mars' time zone is currently provided by NASA and more detailed information can be found below.</p>
<p>
오퍼튜니티, 엔데버
<h2> <div class="time opportunity_ltst"></div> </h2>
</p>
<ul class="actions">
<li><a href="http://www.planetary.org/articles/mars-calendar" class="button">Mars Calender</a></li>
</ul>
</div>
<a href="#three" class="goto-next scrolly">Next</a>
</section>
<!-- Two -->
<section id="two" class="spotlight style2 right">
<span class="image fit main"><img src="images/martian.jpg" alt="" /></span>
<div class="content">
<header>
<h2>About surface of the Mars</h2>
<p>The surface of Mars is similar to Earth, with gravity, a lower density atmosphere than Earth, and water made up of hydrogen and oxygen.</p>
</header>
<p>These conditions on Mars will provide some environment for humans to survive on Mars in 2027.</p>
<ul class="actions">
<li><a href="http://mars.nasa.gov" class="button">NASA Mars</a></li>
</ul>
</div>
<a href="#three" class="goto-next scrolly">Next</a>
</section>
<!-- Four -->
<section id="four" class="wrapper style1 special fade-up">
<div class="container">
<header class="major">
<h2>Earth to Mars</h2>
<p>Mars can be 2nd Earth.</p>
</header>
<footer class="major">
<ul class="actions special">
<li><a href="https://www.spacex.com/" class="button">SpaceX</a></li>
</ul>
</footer>
</div>
</section>
<!-- Five
<section id="five" class="wrapper style2 special fade">
<div class="container">
<header>
<h2>이메일 입력</h2>
<p>Ante metus praesent faucibus ante integer id accumsan eleifend</p>
</header>
<form method="post" action="#" class="cta">
<div class="row gtr-uniform gtr-50">
<div class="col-8 col-12-xsmall"><input type="email" name="email" id="email" placeholder="Your Email Address" /></div>
<div class="col-4 col-12-xsmall"><input type="submit" value="Get Started" class="fit primary" /></div>
</div>
</form>
</div>
</section> -->
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="#" class="icon alt fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="http://www.instagram.com/samuelgalaxys/" class="icon alt fa-instagram"><span class="label">Instagram</span></a></li>
</ul>
<ul class="copyright">
<li>© Earth to Mars</li>
<li>데이터 인용: <a href="https://www.giss.nasa.gov/tools/mars24/">Mars24</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script>
var clockTarget = document.getElementById("clock");
function clock() {
var date = new Date();
// date Object를 받아오고
var month = date.getMonth();
// 달을 받아옵니다
var clockDate = date.getDate();
// 몇일인지 받아옵니다
var day = date.getDay();
// 요일을 받아옵니다.
var week = ['일', '월', '화', '수', '목', '금', '토'];
// 요일은 숫자형태로 리턴되기때문에 미리 배열을 만듭니다.
var hours = date.getHours();
// 시간을 받아오고
var minutes = date.getMinutes();
// 분도 받아옵니다.
var seconds = date.getSeconds();
// 초까지 받아온후
clockTarget.innerText = `${hours < 10 ? `0${hours}` : hours}:${minutes < 10 ? `0${minutes}` : minutes}:${seconds < 10 ? `0${seconds}` : seconds}`;
// 월은 0부터 1월이기때문에 +1일을 해주고
// 시간 분 초는 한자리수이면 시계가 어색해보일까봐 10보다 작으면 앞에0을 붙혀주는 작업을 3항연산으로 했습니다.
}
function init() {
clock();
// 최초에 함수를 한번 실행시켜주고
setInterval(clock, 1000);
// setInterval이라는 함수로 매초마다 실행을 해줍니다.
// setInterval은 첫번째 파라메터는 함수이고 두번째는 시간인데 밀리초단위로 받습니다. 1000 = 1초
}
init();
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
function cos(deg) {
return Math.cos(deg * Math.PI / 180);
}
function sin(deg) {
return Math.sin(deg * Math.PI / 180);
}
function h_to_hms(h) {
var x = h * 3600;
var hh = Math.floor(x / 3600);
if (hh < 10) hh = "0" + hh;
var y = x % 3600;
var mm = Math.floor(y / 60);
if (mm < 10) mm = "0" + mm;
var ss = Math.round(y % 60);
if (ss < 10) ss = "0" + ss;
return hh + ":" + mm + ":" + ss;
}
function add_commas(n) {
n += "";
var x = n.split(".");
var x1 = x[0];
var x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}
function within_24(n) {
if (n < 0) {
n += 24;
} else if (n >= 24) {
n -= 24;
}
return n;
}
function update() {
var input_date = $(".custom-datetime").val();
if (input_date) {
// Slightly evil but mostly functional date parsing from human input.
// Works reasonably well in most browsers :)
var d = new Date(input_date);
} else {
var d = new Date();
}
if (d.getTime()) {
$(".manual-input-invalid").hide();
$(".date-conversion-results").show();
} else {
$(".manual-input-invalid").show();
$(".date-conversion-results").hide();
}
$(".utc-time").text(d.toUTCString());
var millis = d.getTime();
var jd_ut = 2440587.5 + (millis / 8.64E7);
var jd_tt = jd_ut + (tai_offset + 32.184) / 86400;
var j2000 = jd_tt - 2451545.0;
var m = (19.3870 + 0.52402075 * j2000) % 360;
var alpha_fms = (270.3863 + 0.52403840 * j2000) % 360;
var e = (0.09340 + 2.477E-9 * j2000);
var pbs =
0.0071 * cos((0.985626 * j2000 / 2.2353) + 49.409) +
0.0057 * cos((0.985626 * j2000 / 2.7543) + 168.173) +
0.0039 * cos((0.985626 * j2000 / 1.1177) + 191.837) +
0.0037 * cos((0.985626 * j2000 / 15.7866) + 21.736) +
0.0021 * cos((0.985626 * j2000 / 2.1354) + 15.704) +
0.0020 * cos((0.985626 * j2000 / 2.4694) + 95.528) +
0.0018 * cos((0.985626 * j2000 / 32.8493) + 49.095);
var nu_m = (10.691 + 3.0E-7 * j2000) * sin(m) +
0.623 * sin(2 * m) +
0.050 * sin(3 * m) +
0.005 * sin(4 * m) +
0.0005 * sin(5 * m) +
pbs;
var nu = nu_m + m;
var l_s = (alpha_fms + nu_m) % 360;
var eot = 2.861 * sin(2 * l_s) - 0.071 * sin(4 * l_s) + 0.002 * sin(6 * l_s) - nu_m;
var eot_h = eot * 24 / 360;
var msd = (((j2000 - 4.5) / 1.027491252) + 44796.0 - 0.00096);
var mtc = (24 * msd) % 24;
var curiosity_lambda = 360 - 137.4;
var curiosity_sol = Math.floor(msd - curiosity_lambda / 360) - 49268;
var curiosity_lmst = within_24(mtc - curiosity_lambda * 24 / 360);
var curiosity_ltst = within_24(curiosity_lmst + eot * 24 / 360);
var opportunity_sol_date = msd - 46235 - 0.042431;
var opportunity_sol = Math.floor(opportunity_sol_date);
var opportunity_mission = (24 * opportunity_sol_date) % 24;
var opportunity_ltst = within_24(opportunity_mission + eot * 24 / 360);
$(".millis").text(add_commas(millis));
$(".jd_ut").text(add_commas(jd_ut.toFixed(5)));
$(".jd_tt").text(add_commas(jd_tt.toFixed(5)));
$(".j2000").text(add_commas(j2000.toFixed(5)));
$(".m").text(m.toFixed(5));
$(".alpha_fms").text(alpha_fms.toFixed(5));
$(".pbs").text(pbs.toFixed(5));
$(".e").text(e.toFixed(5));
$(".nu_m").text(nu_m.toFixed(5));
$(".nu").text(nu.toFixed(5));
$(".l_s").text(l_s.toFixed(5));
$(".eot").text(eot.toFixed(5));
$(".eot_h").text(h_to_hms(eot_h.toFixed(5)));
$(".msd").text(add_commas(msd.toFixed(5)));
$(".mtc").text(h_to_hms(mtc));
$(".curiosity_lmst").text(h_to_hms(curiosity_lmst));
$(".curiosity_ltst").text(h_to_hms(curiosity_ltst));
$(".curiosity_sol").text(curiosity_sol);
$(".opportunity_mission").text(h_to_hms(opportunity_mission));
$(".opportunity_ltst").text(h_to_hms(opportunity_ltst));
$(".opportunity_sol").text(opportunity_sol);
}
$(function () {
$(".last_leap_second").text(last_leap_second);
$(".tai_offset").text(tai_offset);
update();
$(".explanation").hide();
setInterval(update, 10);
$(".explanation-link").hover(function () {
$(".explanation").hide();
$(this).css("font-weight", "bold");
$(".help").hide();
$($(this).data("explanation")).show();
}, function () {
$(this).css("font-weight", "300");
$(".help").show();
$($(this).data("explanation")).hide();
});
$('.automatic-input').mouseup(function () {
// Changing the contents of this element so frequently
// stops the click handler from firing, so we need to
// watch for mouseup instead
$('.automatic-input').hide();
$('.manual-input').show();
$('.custom-datetime').select();
});
$('.custom-datetime').blur(function () {
if (!$('.custom-datetime').val()) {
$('.manual-input').hide();
$('.automatic-input').show();
}
});
$('.earth-date-input .clear-button').click(function () {
$('.custom-datetime').val('');
$('.manual-input').hide();
$('.automatic-input').show();
});
});
</script>
<script type="text/javascript">
var _gauges = _gauges || [];
(function () {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4f7c4470613f5d112800015d');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>