MediaWiki:Common.js

From 36C3 Wiki
Revision as of 15:36, 30 September 2019 by Nexus (talk | contribs)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/** assings congress date information to body tag **/
function setupCalendar() {
  var bodyTag = null;
  try {
    bodyTag = document.getElementsByTagName("body")[0];
    bodyTag.year = 2019;
    bodyTag.month = 12;
    bodyTag.days = [27, 28, 29, 30];
    return bodyTag;
  } catch(e) {
    return null;
  }
}


console.log("setup calendar dates");
var body = setupCalendar();