MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Add support for not wrapping every image in a class to do nearest-neighbor resizing (class defined in Common.css)) |
(No difference)
|
Revision as of 22:00, 3 January 2018
/* Any JavaScript here will be loaded for all users on every page load. */ $(document).ready(function() { $('img').each(function(e) { if (($(this).height() <= 64) && ($(this).width() <= 64)) { $(this).addClass('tinyimage'); } }); });