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

Line 30: Line 30:
 
             var re = new RegExp(dateText + ".*?(?=<\/p>)");
 
             var re = new RegExp(dateText + ".*?(?=<\/p>)");
 
             var toShow = notes.match(re);
 
             var toShow = notes.match(re);
             if (toShow == null) {
+
             notePad.innerHTML = (toShow == null) ? dateText : toShow;
                notePad.innerHTML = dateText;
+
            } else {
+
                notePad.innerHTML = toShow;
+
            }
+
 
         }
 
         }
 
     });
 
     });

Revision as of 07:04, 29 August 2015

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

Notebook

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