Team:TU Delft/pages/blogtest
From 2010.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
<html> | <html> | ||
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script> --> | <!-- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script> --> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 37: | Line 31: | ||
function blog_loadDate(date) { | function blog_loadDate(date) { | ||
- | + | var datestr = jQuery.datepicker.formatDate("d_MM_yy", date); | |
var url = "/Team:TU_Delft/"+datestr+"_content?action=render"; | var url = "/Team:TU_Delft/"+datestr+"_content?action=render"; | ||
- | |||
dbgout('blog_loadDate: ' + date); | dbgout('blog_loadDate: ' + date); | ||
Line 55: | Line 48: | ||
- | function blog_hashchange_cb() | + | function blog_hashchange_cb() { |
- | { | + | |
// alert('blog hash update ' + location.hash); | // alert('blog hash update ' + location.hash); | ||
Line 70: | Line 62: | ||
function blogInit() { | function blogInit() { | ||
- | |||
dbgout('blogInit'); | dbgout('blogInit'); | ||
+ | |||
+ | setCalendarLinks (function(day, mo, hasEntry) { | ||
+ | console.log('Day: ' + day + '; Mo: ' + mo + '; hasentry=' + hasEntry); | ||
+ | return '/Team:TU_Delft#page=blogtest&blog=' + day + '_' + mo + '_content'; | ||
+ | }); | ||
- | setHash('pages/blogtest', { blog: $.datepicker.formatDate("d_MM_yy", | + | setHash('pages/blogtest', { blog: $.datepicker.formatDate("d_MM_yy", new Date()) } ); |
- | + | ||
dbgout('bind hashupdate'); | dbgout('bind hashupdate'); | ||
$(window).bind('hashupdate', blog_hashchange_cb); | $(window).bind('hashupdate', blog_hashchange_cb); | ||
- | |||
- | |||
} | } | ||
Revision as of 16:12, 15 September 2010
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