Difference between revisions of "MediaWiki:Common.js"

From 34C3_Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 14:49, 25 October 2017

/** assings congress date information to body tag **/
function setupCalendar() {
  var bodyTag = null;
  try {
    bodyTag = document.getElementsByTagName("body")[0];
    bodyTag.year = 2016;
    bodyTag.month = 12;
    bodyTag.days = [27, 28, 29, 30];
    return bodyTag;
  } catch(e) {
    return null;
  }
}

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