MediaWiki:Common.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 10:
var allClasses = new Object(); // associative map of class names to page elements
 
function createSpoilerButtons() {
var divDe = document.createElement('div');
divDe.style.position = 'absolute;
divDe.style.right = '12px';
divDe.style.top = '0.8em';
divDe.style.lineHeight = '1.5em';
divDe.style.fontSize = '150%';
var div2 = document.createElement('div');
div2.className = '_toggle de';
var span = document.createElement('span');
span.className = '_toggler_hide-de _toggler_show-jp';
span.appendChild(document.createTextNode('Spoiler anzeigen'));
div2.appendChild(span);
var img = document.createElement('img');
img.src = '/images/thumb/b/bd/Close.png/25px-Close.png';
img.style.verticalAlign = 'middle';
div2.appendChild(img);
divDe.appendChild(div2);
var div2 = document.createElement('div');
div2.className = '_toggle de';
div2.style.display = 'none';
divDe.appendChild(div2);
document.getElementById('bodyContent').appendChild(divDe);
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';
div2.appendChild(img);
divJp.appendChild(div2);
document.getElementById('bodyContent').appendChild(divJp);
}
addOnloadHook(createSpoilerButtons);
function toggler(id)
{

Navigationsmenü