Difference between revisions of "Team:NCHU Taichung/notebook"

Line 46: Line 46:
 
       while (day <= month_length) {
 
       while (day <= month_length) {
 
         document.write("<div class='c-cal__row'>");
 
         document.write("<div class='c-cal__row'>");
         for (var i = 1; i <= 7 && day <= month_length; i++) {
+
         for (var i = 1; (i <= 7) && (day <= month_length); i++) {
           if (day >= 1 && day <= 9) {
+
           if ((day >= 1) && (day <= 9)) {
 
             document.write("<div data-day='2018-" + indexMonth + "-0" + day + "'class='c-cal__cel'><p>" + day + "</p></div>");
 
             document.write("<div data-day='2018-" + indexMonth + "-0" + day + "'class='c-cal__cel'><p>" + day + "</p></div>");
 
             day++;
 
             day++;

Revision as of 13:02, 17 October 2018

NCHU_Taichung

Click on the date cell to see daily event :)

JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER OCTOBER NOVEMBER DECEMBER
2018