Team:TU Delft/pages/blogtest
From 2010.igem.org
(Difference between revisions)
Line 51: | Line 51: | ||
// find the last day with a blog item | // find the last day with a blog item | ||
var c=new Date(); | var c=new Date(); | ||
- | while(c.getDate() > 1) { | + | var addrdate=$.address.parameter('blog'); |
+ | if (addrdate) { | ||
+ | c = $.datepicker.parseDate('d_MM_yy', addrdate); | ||
+ | else while(c.getDate() > 1) { | ||
if (datemap.hasDate(c)) | if (datemap.hasDate(c)) | ||
break; | break; | ||
Line 71: | Line 74: | ||
$(this).html(response); | $(this).html(response); | ||
$("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date)); | $("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date)); | ||
- | |||
$("#blog_item_fbcomments").html('<fb:comments xid="igemblog' + datestr +'" numposts="10" width="450"></fb:comments>'); | $("#blog_item_fbcomments").html('<fb:comments xid="igemblog' + datestr +'" numposts="10" width="450"></fb:comments>'); | ||
FB.XFBML.parse(document.getElementById('blog_item_fbcomments')); | FB.XFBML.parse(document.getElementById('blog_item_fbcomments')); | ||
Line 90: | Line 92: | ||
// facebook initialization code | // facebook initialization code | ||
window.fbAsyncInit = function() { | window.fbAsyncInit = function() { | ||
- | |||
loadBlogDate(c); | loadBlogDate(c); | ||
+ | FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true}); | ||
}; | }; | ||
Revision as of 19:58, 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
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Today's post