Difference between revisions of "Team:ETH Zurich/Notebook"

m
m
Line 11: Line 11:
 
showOtherMonths:true,
 
showOtherMonths:true,
 
onSelect: function(dateText,inst) {
 
onSelect: function(dateText,inst) {
 +
 +
var re = new RegExp([dateText,"[^\n]*"].join(""));
 +
var toShow = text.match(re);
 +
if (toShow == null) {
 
document.getElementById('notes').innerHTML = "You have selected the fine day of ";
 
document.getElementById('notes').innerHTML = "You have selected the fine day of ";
 
document.getElementById('notes').innerHTML += dateText;
 
document.getElementById('notes').innerHTML += dateText;
 
document.getElementById('notes').innerHTML += ". Oh dear...the notes for that day seem to have run away and we can't find them. :(";
 
document.getElementById('notes').innerHTML += ". Oh dear...the notes for that day seem to have run away and we can't find them. :(";
 +
} else {
 +
document.getElementById('notes').innerHTML += toShow;
 +
}
  
var re = new RegExp([dateText,"[^\n]*"].join(""));
 
document.getElementById('notes').innerHTML += text.match(re);
 
 
}
 
}
 
});
 
});

Revision as of 14:00, 24 July 2015

"What I cannot create I do not understand."
- Richard Feynmann

Notebook

Select a day to see what our lab did that day.