Team:TU Delft/Notebook/blog
From 2010.igem.org
(Difference between revisions)
Line 104: | Line 104: | ||
function blogInit() { | function blogInit() { | ||
dbgout('blogInit'); | dbgout('blogInit'); | ||
- | |||
initScrollCalendar(); | initScrollCalendar(); | ||
+ | |||
+ | var bloggedDays = {}; | ||
setCalendarLinks (function(day, mo, hasEntry) { | setCalendarLinks (function(day, mo, hasEntry) { | ||
// console.log('Day: ' + day + '; Mo: ' + mo + '; hasentry=' + hasEntry); | // console.log('Day: ' + day + '; Mo: ' + mo + '; hasentry=' + hasEntry); | ||
+ | bloggedDays['d' + day + '_' + mo] = hasEntry; | ||
+ | |||
return makeHash('Notebook/blog', { blog: day + '_' + mo + '_2010'}); | return makeHash('Notebook/blog', { blog: day + '_' + mo + '_2010'}); | ||
}); | }); | ||
- | if (!blog_hashchange_cb()) | + | if (!blog_hashchange_cb()) { |
- | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", | + | var cur = new Date(); |
+ | // find the last day with a blog item | ||
+ | while ( !bloggedDays[$.datepicker.formatDate("d_MM", cur)] ) | ||
+ | cur.setDate(cur.getDate()-1); | ||
+ | |||
+ | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", cur) } ); | ||
+ | } | ||
dbgout('bind hashupdate'); | dbgout('bind hashupdate'); |
Revision as of 12:48, 15 October 2010
|
|
|
|
|
|
|
|
|
Team Blog
During the competition we updated our blog daily. Read about our every move in and outside the lab. Instead of browsing through the calendar on the right, you can also get a quick overview of the highlights on our timeline page. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or to [http://twitter.com/igemtudelft2010 follow us on Twitter].
Blog Post
Comment on this post