MediaWiki:CampaignData.js
Jump to navigation
Jump to search
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.
$(function() { const campaignData = [ { }, { name: 'Sleeping Giants', games: [ {id: 0, date: new Date(2017, 6, 6)}, {id: 1, date: new Date(2017, 6, 6)}, {id: 2, date: new Date(2017, 6, 20)}, {id: 3, date: new Date(2017, 6, 27)}, {id: 4, date: new Date(2017, 7, 10)}, {id: 5, date: new Date(2017, 7, 18)}, {id: 6, date: new Date(2017, 8, 8)}, {id: 7, date: new Date(2017, 8, 22)}, {id: 8, date: new Date(2017, 9, 5)}, {id: 9, date: new Date(2017, 9, 19)}, {id: 10, date: new Date(2017, 10, 3)}, {id: 11, date: new Date(2017, 10, 18)}, {id: 12, date: new Date(2017, 10, 30)}, {id: 13, date: new Date(2017, 11, 14)}, {id: 14, date: new Date(2017, 11, 28)}, {id: 15, date: new Date(2017, 12, 12)}, {id: 16, date: new Date(2018, 1, 31)}, {id: 17, date: new Date(2018, 2, 6)}, {id: 18, date: new Date(2018, 2, 27)}, {id: 19, date: new Date(2018, 3, 13)}, {id: 20, date: new Date(2018, 3, 27)}, {id: 21, date: new Date(2018, 4, 8)}, {id: 22, date: new Date(2018, 4, 15)}, {id: 23, date: new Date(2018, 5, 3)}, {id: 24, date: new Date(2018, 5, 16)}, {id: 25, date: new Date(2018, 6, 12)}, {id: 26, date: new Date(2018, 6, 26)}, {id: 27, date: new Date(2018, 7, 10)}, {id: 28, date: new Date(2018, 7, 24)}, {id: 29, date: new Date(2018, 8, 7)}, {id: 30, date: new Date(2018, 8, 21)}, {id: 31, date: new Date(2018, 9, 4)}, {id: 32, date: new Date(2018, 10, 2)}, {id: 33, date: new Date(2018, 10, 16)}, {id: 34, date: new Date(2018, 10, 30)}, {id: 35, date: new Date(2018, 11, 13)}, {id: 36, date: new Date(2018, 12, 15)}, {id: 37, date: new Date(2019, 1, 12)}, {id: 38, date: new Date(2019, 2, 2)}, {id: 39, date: new Date(2019, 2, 26)}, {id: 40, date: new Date(2019, 3, 12)}, {id: 41, date: new Date(2019, 3, 26)}, {id: 42, date: new Date(2019, 4, 14)}, {id: 43, date: new Date(2019, 4, 23)}, {id: 44, date: new Date(2019, 5, 14)}, {id: 45, date: new Date(2019, 5, 21)}, {id: 46, date: new Date(2019, 6, 2)}, {id: 47, date: new Date(2019, 6, 11)}, {id: 48, date: new Date(2019, 6, 25)}, {id: 49, date: new Date(2019, 7, 2)}, {id: 50, date: new Date(2019, 7, 10)}, {id: 51, date: new Date(2019, 7, 16)}, ] } ]; for(let i = 1; i < campaignData.length; i++) { campaignData[i].games.forEach(game => { $('#' + i + '-' + game.id).text(campaignData[i].name + ', Game ' + game.id + ' (' + game.date.toDateString() + ')'); }); } }());