Team:TU Delft/pages/blog
From 2010.igem.org
(Difference between revisions)
Line 58: | Line 58: | ||
return [wgUserName ? true : hasBlogItem, hasBlogItem ? 'day_with_blog' : 'day_no_blog']; | return [wgUserName ? true : hasBlogItem, hasBlogItem ? 'day_with_blog' : 'day_no_blog']; | ||
} | } | ||
+ | |||
+ | // find the last day with a blog item | ||
+ | var c=new Date(); | ||
+ | while(c.getDate() > 1) { | ||
+ | if (datemap.hasDate(c)) | ||
+ | break; | ||
+ | c.setDate(c.getDate()-1); | ||
+ | } | ||
+ | if(datemap.hasDate(c)) { | ||
+ | $("#calendar_container").datepicker("setDate", c); | ||
+ | } | ||
+ | |||
}); | }); | ||
Line 66: | Line 78: | ||
<h2><span class="mv-headline" id="blog_item_date">Today's post</span></h2> | <h2><span class="mv-headline" id="blog_item_date">Today's post</span></h2> | ||
<div id="blog_item_container"></html> | <div id="blog_item_container"></html> | ||
- | |||
<html></div> | <html></div> | ||
<div style="display:none;" id="blog_item_next"></div> | <div style="display:none;" id="blog_item_next"></div> | ||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
</html> | </html> |
Revision as of 13:47, 5 July 2010
For some reason, there needs to be an empty line at the start otherwise the wiki markup is not working correctly on the main page
Blog
Follow our progress day by day via our blog. Also don't forget to become a fan of our Facebook page or follow us on Twitter.
Calendar
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|