Difference between revisions of "Team:Tuebingen/Notebook"
Line 24: | Line 24: | ||
week.onmouseout = function() {if (this.id != 'calWeek'+currentDia) this.style.backgroundColor = 'transparent';}; | week.onmouseout = function() {if (this.id != 'calWeek'+currentDia) this.style.backgroundColor = 'transparent';}; | ||
week.id = 'calWeek'+(w*4+i); | week.id = 'calWeek'+(w*4+i); | ||
+ | week.num = (w*4+i); | ||
for (var q=0;q<7;q++) { | for (var q=0;q<7;q++) { | ||
var date = document.createElement('div'); | var date = document.createElement('div'); | ||
Line 32: | Line 33: | ||
count++; | count++; | ||
week.appendChild(date); | week.appendChild(date); | ||
− | week.onclick = function() {}; | + | week.onclick = function() {diashow(currentDia-this.num);}; |
} | } | ||
month.appendChild(week); | month.appendChild(week); |
Revision as of 10:32, 18 September 2015
<
>
week1
week2