Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 29: | Zeile 29: | ||
} else { | } else { | ||
// if it is, remove the colon | // if it is, remove the colon | ||
clockEl.innerText = time.split(':').join(" | clockEl.innerText = time.split(':').join(" "); | ||
} | } | ||
} | } | ||
Version vom 25. März 2025, 07:52 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
$( document ).on( 'click', '#hardware-card', function() {
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Hardware:Start";
} );
$( document ).on( 'click', '#software-card', function() {
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Software:Start";
} );
$( document ).on( 'click', '#kontakte-card', function() {
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Allgemein:Adressbuch";
} );
/* blinkende Uhr */
var clockEl = document.querySelector('#clock');
function getTime() {
return new Date().toLocaleTimeString('de-DE',
{ hour12: false, hour: 'numeric', minute: 'numeric' }).toString();
}
function setTime() {
var time = getTime();
// check if the colon is there
if (clockEl.innerText.split(':').length === 1) {
// if it's not, set the actual time
clockEl.innerText = time;
} else {
// if it is, remove the colon
clockEl.innerText = time.split(':').join(" ");
}
}
setInterval( setTime , 1000);
setTime();