Template:AdventCalendar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
var n = 3; | var n = 3; | ||
var number = Math.floor(Math.random()*n)-1; | var number = Math.floor(Math.random()*n)-1; | ||
if(number == "-1") { | |||
var number = 0; | |||
} | |||
$('#calendar').css("background-image", "url(http://pokeheroes.com/img/christmas/2015/adventcalendar/"+number+".png)"); | $('#calendar').css("background-image", "url(http://pokeheroes.com/img/christmas/2015/adventcalendar/"+number+".png)"); | ||
}; | }; |
Revision as of 21:34, 13 December 2015
24 | 12 | 18 | 14 |
7 | 4 | 9 | 22 |
17 | 15 | 13 | 2 |
3 | 6 | 21 | 16 |
8 | 19 | 11 | 5 |
10 (today) | 20 | 1 | 23 |