-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (122 loc) · 4.13 KB
/
Copy pathindex.html
File metadata and controls
127 lines (122 loc) · 4.13 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>辉星系虚拟天文模型 - 居住者视角</title>
<link rel="stylesheet" href="style.css">
<style>
body {
margin: 0;
overflow: hidden;
background-color: #000;
font-family: 'Courier New', monospace;
}
#info {
position: absolute;
top: 10px;
left: 10px;
color: #00ff00;
background: rgba(0,0,0,0.8);
padding: 15px;
pointer-events: none;
user-select: none;
border: 1px solid #00ff00;
border-radius: 5px;
font-size: 12px;
line-height: 1.4;
max-width: 300px;
}
#gui-container {
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
}
#loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #00ff00;
font-size: 18px;
text-align: center;
z-index: 2000;
}
.loading-dots {
animation: blink 1s infinite;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0.3; }
}
#debug {
position: absolute;
bottom: 10px;
left: 10px;
color: #ffff00;
background: rgba(0,0,0,0.7);
padding: 10px;
font-size: 10px;
border: 1px solid #ffff00;
border-radius: 3px;
max-width: 400px;
max-height: 200px;
overflow-y: auto;
}
#celestial-info {
position: absolute;
top: 10px;
right: 10px;
color: #ffffff;
background: rgba(0,0,0,0.8);
padding: 10px;
font-size: 11px;
border: 1px solid #ffffff;
border-radius: 3px;
max-width: 250px;
pointer-events: none;
}
.observer-mode {
background: rgba(0, 50, 0, 0.8) !important;
border-color: #00ff00 !important;
}
</style>
<!-- Import maps polyfill -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
</head>
<body>
<div id="loading">
<div>正在初始化辉星系居住者视角...</div>
<div class="loading-dots">...</div>
</div>
<div id="info" style="display: none;">
<h2>辉星系居住者视角</h2>
<p>控制: 鼠标左键旋转,右键平移,滚轮缩放</p>
<p>当前视角: <span id="current-view">上帝视角</span></p>
<p>太阳历: <span id="sim-time">0.00 日</span> · 年内: <span id="sim-day-of-year">第 0 日</span></p>
<p>太阳日联立: 辉烬 <span id="huijin-period-display">—</span> 日/周 · 苍 <span id="cang-period-display">—</span> 日/周</p>
<p>观测锚点: <span id="observer-anchor">辉星</span></p>
<p>观察者位置: <span id="observer-position">纬度0°, 经度0°</span></p>
<p>当前季节: <span id="current-season">计算中...</span></p>
<p>FPS: <span id="fps">0</span></p>
</div>
<div id="celestial-info" style="display: none;">
<h3>天体位置信息</h3>
<div id="celestial-data">
正在计算天体位置...
</div>
</div>
<div id="gui-container" style="display: none;"></div>
<div id="debug" style="display: none;"></div>
<script type="module" src="main.js"></script>
</body>
</html>