Jump to content

"МедиаВики:Common.js"-ны өөр хувилбарууд

no edit summary
No edit summary
No edit summary
15-р мөр: 15-р мөр:
var thumbs = document.querySelectorAll(".thumbinner");
var thumbs = document.querySelectorAll(".thumbinner");
console.log(thumbs);
console.log(thumbs);
thumbs.forEach(function(thumb) {thumb.style.height = thumb.querySelector("img").height || 200 + "px"});
for (var i = 0; i < thumbs.length; i++){
thumbs[i].style.height = thumbs[i].querySelector("img").height || 200 + "px"}
}


             var scroll = function(q) {
             var scroll = function(q) {