« MediaWiki:Common.js » : différence entre les versions

Contenu supprimé Contenu ajouté
 
Ligne 825 :
for (j = 0 ; j < UnitNode.childNodes.length ; j++ ) {
var temp = UnitNode.childNodes[j];
if (['center', 'mw-halign-center'].some(function(className) { return temp.classList.contains(className=="center"); })) { units.push(temp); }
}
var wrap;
for (j = 0 ; j < 2 ; j++) {
currentvideo=units[j];
wrap = document.createElement('div');
currentvideowrap.id="VideoSRTGroupsGr"+i+"Im"+j;
currentvideo.parentNode.insertBefore(wrap, currentvideo);
wrap.appendChild(currentvideo);
var imghead = document.createElement("div");
var link;
Ligne 843 ⟶ 847 :
var comment = document.createElement("tt");
comment.innerHTML = "("+ (j+1) + "/" + 2 + ")";
 
with(imghead) {
style.fontSize="110%";
Ligne 849 ⟶ 852 :
appendChild(link);
}
currentvideowrap.insertBefore(imghead,currentvideowrap.childNodes[0]);
if (j != 0) currentvideowrap.style.display="none";
}
}