原始文件(动画SVG文件,尺寸为800 × 800像素,文件大小:3 KB)

注意:由于技术限制,该文件的缩略图无法进行动画处理。


本图片是一个SVG动画文件。上述.png预览图像是用RSVG生成的,其用于维基媒体网站,但不能显示动画,而且可能图像会不完整或存在错误。要看到动画,请打开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的源代码为有效代码.
 
这是一张修改过的图片,这意味着它已在原版本的基础上通过软件进行了编辑。其原始版本为: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.

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描绘内容

创作作者 简体中文(已转写)

某些值没有维基数据项目

作者姓名字符串 简体中文(已转写):​Grufo
维基媒体用户名 简体中文(已转写):​Grufo

版权状态 简体中文(已转写)

版权所有 简体中文(已转写)

媒体类型 简体中文(已转写)

image/svg+xml

校验和 简体中文(已转写)

c40635232b86747568283381508ccb4110fccad3

断定方法:​SHA-1 简体中文(已转写)

数据大小 简体中文(已转写)

2,935 字节

800 像素

800 像素

文件来源 简体中文(已转写)

上传者的原创作品 简体中文(已转写)

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2024年2月2日 (五) 01:472024年2月2日 (五) 01:47版本的缩略图800 × 800(3 KB)GrufoSymmetry
2023年10月10日 (二) 05:402023年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...

没有页面使用本文件。

元数据