User:物灵/时钟:修订间差异
< User:物灵
小 (修复分钟数错误) |
无编辑摘要 |
||
第2行: | 第2行: | ||
<div id="spin-wrapper"> |
<div id="spin-wrapper"> |
||
<div id="spin-second-wrapper" style="transform: rotate({{#expr:(6*{{#time: xNU}}) mod 360}}deg)""><div id="spin-second"></div></div> |
<div id="spin-second-wrapper" style="transform: rotate({{#expr:(6*{{#time: xNU}}) mod 360}}deg)""><div id="spin-second"></div></div> |
||
<div id="spin-minute-wrapper" style="transform: rotate({{#expr:(({{{2|0}}}*6 + |
<div id="spin-minute-wrapper" style="transform: rotate({{#expr:(({{{2|0}}}*6 + {{#time: xNU}}/10) round 0) mod 360}}deg)"><div id="spin-minute"></div></div> |
||
<div id="spin-hour-wrapper" style="transform: rotate({{#expr:(({{{1|7}}}*30 + {{#time: xNU}}/120) round 0) mod 360}}deg)><div id="spin-hour"></div></div> |
<div id="spin-hour-wrapper" style="transform: rotate({{#expr:(({{{1|7}}}*30 + {{#time: xNU}}/120) round 0) mod 360}}deg)><div id="spin-hour"></div></div> |
||
</div> |
</div> |