Um die rechts abgebildete Analoguhr im Kurs anzuzeigen, muss in einem Textfeld im Kurs (HTML-Modus </> einschalten) folgender Code (Quelle: http://www.3quarks.com/de/SVGUhr/index.html) eingegeben werden:
</div> <canvas id="clock" width="200" height="200">Fehlermeldung</canvas> </div> <script type="text/javascript"> /*! * station-clock.js * * Copyright (c) 2010 Ruediger Appel * ludi at mac dot com * * Date: 2016-02-16 * Version: 1.0.1 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Known Issues: * * Shadows for some second hands is not on one layer * * Thanks to Paul Schröfl for the Wiener Würfeluhr */
// get current time var time = new Date(); var millis = time.getMilliseconds() / 1000.0; var seconds = time.getSeconds(); var minutes = time.getMinutes(); var hours = time.getHours() + this.hourOffset;