Team:TU Delft/pages/blogtest
From 2010.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | var blogLoaded = false; | ||
function blog_loadDate(date) { | function blog_loadDate(date) { | ||
Line 50: | Line 51: | ||
{ | { | ||
// alert('blog hash update ' + location.hash); | // alert('blog hash update ' + location.hash); | ||
+ | if(!blogLoaded) | ||
+ | return; | ||
hash = location.hash.substring(1); | hash = location.hash.substring(1); | ||
Line 82: | Line 85: | ||
// find the last day with a blog item | // find the last day with a blog item | ||
var c=new Date(); | var c=new Date(); | ||
- | + | ||
var addrdate=$.address.parameter('blog'); | var addrdate=$.address.parameter('blog'); | ||
if (addrdate) { | if (addrdate) { | ||
Line 90: | Line 93: | ||
break; | break; | ||
c.setDate(c.getDate()-1); | c.setDate(c.getDate()-1); | ||
- | } | + | } |
$("#calendar_container").empty().datepicker( { | $("#calendar_container").empty().datepicker( { | ||
Line 108: | Line 111: | ||
} | } | ||
+ | return c; | ||
} | } | ||
Line 116: | Line 120: | ||
// facebook initialization code | // facebook initialization code | ||
window.fbAsyncInit = function() { | window.fbAsyncInit = function() { | ||
- | blogInit(); | + | var date=blogInit(); |
- | setHash('pages/blogtest', { blog: $.datepicker.formatDate("d_MM_yy", | + | setHash('pages/blogtest', { blog: $.datepicker.formatDate("d_MM_yy", date) } ); |
FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true}); | FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true}); | ||
}; | }; |
Revision as of 09:58, 3 August 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