MediaWiki: Common.js

From Spire Trading Inc.
Jump to: navigation, search
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. */
$(function() {
+
jQuery( function( $ ) {
  // Sticky footer using flexbox - simple and reliable
+
   $(window).on('load', function() {
   $('body').css({
+
      $('#footer.footer-sticky').css('margin-top', '0');
    'display': 'flex',
+
      $(window).trigger('resize');
    'flex-direction': 'column',
 
    'min-height': '100vh'
 
 
   });
 
   });
  $('#footer').css('margin-top', 'auto');
 
 
});
 
});

Revision as of 18:44, 27 May 2026

/* Any JavaScript here will be loaded for all users on every page load. */
jQuery( function( $ ) {
  $(window).on('load', function() {
      $('#footer.footer-sticky').css('margin-top', '0');
      $(window).trigger('resize');
  });
});