SuperFlower (Talk | contribs) |
SuperFlower (Talk | contribs) |
||
Line 6: | Line 6: | ||
if ($(adate).length) { | if ($(adate).length) { | ||
− | n = $(adate | + | n = $(adate).innerHTML.length; |
− | if (n >= | + | if (n >= 2600) c = "5"; |
− | else if (n >= | + | //else if (n >= 1900) c = "4"; |
else if (n >= 4) c = "3"; | else if (n >= 4) c = "3"; | ||
− | else if (n >= 3) c = "2"; | + | //else if (n >= 3) c = "2"; |
− | else if (n >= 2) c = "1"; | + | //else if (n >= 2) c = "1"; |
− | else c = " | + | else c = "2"; |
$(this).addClass("day-"+c); | $(this).addClass("day-"+c); |
Revision as of 12:49, 15 June 2017