MediaWiki:Common.js

importScript('MediaWiki:Tabberutil-Translate.js');

// We make our changes right after the DOM loads but before images and the like can be seen. $(document).ready(function { // executes when HTML-Document is loaded and DOM is ready  // This returns a month value between 0 to 11 so we add 1 to normalize it  var month = 1 + (new Date).getMonth;  // Debug output to console. We can change the month to winter (December)  // For this trick to work, we assume that the CSS for each season is grouped  // under .continent { blarg; }  // Asia Jan(1), Feb(2)  if ( month <= 2 ){    $('body').addClass('asia');  }  // Australia Mar(3), Apr(4)  else if ( month <= 4 ){    $('body').addClass('australia');  }  // Europe May(5), Jun(6)  else if ( month <= 6 ){    $('body').addClass('europe');  }  // Africa Jul(7), Aug(8)  else if ( month <= 8 ){    $('body').addClass('africa');  }  // South America Sep(9), Oct(10)  else if ( month <= 10 ){    $('body').addClass('southam');  }  // North America  else{    $('body').addClass('northam');  }  // Other code logic here });