m |
m |
||
Line 1,064: | Line 1,064: | ||
function showMonth(n) { | function showMonth(n) { | ||
var months = document.getElementsByClassName("month-calendar"); | var months = document.getElementsByClassName("month-calendar"); | ||
+ | |||
+ | switch (n) { | ||
+ | case 0: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | case 1: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | case 2: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | case 3: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | case 4: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | default: | ||
+ | currentSlide(1); | ||
+ | break; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
for (k = 0; k < months.length; ++k) { | for (k = 0; k < months.length; ++k) { | ||
console.log(monthNames[k] + " has " + monthNames[n] + "?: " + months[k].className); | console.log(monthNames[k] + " has " + monthNames[n] + "?: " + months[k].className); |
Revision as of 16:31, 11 August 2016
June | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | ||
July | ||||||
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
August | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 | |||
September | ||||||
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | |
October | ||||||
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |