52.403
Bearbeitungen
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 10:
var allClasses = new Object(); // associative map of class names to page elements
function createSpoilerButtons() {
var
var pattern = new RegExp("(^|\\s)jp(\\s|$)");
divDe.style.position = 'absolute'; ▼
for (i = 0;
var divDe
divDe.style.
divDe.style.right = '12px';
divDe.style.fontSize = '150%';
var span = document.createElement('span');
img.src = '/images/thumb/b/bd/Close.png/25px-Close.png'; ▼
var div2 = document.
div2.className = '_toggle de';
var divJp = document.createElement('div');
divJp.style.position = 'absolute';
divJp.style.right = '12px';
divJp.style.top = '1.8em';
divJp.style.lineHeight = '1.5em';
divJp.style.fontSize = '80%';
var div2 = document.createElement('div');
div2.className = '_toggle jp';
div2.style.display = 'none';
divJp.appendChild(div2);
var div2 = document.createElement('div');
div2.className = '_toggle jp';
div2.style.display = 'none';
var span = document.createElement('span');
span.className = '_toggler_hide-jp _toggler_show-de';
span.appendChild(document.createTextNode('Spoiler verbergen'));
div2.appendChild(span);
var img = document.createElement('img');
img.src = '/images/thumb/b/bd/Close.png/25px-Close.png';
img.style.verticalAlign = 'middle'; ▼
divJp.appendChild(div2);
document.getElementById('bodyContent').appendChild(divJp);
▲ }
▲ img.src = '/images/thumb/b/bd/Close.png/25px-Close.png';
}
▲ img.style.verticalAlign = 'middle';
▲ div2.appendChild(img);
▲ divJp.appendChild(div2);
▲ document.getElementById('bodyContent').appendChild(divJp);
}
addOnloadHook(createSpoilerButtons);
|