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

+28 -22
View File
@@ -1,31 +1,37 @@
滑鼠立體時鐘 Mouse Clock 滑鼠立體時鐘 Mouse Clock
Original script: "Silly Clock 3" by Kurt Grigg. Original script: "Silly Clock 3" by Kurt Grigg (2002)
https://web.archive.org/web/20020310015558/http://www.btinternet.com:80/~kurt.grigg/javascript/sillyclock3.html
Traditional Chinese adaptation: 網頁建置百寶箱 JavaScript 收集區. Traditional Chinese adaptation: 網頁建置百寶箱 JavaScript 收集區.
The original clock design and algorithm remain the work of Kurt Grigg. Modifications (packaging, settings, touch support, start/stop API, editor,
Please keep the credit comment at the top of mouse-clock.js. documentation): 唐宋打油 (https://tsdylab.com/), 2026.
The modifications in this repository (packaging, settings, touch support, Terms of use
start/stop API, documentation) are released under the MIT License: ------------
MIT License This is a modified version of Kurt Grigg's script, so it follows the
original author's terms, as published on his JavaScript page
(https://web.archive.org/web/20060101022347/http://www.btinternet.com:80/~kurt.grigg/javascript/).
His terms let anyone use the scripts free of charge, on two conditions:
Copyright (c) 2026 唐宋打油 (https://tsdylab.com/) 1. Keep the credits at the top of the script intact. For this project,
keep the comment at the top of mouse-clock.js (and at the top of any
inline copy produced by the editor).
2. Do not use the script to make money in any way.
Permission is hereby granted, free of charge, to any person obtaining a copy The modifications by 唐宋打油 are offered under the same terms: free to
of this software and associated documentation files (the "Software"), to deal use, modify and share, provided the credits stay intact and the use is
in the Software without restriction, including without limitation the rights not for profit.
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all 使用條款(中文說明)
copies or substantial portions of the Software. --------------------
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 本專案改寫自 Kurt Grigg 的腳本,因此依照原作者公布的條款:
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1. 請保留腳本開頭的署名(mouse-clock.js 開頭的註解,編輯器輸出的完整內嵌版開頭也有一份)。
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2. 不能以任何方式用這個腳本營利。
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 在這兩個條件下,任何人都可以免費使用、修改、分享。唐宋打油改寫的部分也採用同樣的條款。
SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
本軟體按現狀提供,不附任何保證。
+8 -2
View File
@@ -150,8 +150,14 @@ window.MouseClockOptions = { hourColor: '#b5532f', lang: 'en' };
## 授權與致謝 ## 授權與致謝
- 原作:**Silly Clock 3**,Kurt Grigg。 - 原作:**Silly Clock 3**,Kurt Grigg。2002 年發佈,原作者網站已關閉,可以看 [Internet Archive 封存的原始頁面](https://web.archive.org/web/20020310015558/http://www.btinternet.com:80/~kurt.grigg/javascript/sillyclock3.html)。
- 中文化:網頁建置百寶箱 JavaScript 收集區(已停站)。原始碼參考自[國立臺灣海洋大學教學頁](http://squall.cs.ntou.edu.tw/Dreamweaver5/2-09MouseClockJavaScript.htm)。 - 中文化:網頁建置百寶箱 JavaScript 收集區(已停站)。原始碼參考自[國立臺灣海洋大學教學頁](http://squall.cs.ntou.edu.tw/Dreamweaver5/2-09MouseClockJavaScript.htm)。
- 改寫:唐宋打油([tsdylab.com](https://tsdylab.com/)),2026。 - 改寫:唐宋打油([tsdylab.com](https://tsdylab.com/)),2026。
改寫的部分以 MIT 授權釋出,歡迎自由使用、修改、放在任何網站(包含商業網站)。原作的時鐘設計與演算法屬於 Kurt Grigg,請保留 `mouse-clock.js` 開頭的註解,讓原作者的名字繼續被看見。詳見 [LICENSE](LICENSE)。 這是 Kurt Grigg 腳本的改寫版,所以依照[原作者公布的使用條款](https://web.archive.org/web/20060101022347/http://www.btinternet.com:80/~kurt.grigg/javascript/):
1. 任何人都可以免費使用、修改、分享。
2. 請保留 `mouse-clock.js` 開頭的署名註解(編輯器輸出的完整內嵌版開頭也有一份),讓原作者的名字繼續被看見。
3. 不能以任何方式用這個腳本營利。
唐宋打油改寫的部分也採用同樣的條款。詳見 [LICENSE](LICENSE)。
+3 -3
View File
@@ -227,11 +227,11 @@
</div> </div>
<footer> <footer>
原作:Silly Clock 3 by Kurt Grigg ・ 中文化:網頁建置百寶箱 ・ 改寫:<a href="https://tsdylab.com/">唐宋打油</a> ・ 原作:<a href="https://web.archive.org/web/20020310015558/http://www.btinternet.com:80/~kurt.grigg/javascript/sillyclock3.html">Silly Clock 3 by Kurt Grigg</a> ・ 中文化:網頁建置百寶箱 ・ 改寫:<a href="https://tsdylab.com/">唐宋打油</a> ・
<a href="https://code.tsdylab.com/tangsongdayo/mouse-clock">原始碼與授權</a> ・ <span id="ver"></span> <a href="https://code.tsdylab.com/tangsongdayo/mouse-clock">原始碼與授權</a> ・ <span id="ver"></span>
</footer> </footer>
<script src="mouse-clock.js?v=1.3.0" data-manual></script> <script src="mouse-clock.js?v=1.3.1" data-manual></script>
<script> <script>
(function () { (function () {
'use strict'; 'use strict';
@@ -450,7 +450,7 @@
$('code').value = code; $('code').value = code;
$('outNote').textContent = mode === 'tag' $('outNote').textContent = mode === 'tag'
? '只寫出跟預設不同的設定。要先下載 mouse-clock.js(按「下載」)並上傳到你的網站,再把 src 改成實際位置。' ? '只寫出跟預設不同的設定。要先下載 mouse-clock.js(按「下載」)並上傳到你的網站,再把 src 改成實際位置。'
: '整份程式加上你的設定,不用上傳檔案,直接貼進網頁或文章的 HTML 區塊。開頭的原作者署名請保留。'; : '整份程式加上你的設定,不用上傳檔案,直接貼進網頁或文章的 HTML 區塊。開頭的原作者署名請保留,也不能用來營利。';
$('download').textContent = mode === 'tag' ? '下載 mouse-clock.js' : '下載 .html 片段'; $('download').textContent = mode === 'tag' ? '下載 mouse-clock.js' : '下載 .html 片段';
$('downloadJs').hidden = mode !== 'inline'; $('downloadJs').hidden = mode !== 'inline';
} }
+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 * https://code.tsdylab.com/tangsongdayo/mouse-clock
* *
* 原作:Silly Clock 3 by Kurt Grigg * 原作:Silly Clock 3 by Kurt Grigg
* https://web.archive.org/web/20020310015558/http://www.btinternet.com:80/~kurt.grigg/javascript/sillyclock3.html
* 中文化:網頁建置百寶箱 JavaScript 收集區 * 中文化:網頁建置百寶箱 JavaScript 收集區
* 改寫:唐宋打油 https://tsdylab.com/(觸控支援、設定項、可停止) * 改寫:唐宋打油 https://tsdylab.com/(觸控支援、設定項、可停止)
* 授權說明見 LICENSE * 依原作者條款:免費使用,請保留這段署名,不可營利。詳見 LICENSE
*/ */
(function () { (function () {
'use strict'; 'use strict';
@@ -219,7 +220,7 @@
var current = document.currentScript; var current = document.currentScript;
// 1.1.0:在載入前設定 window.MouseClockOptions = {...} 也可以調整(data-* 屬性優先) // 1.1.0:在載入前設定 window.MouseClockOptions = {...} 也可以調整(data-* 屬性優先)
var preset = window.MouseClockOptions; 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({...}) 啟動 // 加上 data-manual 就不自動啟動,改由 MouseClock.start({...}) 啟動
if (!(current && current.dataset && current.dataset.manual !== undefined)) { if (!(current && current.dataset && current.dataset.manual !== undefined)) {