MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Fahrradmonteur
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
 +
/* unkomprimiert: mediawiki:commom-tmp.js */
 
mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/diff.js/core.js&action=raw&ctype=text/javascript"),mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/bandersnatch.js&oldid=133105645&action=raw&ctype=text/javascript"),jQuery(document).ready(function(){function a(a,b,c){return function(){return document.getElementById("ImageGroupsGr"+a+"Im"+b).style.display="none",document.getElementById("ImageGroupsGr"+a+"Im"+c).style.display="block",!1}}if(!document.URL.match(/printable/g)){var e,f,g,h,b=document.getElementsByTagName("div"),c=0,d=0;for(c=0;c<b.length;c++)if("ImageGroup"===b[c].className){for(h=void 0,f=b[c].getElementsByTagName("div"),d=0;d<f.length;d++)if("ImageGroupUnits"===f[d].className){h=f[d];break}if(void 0!==h){for(e=[],d=0;d<h.childNodes.length;d++){var i=h.childNodes[d];"center"===i.className&&e.push(i)}var j=void 0,k=void 0;for(d=0;d<e.length;d++){g=e[d],g.id="ImageGroupsGr"+c+"Im"+d;var l=document.createElement("a");void 0!==k&&l.setAttribute("title",k);var m;"string"!=typeof g.getAttribute("title")?(k=d+1+"/"+e.length,m=document.createElement("tt").appendChild(document.createTextNode("("+k+")"))):(k=g.getAttribute("title"),m=document.createElement("span").appendChild(document.createTextNode(k)),g.removeAttribute("title")),void 0!==j&&j.setAttribute("title",k);var n=document.createElement("div");j=document.createElement("a"),0!==d&&(l.href="#",l.onclick=a(c,d,d-1),l.appendChild(document.createTextNode("◀"))),d!==e.length-1&&(j.href="#",j.onclick=a(c,d,d+1),j.appendChild(document.createTextNode("▶"))),n.style.fontSize="110%",n.style.fontweight="bold",n.appendChild(l),n.appendChild(document.createTextNode(" ")),n.appendChild(m),n.appendChild(document.createTextNode(" ")),n.appendChild(j),e.length>1&&g.insertBefore(n,g.childNodes[0]),0!==d&&(g.style.display="none")}}}}});
 
mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/diff.js/core.js&action=raw&ctype=text/javascript"),mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/bandersnatch.js&oldid=133105645&action=raw&ctype=text/javascript"),jQuery(document).ready(function(){function a(a,b,c){return function(){return document.getElementById("ImageGroupsGr"+a+"Im"+b).style.display="none",document.getElementById("ImageGroupsGr"+a+"Im"+c).style.display="block",!1}}if(!document.URL.match(/printable/g)){var e,f,g,h,b=document.getElementsByTagName("div"),c=0,d=0;for(c=0;c<b.length;c++)if("ImageGroup"===b[c].className){for(h=void 0,f=b[c].getElementsByTagName("div"),d=0;d<f.length;d++)if("ImageGroupUnits"===f[d].className){h=f[d];break}if(void 0!==h){for(e=[],d=0;d<h.childNodes.length;d++){var i=h.childNodes[d];"center"===i.className&&e.push(i)}var j=void 0,k=void 0;for(d=0;d<e.length;d++){g=e[d],g.id="ImageGroupsGr"+c+"Im"+d;var l=document.createElement("a");void 0!==k&&l.setAttribute("title",k);var m;"string"!=typeof g.getAttribute("title")?(k=d+1+"/"+e.length,m=document.createElement("tt").appendChild(document.createTextNode("("+k+")"))):(k=g.getAttribute("title"),m=document.createElement("span").appendChild(document.createTextNode(k)),g.removeAttribute("title")),void 0!==j&&j.setAttribute("title",k);var n=document.createElement("div");j=document.createElement("a"),0!==d&&(l.href="#",l.onclick=a(c,d,d-1),l.appendChild(document.createTextNode("◀"))),d!==e.length-1&&(j.href="#",j.onclick=a(c,d,d+1),j.appendChild(document.createTextNode("▶"))),n.style.fontSize="110%",n.style.fontweight="bold",n.appendChild(l),n.appendChild(document.createTextNode(" ")),n.appendChild(m),n.appendChild(document.createTextNode(" ")),n.appendChild(j),e.length>1&&g.insertBefore(n,g.childNodes[0]),0!==d&&(g.style.display="none")}}}}});

Version vom 25. April 2017, 12:17 Uhr

/* unkomprimiert: mediawiki:commom-tmp.js */
mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/diff.js/core.js&action=raw&ctype=text/javascript"),mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/bandersnatch.js&oldid=133105645&action=raw&ctype=text/javascript"),jQuery(document).ready(function(){function a(a,b,c){return function(){return document.getElementById("ImageGroupsGr"+a+"Im"+b).style.display="none",document.getElementById("ImageGroupsGr"+a+"Im"+c).style.display="block",!1}}if(!document.URL.match(/printable/g)){var e,f,g,h,b=document.getElementsByTagName("div"),c=0,d=0;for(c=0;c<b.length;c++)if("ImageGroup"===b[c].className){for(h=void 0,f=b[c].getElementsByTagName("div"),d=0;d<f.length;d++)if("ImageGroupUnits"===f[d].className){h=f[d];break}if(void 0!==h){for(e=[],d=0;d<h.childNodes.length;d++){var i=h.childNodes[d];"center"===i.className&&e.push(i)}var j=void 0,k=void 0;for(d=0;d<e.length;d++){g=e[d],g.id="ImageGroupsGr"+c+"Im"+d;var l=document.createElement("a");void 0!==k&&l.setAttribute("title",k);var m;"string"!=typeof g.getAttribute("title")?(k=d+1+"/"+e.length,m=document.createElement("tt").appendChild(document.createTextNode("("+k+")"))):(k=g.getAttribute("title"),m=document.createElement("span").appendChild(document.createTextNode(k)),g.removeAttribute("title")),void 0!==j&&j.setAttribute("title",k);var n=document.createElement("div");j=document.createElement("a"),0!==d&&(l.href="#",l.onclick=a(c,d,d-1),l.appendChild(document.createTextNode("◀"))),d!==e.length-1&&(j.href="#",j.onclick=a(c,d,d+1),j.appendChild(document.createTextNode("▶"))),n.style.fontSize="110%",n.style.fontweight="bold",n.appendChild(l),n.appendChild(document.createTextNode(" ")),n.appendChild(m),n.appendChild(document.createTextNode(" ")),n.appendChild(j),e.length>1&&g.insertBefore(n,g.childNodes[0]),0!==d&&(g.style.display="none")}}}}});