Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 12: | Zeile 12: | ||
} ); | } ); | ||
//document. | /* 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(); | |||
Version vom 25. März 2025, 07:47 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();