Files
mouse-clock/index.html
T
2026-11-20 15:26:32 +08:00

27 lines
1.2 KiB
HTML

<!doctype html>
<html lang="zh-Hant">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>滑鼠立體時鐘 範例</title>
<style>
body { font-family: system-ui, "Noto Sans TC", sans-serif; max-width: 640px; margin: 40px auto; padding: 0 16px; line-height: 1.7; color: #222; background: #fafafa; }
code { background: #eee; padding: 1px 5px; border-radius: 4px; }
button { font: inherit; padding: 6px 14px; margin: 4px 6px 4px 0; cursor: pointer; }
</style>
</head>
<body>
<h1>滑鼠立體時鐘</h1>
<p>移動滑鼠(手機上用手指滑動),時鐘會跟著你。</p>
<p>
<button type="button" onclick="MouseClock.start()">原版配色</button>
<button type="button" onclick="MouseClock.start({hourColor:'#b5532f',minuteColor:'#33568b',secondColor:'#3f8f57',faceColor:'#555',dateColor:'#999'})">柔和配色</button>
<button type="button" onclick="MouseClock.start({lang:'en'})">英文日期</button>
<button type="button" onclick="MouseClock.stop()">關閉時鐘</button>
</p>
<p>下載與放置教學:<a href="https://code.tsdylab.com/tangsongdayo/mouse-clock">code.tsdylab.com/tangsongdayo/mouse-clock</a></p>
<script src="mouse-clock.js"></script>
</body>
</html>