MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus BBS Wiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* Print-Logo | /* Print-Logo für alle Druckseiten (Timeless Skin) */ | ||
(function () { | (function () { | ||
var logoUrl = 'https://wiki.demo.lara-cloud.de/images/flexiskin-images-logo.png'; | var logoUrl = 'https://wiki.demo.lara-cloud.de/images/flexiskin-images-logo.png'; | ||
function insertPrintLogo() { | function insertPrintLogo() { | ||
if (document.getElementById('mw-printlogo')) return; | if (document.getElementById('mw-printlogo')) return; | ||
var | var body = document.body; | ||
var img = document.createElement('img'); | var img = document.createElement('img'); | ||
img.id = 'mw-printlogo'; | img.id = 'mw-printlogo'; | ||
img.src = logoUrl; | img.src = logoUrl; | ||
img.alt = 'Logo'; | img.alt = 'Logo'; | ||
body.insertBefore(img, body.firstChild); | |||
} | } | ||
window.addEventListener('beforeprint', insertPrintLogo); | window.addEventListener('beforeprint', insertPrintLogo); | ||
})(); | })(); | ||
Version vom 1. Oktober 2025, 12:01 Uhr
/* Print-Logo für alle Druckseiten (Timeless Skin) */
(function () {
var logoUrl = 'https://wiki.demo.lara-cloud.de/images/flexiskin-images-logo.png';
function insertPrintLogo() {
if (document.getElementById('mw-printlogo')) return;
var body = document.body;
var img = document.createElement('img');
img.id = 'mw-printlogo';
img.src = logoUrl;
img.alt = 'Logo';
body.insertBefore(img, body.firstChild);
}
window.addEventListener('beforeprint', insertPrintLogo);
})();
