Common.js
From 33C3_Public_Wiki
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: Clear the cache in Tools → Preferences
/** 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();