Keine Bearbeitungszusammenfassung |
zu Einführung_Wiki geändert |
||
| (12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 9: | Zeile 9: | ||
$( document ).on( 'click', '#kontakte-card', function() { | $( document ).on( 'click', '#kontakte-card', function() { | ||
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Kontakte: | window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Kontakte:Start"; | ||
} ); | } ); | ||
document. | $( document ).on( 'click', '#tutorial-card', function() { | ||
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Allgemein:Einführung_Wiki"; | |||
} ); | |||
$(function(){ | |||
$('input').blur(); | |||
}); | |||
/* 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(); | |||
Aktuelle Version vom 10. Juni 2025, 09:34 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/Kontakte:Start";
} );
$( document ).on( 'click', '#tutorial-card', function() {
window.location.href="https://klinikumsiegen.bluespice.cloud/wiki/Allgemein:Einführung_Wiki";
} );
$(function(){
$('input').blur();
});
/* 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();