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

March
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
April
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
May
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
June
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
July
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
August
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
September
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
October
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
November
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30