MediaWiki:Vector-2022.js: Unterschied zwischen den Versionen

Aus TerranianStar
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('DOMContentLoaded', function () {


    // Testbox erstellen
     const box = document.createElement('div');
     const box = document.createElement('div');
     box.textContent = "Vector-2022.js wird ausgeführt!";
     box.textContent = "Vector-2022.js läuft!";
     box.style.position = "fixed";
     box.style.position = "fixed";
     box.style.top = "10px";
     box.style.top = "10px";
     box.style.left = "10px";
     box.style.left = "10px";
     box.style.background = "yellow";
     box.style.background = "lime";
     box.style.color = "black";
     box.style.color = "black";
     box.style.padding = "10px";
     box.style.padding = "10px";
     box.style.border = "2px solid red";
     box.style.border = "2px solid black";
     box.style.zIndex = "99999";
     box.style.zIndex = "99999";


    // Box einfügen
     document.body.appendChild(box);
     document.body.appendChild(box);


    // Nach 5 Sekunden entfernen
     setTimeout(() => {
     setTimeout(() => {
         box.remove();
         box.remove();
     }, 5000);
     }, 5000);
});
});

Version vom 24. Mai 2026, 14:47 Uhr

document.addEventListener('DOMContentLoaded', function () {

    const box = document.createElement('div');
    box.textContent = "Vector-2022.js läuft!";
    box.style.position = "fixed";
    box.style.top = "10px";
    box.style.left = "10px";
    box.style.background = "lime";
    box.style.color = "black";
    box.style.padding = "10px";
    box.style.border = "2px solid black";
    box.style.zIndex = "99999";

    document.body.appendChild(box);

    setTimeout(() => {
        box.remove();
    }, 5000);
});