feat: enhanced API and interface

This commit is contained in:
2026-01-01 19:41:01 +08:00
parent e657fd1be5
commit 0417b856f3
6 changed files with 557 additions and 60 deletions

View File

@@ -7,19 +7,47 @@
<title>歷史上的今天</title>
<link rel="stylesheet" href="static/styles.css">
<script src="static/script.js"></script>
</head>
<body>
<div class="container">
<h1 id="title">歷史上的今天</h1>
<div id="current-date"></div>
<div class="date-controls">
<button id="prev-btn" class="nav-btn" aria-label="往前一天">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<div id="current-date" title="更改日期"></div>
<button id="next-btn" class="nav-btn" aria-label="往後一天">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</button>
</div>
<div id="events-list">
<p>正在載入歷史事件...</p>
</div>
<div id="time-comment" class="hide">*以上標註時間均為臺灣標準時間(UTC+8)</div>
<div id="time-comment" class="hide comment">*以上標註時間均為臺灣標準時間(UTC+8)</div>
<div id="help-us" class="comment"><a href="https://forms.gle/jaCTUmfp14nsga1U8"
target="_blank">少了什麼嗎?幫助我們充實資料庫!</a></div>
</div>
<dialog id="date-dialog">
<div class="dialog-content">
<h3>日期</h3>
<input type="date" id="date-picker-input">
<div class="dialog-actions">
<button id="cancel-date-btn" class="cancel-btn">取消</button>
<button id="confirm-date-btn" class="confirm-btn">確認</button>
</div>
</div>
</dialog>
</body>
</html>