Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
old>Realpsojed m |
old>Realpsojed |
||
Line 3: | Line 3: | ||
function resizeAllTableImages() { | function resizeAllTableImages() { | ||
const imgs = document.querySelectorAll(".image2x"); | const imgs = document.querySelectorAll(".image2x"); | ||
imgs.forEach((img) | imgs.forEach(function(img) { | ||
img.width *= 2; | img.width *= 2; | ||
img.height *= 2; | img.height *= 2; |
Revision as of 20:50, 5 April 2021
/* Any JavaScript here will be loaded for all users on every page load. */ function resizeAllTableImages() { const imgs = document.querySelectorAll(".image2x"); imgs.forEach(function(img) { img.width *= 2; img.height *= 2; }); } window.onload = function() { resizeAllTableImages(); };