Difference between revisions of "MediaWiki:Common.js"

From Discordia
Jump to: navigation, search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { $('img').each(function(e) { if (($(this).height() <= 70)...")
 
(No difference)

Latest revision as of 22:20, 23 March 2020

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    $('img').each(function(e) {
        if (($(this).height() <= 70) || ($(this).width() <= 70)) {
            $(this).addClass('tinyimage');
        }
    });
});