Soubor:Animated clock.svg

Obsah stránky není podporován v jiných jazycích.
Z Wikipedie, otevřené encyklopedie

Původní soubor(Animovaný soubor SVG, nominální rozměr: 800 × 800 pixelů, velikost souboru: 3 KB)

Poznámka: Kvůli technickým omezením nebudou náhledy tohoto souboru animované.

Tento obrázek je animovaný SVG soubor. Výše zobrazený náhled ve formátu .png, vytvořený programem RSVG, animovaný není a může být tedy neúplný nebo nesprávný. Chcete-li animaci vidět, otevřete si Media:Animated clock.svg. Měla by fungovat v jakémkoli moderním prohlížeči. Soubory SVG animované pomocí jazyka SMIL podporují aktuální verze Chrome, Firefoxu, Microsoft Edge, Safari i Opery. Další SVG animace naleznete v kategorii 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 | ไทย | українська | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

Popis

Popis
English: Animated clock.
Datum
Zdroj Vlastní dílo
Autor Grufo
Další verze
SVG vývoj
InfoField
 
Zdrojový kód tohoto SVG je validní.
 
Toto je upravený obrázek, což znamená, že byl oproti původní verzi digitálně změněn. Úpravy: {{{1}}}. Původní verzi je možné zhlédnout zde: Station Clock.svg.

Licence

Já, držitel autorských práv k tomuto dílu, ho tímto zveřejňuji za podmínek následující licence:
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.

Popisky

Přidejte jednořádkové vysvětlení, co tento soubor představuje

Položky vyobrazené v tomto souboru

zobrazuje

c40635232b86747568283381508ccb4110fccad3

2 935 bajt

800 pixel

800 pixel

Historie souboru

Kliknutím na datum a čas se zobrazí tehdejší verze souboru.

Datum a časNáhledRozměryUživatelKomentář
současná2. 2. 2024, 03:47Náhled verze z 2. 2. 2024, 03:47800 × 800 (3 KB)GrufoSymmetry
10. 10. 2023, 07:40Náhled verze z 10. 10. 2023, 07:40800 × 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...

Tento soubor nepoužívá žádná stránka.

Metadata