跳至內容

File:Animated clock.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(SVG 動畫檔案,表面大小:800 × 800 像素,檔案大小:3 KB)

注意:由於技術限制,此檔案縮圖無動畫效果。


本圖像是一個SVG動畫。本動畫使用SMIL語言。RSVG建立的,用於維基媒體網站的.png預覽圖像不能顯示動畫,而且圖像可能會殘缺不全或出現錯誤。要看到動畫,請開啟media:Animated clock.svg。這應該在現代瀏覽器或閱覽器中工作。最新版本的ChromeFirefoxMicrosoft EdgeSafariOpera均支援基於SMIL的SVG動畫。 其他SVG動畫檔案可在Category:Animated SVG files找到。

Templates:Animated SVG/I18n
العربية  Boarisch  বাংলা  català  čeština  Deutsch  Deutsch (Sie-Form)  English  español  فارسی  suomi  français  galego  עברית  हिन्दी  magyar  հայերեն  íslenska  italiano  日本語  한국어  lietuvių  македонски  മലയാളം  Plattdüütsch  Nederlands  occitan  português  português do Brasil  русский  sicilianu  slovenščina  svenska  தமிழ்  ไทย  українська  中文  中文(简体)  中文(繁體)  +/−

摘要

描述
English: Animated clock.
日期
來源 自己的作品
作者 Grufo
其他版本
SVG開發
InfoField
 
SVG檔案的原始碼通過W3C驗證
 
這是一張修飾過的圖片,即本圖片是用軟體修改過後的版本。原版圖片來源:Station Clock.svg

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
GNU head This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Synchronizing the clock with the current time

It is possible to synchronize the animation with the current local time by adding the following code at the end of the SVG file (before the final </svg> tag):

<script>
	var oDate = new Date(), nHours = oDate.getHours() % 12, nMinutes = oDate.getMinutes(), nSeconds = oDate.getSeconds();

	document.querySelector('.clock-second-hand').setAttribute('transform', 'rotate(' + (nSeconds * 6) + ', 400, 400)');
	document.querySelector('.clock-minute-hand').setAttribute('transform', 'rotate(' + (nMinutes * 6 + nSeconds / 10) + ', 400, 400)');
	document.querySelector('.clock-hour-hand').setAttribute('transform', 'rotate(' + (nHours * 30 + nMinutes / 2 + nSeconds / 120) + ', 400, 400)');
</script>

Currently Wikimedia Commons does not allow SVG files that contain scripts.

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

image/svg+xml

c40635232b86747568283381508ccb4110fccad3

斷定方法:​SHA-1 中文 (已轉換拼寫)

2,935 位元組

800 像素

800 像素

檔案來源 Chinese (Taiwan) (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2024年2月2日 (五) 01:47於 2024年2月2日 (五) 01:47 版本的縮圖800 × 800(3 KB)GrufoSymmetry
2023年10月10日 (二) 05:40於 2023年10月10日 (二) 05:40 版本的縮圖800 × 800(3 KB)Grufo=={{int:filedesc}}== {{Information |description={{en|1=Animated clock.}} |date=2023-10-10 |source={{own}} |author=Grufo |permission= |other versions=<gallery> Station Clock.svg|Static version </gallery> }} =={{int:license-header}}== {{LGPLv3}} == Synchronizing the clock with the current time == It is possible to synchronize the animation with the current local time by adding the following code at the end of the SVG file (before the <code></svg></code> tag at the end of...

沒有使用此檔案的頁面。

詮釋資料