Team:TU Delft/pages/blog
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | <noinclude> | + | <noinclude> |
+ | __NOTOC__ | ||
+ | {{:Team:TU_Delft/header}} | ||
+ | </noinclude> | ||
==Blog== | ==Blog== | ||
Follow our progress day by day via our blog. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or [http://twitter.com/igemtudelft2010 follow us on Twitter]. | Follow our progress day by day via our blog. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or [http://twitter.com/igemtudelft2010 follow us on Twitter]. | ||
Line 5: | Line 8: | ||
==Calendar== | ==Calendar== | ||
<html> | <html> | ||
- | <div id="calendar_container" style="width: | + | <div id="calendar_container" style="width: 300px; float: right;"></html> |
{{:Team:TU_Delft/basic_calendar}} | {{:Team:TU_Delft/basic_calendar}} | ||
<html></div> | <html></div> | ||
Line 30: | Line 33: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
+ | |||
var datemap = { | var datemap = { | ||
hasDate: function(d) { | hasDate: function(d) { | ||
Line 51: | Line 55: | ||
// 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 61: | Line 68: | ||
beforeShowDay: dp_getDateInfo, | beforeShowDay: dp_getDateInfo, | ||
defaultDate: c | defaultDate: c | ||
+ | }); | ||
+ | |||
+ | $.address.change(function(d) { | ||
+ | if (d.parameters.blog) | ||
+ | loadBlogDate($.datepicker.parseDate('d_MM_yy', d.parameters.blog)); | ||
}); | }); | ||
Line 71: | Line 83: | ||
$(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 81: | Line 92: | ||
function dp_onSelect(dateText, inst) { | function dp_onSelect(dateText, inst) { | ||
var date = $(this).datepicker("getDate"); | var date = $(this).datepicker("getDate"); | ||
- | + | $.address.parameter('blog',$.datepicker.formatDate("d_MM_yy", date)); | |
} | } | ||
+ | |||
function dp_getDateInfo(date) { | function dp_getDateInfo(date) { | ||
var hasBlogItem = datemap.hasDate(date); | var hasBlogItem = datemap.hasDate(date); | ||
Line 90: | Line 102: | ||
// 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}); | ||
}; | }; | ||
Line 97: | Line 109: | ||
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; | e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; | ||
document.getElementById('fb-root').appendChild(e); | document.getElementById('fb-root').appendChild(e); | ||
+ | |||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 20:24, 5 July 2010
Blog
Follow our progress day by day via our blog. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or [http://twitter.com/igemtudelft2010 follow us on Twitter].
Calendar
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Today's post