Team:TU Delft/scroll calendar
From 2010.igem.org
(Difference between revisions)
Line 86: | Line 86: | ||
var el = month_elems[mo]; | var el = month_elems[mo]; | ||
$('#calview').scrollTo(el, {duration: 200} ); | $('#calview').scrollTo(el, {duration: 200} ); | ||
+ | } | ||
+ | |||
+ | function setDateClickCallback(cb) { | ||
+ | |||
} | } | ||
Line 98: | Line 102: | ||
.after('<td class="cal_btn nextmonth_btn"> > </td>'); | .after('<td class="cal_btn nextmonth_btn"> > </td>'); | ||
}); | }); | ||
+ | |||
+ | // process each day entry to change the link | ||
+ | |||
+ | // use the old calendar to find which days have a blog entry | ||
+ | $("#calview .month").each(function() { | ||
+ | var month = $.trim( $(".heading", this).text() ); | ||
+ | |||
+ | $("a", this).each(function() { | ||
+ | var day = $.trim( $(this).text() ); | ||
+ | if ($(".day-active", this).length > 0) { | ||
+ | datemap["d"+day+month] = true; | ||
+ | } | ||
+ | else { | ||
+ | $( | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
$(".prevmonth_btn").click(function() { | $(".prevmonth_btn").click(function() { | ||
if (--active_month < 0) | if (--active_month < 0) |
Revision as of 15:52, 15 September 2010
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|