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

Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{:Team:Aix-Marseille/Template-Style-and-Menu}}<html>
 
{{:Team:Aix-Marseille/Template-Style-and-Menu}}<html>
<script>
+
<script> // Unhides and colours the calendar :)
 
$(function() {
 
$(function() {
 
$(".day time").each(function(index) {
 
$(".day time").each(function(index) {
Line 8: Line 8:
 
if ($(adate).length) {
 
if ($(adate).length) {
 
n = $(adate + " > ul > li").length;
 
n = $(adate + " > ul > li").length;
if (n >= 8)     c = "5";
+
 
 +
if     (n >= 8) c = "5";
 
else if (n >= 6) 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 = "0";
+
else             c = "0";
 
 
 
$(this).addClass("day-"+c);
 
$(this).addClass("day-"+c);

Revision as of 01:36, 18 October 2016