Difference between revisions of "Team:Tuebingen/Notebook"
Line 4: | Line 4: | ||
function init() { | function init() { | ||
− | var cal = document.getElementById('calendar'); | + | var cal = document.getElementById('calendar'); |
− | cal.style.cssText='width:630;height:200;'; | + | cal.style.cssText='width:630;height:200;'; |
− | + | ||
− | for (var w=0;w<3;w++) { | + | for (var w=0;w<3;w++) { |
− | var month = document.createElement('div'); | + | var month = document.createElement('div'); |
− | month.style.cssText = 'width:210px;height:200px;float:left;'; | + | month.style.cssText = 'width:210px;height:200px;float:left;'; |
− | for (var i=0;i<4;i++) { | + | for (var i=0;i<4;i++) { |
− | var week = document.createElement('div'); | + | var week = document.createElement('div'); |
− | week.style.cssText = 'width:210px;height:50px;'; | + | week.style.cssText = 'width:210px;height:50px;'; |
− | for (var q=0;q<7;q++) { | + | for (var q=0;q<7;q++) { |
− | var date = document.createElement('div'); | + | var date = document.createElement('div'); |
− | date.style.cssText = 'width:30px;height:30px;float:left;border:1px solid grey;'; | + | date.style.cssText = 'width:30px;height:30px;float:left;border:1px solid grey;'; |
− | + | week.appendChild(date); | |
− | + | } | |
− | week.appendChild(date); | + | month.appendChild(week); |
− | } | + | } |
− | month.appendChild(week); | + | cal.appendChild(month); |
− | } | + | } |
− | cal.appendChild(month); | + | |
− | + | ||
} | } | ||
Revision as of 01:12, 18 September 2015
![](https://static.igem.org/mediawiki/2015/b/ba/Team_Tuebingen_menu_coli_mit_lightstrahl.png)
<
>