Вилучено вміст Додано вміст
WikiBayer (обговорення | внесок)
ResourceLoader/Migration guide (users) mw:Special:Permalink/4989156#importScriptURI (global sysop action)
Немає опису редагування
 
Рядок 404:
function toggleImageFunction(group, remindex, shwindex) {
return function() {
document.getElementById("ImageGroupsGr" + group + "Im" + remindex).style[".display"] = "none";
document.getElementById("ImageGroupsGr" + group + "Im" + shwindex).style[".display"] = "block";
return false;
};
Рядок 414:
var units, search;
var currentimage;
var UnitNode, rightlink, commentText;
for (i = 0; i < divs.length; i++) {
if (divs[i].className !== "ImageGroup") { continue; }
Рядок 428:
for (j = 0 ; j < UnitNode.childNodes.length ; j++ ) {
var temp = UnitNode.childNodes[j];
if (temp.className ===['center', "'mw-halign-center"'].some(function(className) { unitsreturn temp.pushclassList.contains(tempclassName); })) {
units.push(temp);
}
}
var rightlink = undefinedwrap;
var commentText = undefined;
for (j = 0; j < units.length; j++) {
currentimage = units[j];
wrap = document.createElement('div');
currentimagewrap.id = "ImageGroupsGr" + i + "Im" + j;
currentimage.parentNode.insertBefore(wrap, currentimage);
wrap.appendChild(currentimage);
var leftlink = document.createElement("a");
if (commentText !== undefined) {
Рядок 454 ⟶ 458:
var imghead = document.createElement("div");
rightlink = document.createElement("a");
if (j !== 0) {
leftlink.href = "#";
leftlink.onclick = toggleImageFunction(i, j, j-1);
Рядок 464 ⟶ 468:
rightlink.appendChild(document.createTextNode("▶"));
}
imghead.style[".fontSize"] = "110%";
imghead.style[".fontweight"] = "bold";
imghead.appendChild(leftlink);
imghead.appendChild(document.createTextNode("\xA0"));
Рядок 472 ⟶ 476:
imghead.appendChild(rightlink);
if (units.length > 1) {
currentimagewrap.insertBefore(imghead,currentimagewrap.childNodes[0]);
}
if (j !== 0) {
currentimagewrap.style[".display"] = "none";
}
}