MediaWiki: Common.js

From Spire Trading Inc.
Jump to: navigation, search
Tag: Replaced
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
$(window).on('load', function() {
 
    setTimeout(function() {
 
        var $footer = $('#footer');
 
        $footer.css('margin-top', '0');
 
        var contentHeight = $footer.offset().top + $footer.outerHeight();
 
        var windowHeight = $(window).height();
 
        if (contentHeight < windowHeight) {
 
            $footer.css('margin-top', (windowHeight - contentHeight) + 'px');
 
        }
 
    }, 100);
 
});
 

Latest revision as of 18:54, 27 May 2026

/* Any JavaScript here will be loaded for all users on every page load. */