Difference between revisions of "Team:Tuebingen/Notebook"

Line 4: Line 4:
  
 
function init() {
 
function init() {
console.log('hello');
+
var cal = document.getElementById('calendar');
 +
cal.style.cssText='width:630;height:200;';
 +
 
 +
for (var w=0;w<3;w++) {
 +
var month = document.createElement('div');
 +
week.style.cssText = 'width:210px;height:200px;float:left;';
 +
for (var i=0;i<4;i++) {
 +
var week = document.createElement('div');
 +
week.style.cssText = 'width:210px;height:50px;';
 +
for (var q=0;q<7;q++) {
 +
var date = document.createElement('div');
 +
date.style.cssText = 'width:30px;height:30px;float:left;border:1px solid grey;';
 +
 
 +
}
 +
week.appendChild(date);
 +
}
 +
month.appendChild(week);
 +
}
 +
cal.appendChild(month);
 +
 
 
}
 
}
  

Revision as of 01:07, 18 September 2015

<
>