Mouse Clock 1.3.1: follow original author's terms (non-commercial); link archived Silly Clock 3 page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tangsongdayoandClaude Opus 5.5 committed 2026-11-21 00:34:16 +08:00
1 parent 32aaf8a191
commit 3b009a0800
4 files changed
+43 -30

No files matched your search

+4 -3
View File
@@ -1,11 +1,12 @@
/*!
* 滑鼠立體時鐘 Mouse Clock 1.3.0
* 滑鼠立體時鐘 Mouse Clock 1.3.1
* https://code.tsdylab.com/tangsongdayo/mouse-clock
*
* 原作:Silly Clock 3 by Kurt Grigg
* https://web.archive.org/web/20020310015558/http://www.btinternet.com:80/~kurt.grigg/javascript/sillyclock3.html
* 中文化:網頁建置百寶箱 JavaScript 收集區
* 改寫:唐宋打油 https://tsdylab.com/(觸控支援、設定項、可停止)
* 授權說明見 LICENSE
* 依原作者條款:免費使用,請保留這段署名,不可營利。詳見 LICENSE
*/
(function () {
'use strict';
@@ -219,7 +220,7 @@
var current = document.currentScript;
// 1.1.0:在載入前設定 window.MouseClockOptions = {...} 也可以調整(data-* 屬性優先)
var preset = window.MouseClockOptions;
window.MouseClock = { version: '1.3.0', start: start, stop: function () { if (running) running.stop(); }, defaults: DEFAULTS };
window.MouseClock = { version: '1.3.1', start: start, stop: function () { if (running) running.stop(); }, defaults: DEFAULTS };
// 加上 data-manual 就不自動啟動,改由 MouseClock.start({...}) 啟動
if (!(current && current.dataset && current.dataset.manual !== undefined)) {