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; | ||
+ | } | ||
− | |||
− | |||
} | } | ||
}); | }); |
Revision as of 14:00, 24 July 2015
- Project
- Modeling
- Lab
- Human
Practices - Parts
- About Us