Mouse Clock 1.0.0: Silly Clock 3 (Kurt Grigg) rewrite with touch support, settings and setup guide
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4ba201fa27
5 files changed
+385
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
<!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>放到自己網頁的方法見 <code>README.md</code>。</p>
|
||||
|
||||
<script src="mouse-clock.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user