Team:TU Delft/Notebook/blog
From 2010.igem.org
(Difference between revisions)
(5 intermediate revisions not shown) | |||
Line 45: | Line 45: | ||
<html> | <html> | ||
<div id="blog_item_date"></div> | <div id="blog_item_date"></div> | ||
- | <div id="blog_item_container"></div> | + | <div id="blog_item_container"> |
+ | <b><i>Are the blog posts not appearing?</i></b> Please, upgrade your browser to at least one of the following: | ||
+ | <ul> | ||
+ | <li><a href="http://www.google.com/chrome">Google Chrome 6</a></li> | ||
+ | <li><a href="http://www.opera.com/browser/">Opera 10</a></li> | ||
+ | <li><a href="http://www.getfirefox.com/">FireFox 3</a></li> | ||
+ | <li><a href="http://www.apple.com/safari/">Safari 5</a></li> | ||
+ | <li><a href="http://www.microsoft.com/windows/internet-explorer/">Internet Explorer 8</a></li> | ||
+ | </ul> | ||
+ | </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> | ||
Line 61: | Line 70: | ||
var datePickerLoaded = false; | var datePickerLoaded = false; | ||
- | |||
function dbgout(msg) { | function dbgout(msg) { | ||
Line 101: | Line 109: | ||
} | } | ||
return false; | return false; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
Line 115: | Line 114: | ||
dbgout('blogInit'); | dbgout('blogInit'); | ||
initScrollCalendar(); | initScrollCalendar(); | ||
+ | |||
+ | var bloggedDays = {}; | ||
setCalendarLinks (function(day, mo, hasEntry) { | setCalendarLinks (function(day, mo, hasEntry) { | ||
Line 124: | Line 125: | ||
if (!blog_hashchange_cb()) { | if (!blog_hashchange_cb()) { | ||
- | var | + | var cur = new Date(); |
- | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", | + | // find the last day with a blog item |
+ | while ( !bloggedDays['d' + $.datepicker.formatDate("d_MM", cur)] ) | ||
+ | cur.setDate(cur.getDate()-1); | ||
+ | |||
+ | setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", cur) } ); | ||
} | } | ||
Line 134: | Line 139: | ||
$(function() { | $(function() { | ||
loadScript('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js', function() { | loadScript('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js', function() { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
blogInit(); | blogInit(); | ||
- | |||
- | + | // facebook initialization code | |
- | + | window.fbAsyncInit = function() { | |
- | + | FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true}); | |
- | + | }; | |
- | + | ||
- | + | var e = document.createElement('script'); e.async = true; | |
- | + | e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; | |
+ | document.getElementById('fb-root').appendChild(e); | ||
}); | }); | ||
}); | }); |
Latest revision as of 12:39, 27 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
Are the blog posts not appearing? Please, upgrade your browser to at least one of the following:
Comment on this post