-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperformance.html
More file actions
137 lines (128 loc) · 5.21 KB
/
performance.html
File metadata and controls
137 lines (128 loc) · 5.21 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
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>本週表現 - 開心小天地 ✨</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="ocean-bg">
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
</div>
<div class="container">
<header class="header">
<a href="index.html" class="back-btn">← 首頁</a>
<h1 class="title">
<span class="title-icon">📊</span>
本週表現
<span class="title-icon">⭐</span>
</h1>
<!-- 管理員登入區 -->
<div id="adminSection" class="admin-section" style="display: none;">
<span id="adminName"></span>
<button class="logout-btn" onclick="logout()">🚪 登出</button>
</div>
</header>
<!-- 一般訊息 -->
<div id="publicMessage" class="public-message">
<p>👀 大家都可以看到本週表現喔!</p>
<p id="editPrompt" style="display: none;">🔐 只有管理員可以編輯勾選</p>
</div>
<!-- 載入中 -->
<div id="loading" class="loading">載入中...</div>
<!-- 顯示的內容 -->
<main class="content" id="performanceContent" style="display: none;">
<!-- 週次選擇 -->
<section class="week-selector">
<button class="week-nav-btn" onclick="changeWeek(-1)">◀ 上週</button>
<h2 id="weekTitle">2026年 2月 第1週</h2>
<button class="week-nav-btn" onclick="changeWeek(1)">下週 ▶</button>
</section>
<!-- 兩個小朋友的表現表格 -->
<section class="performance-tables">
<!-- Evelyn 表格 -->
<div class="kid-table">
<div class="kid-header evelyn">
<h3>👧 Evelyn</h3>
</div>
<table class="performance-table">
<thead>
<tr>
<th>日期</th>
<th>🏫 上學</th>
<th>🛁 盥洗</th>
<th>📚 學習</th>
<th>😴 睡覺</th>
<th>⭐</th>
</tr>
</thead>
<tbody id="evelynBody">
<!-- JavaScript 會自動生成 -->
</tbody>
<tfoot>
<tr class="total-row">
<td>📈 總計</td>
<td id="evelynSchool">-</td>
<td id="evelynCare">-</td>
<td id="evelynStudy">-</td>
<td id="evelynSleep">-</td>
<td id="evelynTotal">-</td>
</tr>
</tfoot>
</table>
</div>
<!-- Howie 表格 -->
<div class="kid-table">
<div class="kid-header howie">
<h3>👦 Howie</h3>
</div>
<table class="performance-table">
<thead>
<tr>
<th>日期</th>
<th>🏫 上學</th>
<th>🛁 盥洗</th>
<th>📚 學習</th>
<th>😴 睡覺</th>
<th>⭐</th>
</tr>
</thead>
<tbody id="howieBody">
<!-- JavaScript 會自動生成 -->
</tbody>
<tfoot>
<tr class="total-row">
<td>📈 總計</td>
<td id="howieSchool">-</td>
<td id="howieCare">-</td>
<td id="howieStudy">-</td>
<td id="howieSleep">-</td>
<td id="howieTotal">-</td>
</tr>
</tfoot>
</table>
</div>
</section>
<!-- 成就區 -->
<section class="achievements">
<h2>🏆 本週成就</h2>
<div id="achievementsContainer" class="achievements-container">
<!-- JavaScript 會自動生成 -->
</div>
</section>
</main>
<footer class="footer">
<p>每天做好這些事,你就是最棒的!🌟</p>
</footer>
</div>
<script src="script.js"></script>
<script>
// 檢查登入狀態
checkLoginForPerformance();
</script>
</body>
</html>