Line 23: | Line 23: | ||
$("button").removeClass("active"); | $("button").removeClass("active"); | ||
+ | if(selector == 1){ | ||
+ | activeContent = 'I'; | ||
+ | inactiveJuly = [10, 12, 19]; | ||
+ | inactiveAugust = [11, 14, 29]; | ||
+ | inactiveSeptember = [15, 16, 19]; | ||
+ | } | ||
+ | else if(selector == 2){ | ||
+ | activeContent = 'R'; | ||
+ | inactiveJuly = [10, 12, 19]; | ||
+ | inactiveAugust = [11, 14, 29]; | ||
+ | inactiveSeptember = [15, 16, 19]; | ||
+ | } | ||
+ | else if(selector == 3){ | ||
+ | activeContent = 'B'; | ||
+ | inactiveJuly = [10, 12, 19]; | ||
+ | inactiveAugust = [11, 14, 29]; | ||
+ | inactiveSeptember = [15, 16, 19]; | ||
+ | } | ||
+ | else if(selector == 4){ | ||
+ | activeContent = 'M'; | ||
+ | inactiveJuly = [10, 12, 19]; | ||
+ | inactiveAugust = [11, 14, 29]; | ||
+ | inactiveSeptember = [15, 16, 19]; | ||
+ | } | ||
+ | |||
// Show the current tab, and add an "active" class to the button that opened the tab | // Show the current tab, and add an "active" class to the button that opened the tab | ||
− | $("# | + | $("#monthHeader"+ activeContent).show(); |
− | $("# | + | $("#tab"+activeContent).addClass("active"); |
createMonth(31, 4, inactiveJuly, 'J'); | createMonth(31, 4, inactiveJuly, 'J'); | ||
} | } |
Revision as of 17:29, 6 October 2018
NOTEBOOK
❯
July
❮
❯
August
❮
September
❯
July
❮
❯
August
❮
September
❯
July
❮
❯
August
❮
September
❯
July
❮
❯
August
❮
September
Mo
Tu
We
Th
Fr
Sa
Su
ksjdfljslfkdjlkghjfglhkjflhgkjflhgjflghjflghkjflhj
lskdfjslkjgdlkdfjgldkjlakmflsvmclkxmfklmgdmlkcvmblcmkb
ksjdfljslfkdjlkghjfglhkjflhgkjflhgjflghjflghkjflhj
lskdfjslkjgdlkdfjgldkjlakmflsvmclkxmfklmgdmlkcvmblcmkb
ksjdfljslfkdjlkghjfglhkjflhgkjflhgjflghjflghkjflhj
lskdfjslkjgdlkdfjgldkjlakmflsvmclkxmfklmgdmlkcvmblcmkb
ksjdfljslfkdjlkghjfglhkjflhgkjflhgjflghjflghkjflhj
lskdfjslkjgdlkdfjgldkjlakmflsvmclkxmfklmgdmlkcvmblcmkb