Difference between revisions of "Template:Aix-Marseille/Notebook"

Line 6: Line 6:
 
 
 
if ($(adate).length) {
 
if ($(adate).length) {
n = $(adate + " > ul > li").length;
+
n = $(adate).innerHTML.length;
  
if      (n >= 8) c = "5";
+
if      (n >= 2600) c = "5";
else if (n >= 6) c = "4";
+
//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 = "0";
+
else            c = "2";
 
 
 
$(this).addClass("day-"+c);
 
$(this).addClass("day-"+c);

Revision as of 12:49, 15 June 2017

June

July

August

September