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

Line 6: Line 6:
 
 
 
if ($(adate).length) {
 
if ($(adate).length) {
n = $(adate).innerHTML.length;
+
n = $(adate + " > ul > li").length;
  
if      (n >= 2600) c = "5";
+
if      (n >= 8) c = "5";
else if (n >= 1900) c = "4";
+
else if (n >= 6) 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 = "2";
+
else            c = "0";
 
 
 
$(this).addClass("day-"+c);
 
$(this).addClass("day-"+c);
Line 73: Line 73:
 
   display: block;
 
   display: block;
 
   text-shadow: 2px 2px rgba(210,83,65,0.4);
 
   text-shadow: 2px 2px rgba(210,83,65,0.4);
   text-shadow: 2px 2px #727272;                                   *Text shadow Robin*
+
   text-shadow: 2px 2px #727272;                                   *Text shadow Robin*
 
   box-shadow: 2px 2px rgba(210,83,65,0.4);
 
   box-shadow: 2px 2px rgba(210,83,65,0.4);
   box-shadow: 2px 2px 6px #000000;                               *Robin coop Modif*
+
   box-shadow: 2px 2px 6px #000000;                             *Robin coop Modif*
 
   transition: all 50ms ease-out;
 
   transition: all 50ms ease-out;
   background-color: #b1a59b;                                     *Modif couleur*
+
   background-color: #b1a59b;                                     *Modif couleur*
 
   padding: 5px;
 
   padding: 5px;
 
   text-decoration: none;
 
   text-decoration: none;
Line 83: Line 83:
 
}
 
}
  
time.day-0 a { background-color: #169016; /*#ffeeeb*/ }
+
time.day-0 a { background-color: #003400; /*#ffeeeb*/ }
 
time.day-1 a { background-color: #004e00; /*#ffccc4*/ }
 
time.day-1 a { background-color: #004e00; /*#ffccc4*/ }
 
time.day-2 a { background-color: #006700; /*#ffa99d*/ }
 
time.day-2 a { background-color: #006700; /*#ffa99d*/ }

Revision as of 12:51, 15 June 2017

June

July

August

September