MediaWiki:Common.js: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
K
keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 10:
var allClasses = new Object(); // associative map of class names to page elements
function createSpoilerButtons() {
var divDeels = document.createElementgetElementsByTagName('div*');
var pattern = new RegExp("(^|\\s)jp(\\s|$)");
divDe.style.position = 'absolute';
for (i = 0; divDe.style.righti =< '12px'els.length; i++) {
divDeif ( pattern.styletest(els[i].topclassName) =) '0.8em';{
var divDe.style.lineHeight = '1document.5emcreateElement('div');
divDe.style.fontSizeposition = '150%absolute';
divDe.style.right = '12px';
var div2 = document divDe.createElement(style.top = 'div0.8em');
div2 divDe.classNamestyle.lineHeight = '_toggle de1.5em';
divDe.style.fontSize = '150%';
var span = document.createElement('span');
span.classNamevar div2 = document.createElement('_toggler_hide-de _toggler_show-jpdiv');
span div2.appendChild(document.createTextNode(className = 'Spoiler_toggle anzeigende'));
div2.appendChild(span);
var span = document.createElement('span');
var img = document span.createElement(className = 'img_toggler_hide-de _toggler_show-jp');
img.src = '/images/thumb/b/bd/Close span.png/25px-CloseappendChild(document.pngcreateTextNode('Spoiler anzeigen'));
img.style.verticalAlign = 'middle' div2.appendChild(span);
div2.appendChild(img);
divDe var img = document.appendChildcreateElement(div2'img');
img.src = '/images/thumb/b/bd/Close.png/25px-Close.png';
var div2 = document img.createElement(style.verticalAlign = 'divmiddle');
div2.className = '_toggle de' div2.appendChild(img);
div2.style.display = 'none' divDe.appendChild(div2);
divDe.appendChild(div2);
var div2 = document.getElementByIdcreateElement('bodyContentdiv').appendChild(divDe);
div2.className = '_toggle de';
divDe div2.style.positiondisplay = 'absolutenone';
div2 divDe.appendChild(imgdiv2);
document.getElementById('bodyContent').appendChild(divJpdivDe);
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 div2.appendChild(div2img);
divJp.appendChild(div2);
document.getElementById('bodyContent').appendChild(divJp);
var img = document.createElement('img')break;
}
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);

Navigationsmenü