-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·699 lines (545 loc) · 34.2 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
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
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/favicon/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>火星时钟 | 星际移民中心</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<!-- Animation library for notifications -->
<link href="assets/css/animate.min.css" rel="stylesheet" />
<!-- Paper Dashboard core CSS -->
<link href="assets/css/paper-dashboard.css" rel="stylesheet" />
<!-- Bootstrap Slider Bar -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-slider.css">
<!-- Bootstrap Datepicker CSS -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-datetimepicker.min.css">
<!-- Fonts and icons -->
<link href="assets/fonts/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet">
<link href='assets/fonts/google-fonts.css' rel='stylesheet' type='text/css'>
<link href="assets/css/themify-icons.css" rel="stylesheet">
<!-- Mathjax BEGIN -->
<!-- <script type="text/javascript" src="http://libs.cdnjs.net/mathjax/2.6.1-rc.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
<!-- <script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
messageStyle: 'none',
tex2jax: {
inlineMath: [['$','$']],
displayMath: [['$$','$$']],
processEnvironments: false
},
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
},
'HTML-CSS': {
imageFont: null
}
});
</script> -->
<!-- Mathjax END -->
<!-- Mars Clock Specific BEGIN -->
<link href="assets/googlefonts.css" rel="stylesheet" type="text/css">
<link rel="canonical" href="http://interimm.org/mars-clock/index.html" />
<link href="assets/main.css" rel="stylesheet" type="text/css">
<!-- Mars Clock Specific END -->
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-background-color="black" data-active-color="success">
<!--
Tip 1: you can change the color of the sidebar's background using: data-background-color="white | black"
Tip 2: you can change the color of the active button using the data-active-color="primary | info | success | warning | danger"
-->
<div class="sidebar-wrapper">
<div class="logo">
<a href="index.html" class="simple-text">
火星时钟
</a>
</div>
<ul class="nav">
<li class="active">
<a href="index.html">
<i class="ti-time"></i>
<p>查询火星时间</p>
</a>
</li>
<li>
<a href="timing-doc.html">
<i class="ti-book"></i>
<p>火星计时</p>
</a>
</li>
<li>
<a href="timezones.html">
<i class="ti-world"></i>
<p>火星时区</p>
</a>
</li>
<li>
<a href="cal-doc.html">
<i class="ti-calendar"></i>
<p>火星历法</p>
</a>
</li>
<li>
<a href="about.html">
<i class="ti-pulse"></i>
<p>关于</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle">
<span class="sr-only">切换导航栏</span>
<span class="icon-bar bar1"></span>
<span class="icon-bar bar2"></span>
<span class="icon-bar bar3"></span>
</button>
<a class="navbar-brand" href="#">查询火星时间</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/InterImm/app/releases" target="_blank">
<i class="ti-apple"></i>
<p>桌面程序</p>
</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-th"></i>
<p class="notification"></p>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="http://interimm.org/">星际移民中心</a></li>
<li>
<a href="http://book.interimm.org/navigator/mars.html#marscalendar">
火星计时历法文档
</a>
</li>
<li><a href="http://book.interimm.org/">星际移民之书</a></li>
<li><a href="https://github.com/InterImm/mars-clock">源码 @ GitHub</a></li>
</ul>
</li>
<li>
<a href="en/">
<i class="fa fa-language"></i>
<p>EN</p>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="header">
<h4 class="title">地球—火星时间换算</h4>
<p class="category">地球时间与火星时间的换算</p>
</div>
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="earth-date-input form-group">
<label>地球时间(输入格式举例:2016-07-16 01:58:16)</label>
<span class="automatic-input">
<a class="utc-time form-control border-input" title="点击此处可以输入日期"></a>
</span>
<div class="col-md-12 manual-input input-group date" style="display:none;"
id='datetimepicker-earth'>
<input type="datetime" name="custom-datetime" class="custom-datetime form-control border-input" />
<span class="input-group-addon">
<span class="fa fa-calendar"></span>
</span>
<!-- <a class="clear-button">⌫</a> -->
</div>
<div class="col-md-6 manual-input" style="display:none;text-align:center;vertical-align: middle;">
<a type="text" class="form-control" style="background-color:white;"><b>时区为
UTC+</b></a>
</div>
<div class="col-md-6 manual-input" style="display:none;">
<input type="number" id="set-datetime-tz-earth" name="custom-datetime-tz-earth"
class="form-control border-input" value="8" style="text-align:center;"
min="0" max="24" />
</div>
</div>
<div class="manual-input-invalid" style="display:none;">
<p>请输入一个有效的日期,格式可以使用 “August 6, 2012”,或者 “Aug 6,
2012”,或者 “2012-08-29” 等等,默认时区为 GMT. <b>或者尝试一个更晚的日期和时间。</b></p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="clock col-md-3">
<div class="card">
<div class="content">
<div class="row">
<div class="time mymd_interimm"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
<a href="cal-doc.html">火星日期</a>
</div>
</div>
</div>
</div>
</div>
<div class="clock col-md-3">
<div class="card">
<div class="content">
<div class="row">
<div class="time mt_interimm"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
<a href="timing-doc.html">火星 0 时区时间</a>
</div>
</div>
</div>
</div>
</div>
<div class="clock col-md-3">
<div class="card">
<div class="content">
<div class="row">
<div class="time mtc"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
<a href="https://en.wikipedia.org/wiki/Timekeeping_on_Mars#Coordinated_Mars_Time_.28MTC.29"
target="_blank">协调火星时</a>
</div>
</div>
</div>
</div>
</div>
<div class="clock col-md-3">
<div class="card">
<div class="content">
<div class="row">
<div class="time msd_interimm"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
火星太阳日
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clock col-md-6">
<div class="header" style="text-align:center;">
<h4 class="title">火星时区时间</h4>
<!-- <p class="category">火星上不同时区的时间</p> -->
</div>
<div style="text-align:center;">
<div class="content">
<div class="form-group" style="text-align:center;">
<label>选择你所在的火星时区</label>
<input id="setLocalTimezone" type="number" min="0" max="24"
class="form-control border-input" placeholder="火星时区" value="0"
style="width:50%;text-align:center;margin-left:auto;margin-right:auto;">
</div>
<div class="card" style="text-align:center;width:80%;margin-left:auto;margin-right:auto;">
<div class="content">
<div class="row">
<div class="time mymd_interimm_tz"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
当前时区火星日期
</div>
</div>
</div>
</div>
<div class="card" style="text-align:center;width:80%;margin-left:auto;margin-right:auto;">
<div class="content">
<div class="row">
<div class="time mt_interimm_tz"></div>
</div>
<div class="footer">
<hr>
<div class="stats">
当前时区时间
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>
<div class="chart-legend">
火星共有 25 个时区,请输入 0 - 24 之内的数据。
</div>
</div>
</div>
</div>
<div class="clock col-md-6" style="text-align:center;">
<div class="header">
<h4 class="title">常用时区时间</h4>
</div>
<div class="card">
<div class="content table-responsive table-full-width">
<table class="table table-striped" align="center">
<thead>
<tr>
<th style="text-align:center;">地点</th>
<th style="text-align:center;">时区</th>
<th style="text-align:center;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>伊希地城市圈</td>
<td>5</td>
<td>-</td>
</tr>
<tr>
<td>端点城</td>
<td>5</td>
<td>-</td>
</tr>
<tr>
<td>川陀城</td>
<td>4</td>
<td>-</td>
</tr>
<tr>
<td>奥林匹斯山</td>
<td>15</td>
<td>-</td>
</tr>
<tr>
<td>埃律西昂山</td>
<td>9,10</td>
<td>最高点时区为 10</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="footer">
<hr>
<div class="chart-legend">
更多请查看<a href="timezones.html">地区和时区对照表</a>,或者自行通过<a href="timing-doc.html">火星时区</a>规定换算。
</div>
</div>
</div>
<div class="col-md-12" id="accordion" role="tablist" aria-multiselectable="true"
style="visibility:hidden;">
<div class="panel panel-info" style="background-color:#fff;">
<div class="panel-heading" role="tab" id="headingThree" style="background-color:#fff !important;">
<h4 class="panel-title" style="text-align:center;">
<a style="color:lightblue;" class="collapsed" data-toggle="collapse"
data-parent="#accordion" href="#collapsetech" aria-expanded="false"
aria-controls="collapsetech">
点击查看技术细节
</a>
</h4>
</div>
<div id="collapsetech" class="panel-collapse collapse" role="tabpanel"
aria-labelledby="headingThree">
<div class="col-md-6">
<div class="clock-in">
<h3 style="text-align:center;">地球</h3>
<div class="manual-input-invalid" style="display:none;">
<p>请输入一个有效的日期,格式可以使用 “August 6, 2012” 等等.</p>
</div>
<div>
<div>
<i>millis</i> = <span class="millis"></span>
</div>
<div class="explanation-link" data-explanation="#jd_ut-explanation">
JD<sub>UT</sub> = <span class="jd_ut"></span>
</div>
<div class="explanation-link" data-explanation="#jd_tt-explanation">
JD<sub>TT</sub> = <span class="jd_tt"></span>
</div>
</div>
<div>
自从 <a href="https://en.wikipedia.org/?title=Epoch_(astronomy)#Julian_years_and_J2000"
target="_blank" title="点击此处查看解释">J2000</a> 之后的时间:
<br>
<span class="time j2000"></span>
</div>
</div>
</div>
<div class="col-md-6">
<div class="clock-in">
<h3 style="text-align:center;">火星</h3>
<div class="explanation-link" data-explanation="#m-explanation">
M = <span class="m"></span>°
</div>
<div class="explanation-link" data-explanation="#alpha_fms-explanation">
α<sub>FMS</sub> = <span class="alpha_fms"></span>°
</div>
<div class="explanation-link" data-explanation="#e-explanation">
<i>e</i> = <span class="e"></span>
</div>
<div class="explanation-link" data-explanation="#nu_m-explanation">
ν - M = <span class="nu_m"></span>°
</div>
<div class="explanation-link" data-explanation="#l_s-explanation">
<i>L</i><sub>s</sub> = <span class="l_s"></span>°<br>
</div>
ν = <span class="nu"></span>°
<div>
PBS = <span class="pbs"></span>°
</div>
<div>
EOT = <span class="eot"></span>° = <span class="eot_h"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Annotations of Clock -->
<div class="col-md-12">
<div class="footer" style="border-top:1px solid lightgrey;margin-top:1em;">
<hr>
<div class="stats">
<i class="ti-info"></i> 感谢 James Tauber 的 <a href="http://jtauber.github.io/mars-clock/"
target="_blank">Mars Clock</a>,本程序在其基础上重写并且添加星际移民中心的计时和历法方案。部分公式来自
Allison, M., and M. McEwen 2000. <a href="http://pubs.giss.nasa.gov/abs/al05000n.html">A
post-Pathfinder evaluation of aerocentric solar coordinates
with improved timing recipes for Mars seasonal/diurnal climate
studies.</a> <i>Planet. Space Sci.</i> <b>48</b>, 215-235.
以及 <a href="http://www.giss.nasa.gov/tools/mars24/help/algorithm.html">Mars24
Algorithm and Worked Examples</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="pull-left">
<ul>
<li>
<a href="http://interimm.org">
<i class="fa fa-rocket" aria-hidden="true"></i> 星际移民中心
</a>
</li>
<li>
<a href="http://weibo.com/735345046" target="_blank">
<i class="fa fa-map-marker" aria-hidden="true"></i> 小地球旅行
</a>
</li>
</ul>
</nav>
<div class="copyright pull-right">
© <script>
document.write(new Date().getFullYear())
</script>, made with <i class="fa fa-heart heart"></i> by <a href="http://interimm.org">星际移民中心</a>
</div>
</div>
</footer>
</div>
</div>
</body>
<!-- Core JS Files -->
<script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Moment.js -->
<script src="assets/js/moment.js"></script>
<!-- Bootstrap Datepicker Plugin -->
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<!-- Checkbox, Radio & Switch Plugins -->
<script src="assets/js/bootstrap-checkbox-radio.js"></script>
<!-- Charts Plugin -->
<!-- <script src="assets/js/chartist.min.js"></script> -->
<!-- Bootstrap Translation Plugins -->
<script src="assets/js/bootstrap-transition.js"></script>
<!-- Bootstrap Collapse Plugins -->
<script src="assets/js/bootstrap-collapse.js"></script>
<!-- Notifications Plugin -->
<script src="assets/js/bootstrap-notify.js"></script>
<script type="text/javascript" src="assets/js/bootstrap-slider.min.js"></script>
<!-- Paper Dashboard Core javascript and methods for Demo purpose -->
<script src="assets/js/paper-dashboard.js"></script>
<script type="text/javascript">
$(function () {
$('#datetimepicker').datetimepicker({
format: 'YYYY-MM-DD HH:mm:ss'
});
});
</script>
<script type="text/javascript">
$(function () {
$('#datetimepicker-earth').datetimepicker({
format: 'YYYY-MM-DD HH:mm:ss',
sideBySide: true
});
});
</script>
<!-- WIP Warning -->
<script type="text/javascript">
$(document).ready(function () {
$.notify({
icon: 'ti-pulse',
message: "欢迎使用火星时钟。提交 BUG 和建议请戳 <a href='https://github.com/InterImm/mars-clock/issues' style='color:black;'>GitHub</a>."
}, {
type: 'info',
timer: 10000,
placement: {
from: 'bottom',
align: 'left'
}
});
});
</script>
<!-- Javascript BEGIN -->
<script>
if (!window.jQuery) {
var script = document.createElement('script');
script.src = "/static/jquery/jquery.min.js";
document.body.appendChild(script);
}
</script>
<script src="assets/marstimezone.js"></script>
<script src="assets/marsclock.js"></script>
<!-- Google 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-50146153-7', 'auto');
ga('send', 'pageview');
</script>
<!-- Javascript END -->
</html>