Template:AdventCalendar2016: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
var d = new Date(); | var d = new Date(); | ||
var n = d.getDate(); | var n = d.getDate(); | ||
var | if (n > 25) { | ||
var n = '1'; | |||
} else { | |||
var num = n; | |||
} | |||
for(var i = 1; i <= num; i++) { | for(var i = 1; i <= num; i++) { | ||
$('#advent'+i).css("background", "black"); | $('#advent'+i).css("background", "black"); |
Revision as of 01:08, 1 December 2016
24 | 12 | 18 | 14 |
7 | 4 | 9 | 22 |
17 | 15 | 13 | 2 |
3 | 6 | 21 | 16 |
8 | 19 | 11 | 5 |
10 | 20 | 1 | 23 |