-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (125 loc) · 5.1 KB
/
index.html
File metadata and controls
139 lines (125 loc) · 5.1 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
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FinAstro - 財經星象圖表</title>
<link rel="stylesheet" href="static/css/v2.css">
<div id="stored-data"></div>
</head>
<body>
<!-- 側邊欄 -->
<aside class="sidebar">
<!-- Logo -->
<div class="sidebar-header">
<div class="logo">
<span class="logo-icon">☾</span>
<span>FinAstro</span>
</div>
</div>
<!-- 股票選擇 -->
<div class="sidebar-section">
<div class="section-title">選擇股票</div>
<select class="stock-select" id="stock-select">
<!-- 動態載入 -->
</select>
</div>
<!-- 天體選擇 -->
<div class="sidebar-section">
<div class="section-title">天體選擇</div>
<div class="body-grid" id="body-list">
<!-- 動態載入 -->
</div>
</div>
<!-- 圖表設定 -->
<div class="sidebar-section">
<div class="section-title">圖表設定</div>
<div class="setting-group">
<label class="setting-label">顯示類型</label>
<select class="setting-select" id="stock-display-type">
<!-- 動態載入 -->
</select>
</div>
<div class="setting-group">
<label class="setting-label">天體數據類型</label>
<select class="setting-select" id="body-data-type">
<!-- 動態載入 -->
</select>
</div>
<div class="setting-group">
<label class="setting-label">角度</label>
<select class="setting-select" id="body-angle">
<!-- 動態載入 -->
</select>
</div>
<div class="setting-group">
<label class="setting-label">日期範圍</label>
<div class="date-quick-btns" id="date-quick-btns">
<button class="date-btn" data-range="1d">1天</button>
<button class="date-btn" data-range="5d">5天</button>
<button class="date-btn" data-range="1m">1個月</button>
<button class="date-btn" data-range="6m">6個月</button>
<button class="date-btn active" data-range="ytd">YTD</button>
<button class="date-btn" data-range="1y">1年</button>
<button class="date-btn" data-range="5y">5年</button>
<button class="date-btn" data-range="max">最長</button>
</div>
<input type="hidden" id="graph_start_date" value="2024-01-01">
<input type="hidden" id="graph_end_date" value="2025-12-31">
</div>
<div class="toggle-group">
<span class="toggle-label">標記轉換點</span>
<label class="toggle-switch">
<input type="checkbox" id="show_markers">
<span class="toggle-slider"></span>
</label>
</div>
<div class="toggle-group">
<span class="toggle-label">顯示中文名稱</span>
<label class="toggle-switch">
<input type="checkbox" id="show_text">
<span class="toggle-slider"></span>
</label>
</div>
<button class="update-button" id="update-button" type="button" disabled>
資料讀取中...
</button>
</div>
</aside>
<!-- 主要內容區 -->
<main class="main-content">
<!-- 頂部工具列 -->
<div class="toolbar">
<div class="toolbar-left">
<span class="current-stock" id="current-stock-name">NVIDIA Corp</span>
<div class="stock-price">
<span class="price-value" id="current-price">--</span>
<span class="price-change up" id="price-change">--</span>
</div>
</div>
<div class="toolbar-right">
<button class="toolbar-btn" id="btn-fullscreen">⛶ 全螢幕</button>
<button class="toolbar-btn" id="btn-export">⬇ 匯出</button>
</div>
</div>
<!-- 圖表容器 -->
<div class="chart-container">
<div class="chart-wrapper">
<div id="graph"></div>
</div>
</div>
<!-- 狀態列 -->
<div class="status-bar">
<div class="status-item">
<span class="status-dot"></span>
<span id="status-text">準備就緒</span>
</div>
<div class="status-item">
<span id="data-count">105 支股票 / 11 個天體</span>
</div>
</div>
</main>
<script src="https://cdn.plot.ly/plotly-3.0.1.min.js"></script>
<script src="static/js/financescript-v2.js"></script>
</body>
</html>