Team:TU Delft/Notebook/blog
From 2010.igem.org
(Difference between revisions)
Line 61: | Line 61: | ||
var datePickerLoaded = false; | var datePickerLoaded = false; | ||
+ | var bloggedDays = {}; | ||
function dbgout(msg) { | function dbgout(msg) { | ||
Line 100: | Line 101: | ||
} | } | ||
return false; | return false; | ||
+ | } | ||
+ | |||
+ | function getLastBlogDate() { | ||
+ | var cur = new Date(); | ||
+ | // find the last day with a blog item | ||
+ | while ( !bloggedDays[$.datepicker.formatDate("d_MM", cur)] ) | ||
+ | cur.setDate(cur.getDate()-1); | ||
+ | return cur; | ||
} | } | ||
Line 105: | Line 114: | ||
dbgout('blogInit'); | dbgout('blogInit'); | ||
initScrollCalendar(); | initScrollCalendar(); | ||
- | |||
- | |||
setCalendarLinks (function(day, mo, hasEntry) { | setCalendarLinks (function(day, mo, hasEntry) { | ||
Line 116: | Line 123: | ||
if (!blog_hashchange_cb()) { | if (!blog_hashchange_cb()) { | ||
- | var | + | var last = getLastBlogDate(); |
- | + | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", last) } ); | |
- | + | ||
- | + | ||
- | + | ||
- | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", | + | |
} | } | ||
Revision as of 13:04, 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