Team:TU Delft/Notebook/blog

From 2010.igem.org

(Difference between revisions)
Line 61: Line 61:
var datePickerLoaded = false;
var datePickerLoaded = false;
 +
var bloggedDays = {};
function dbgout(msg) {
function dbgout(msg) {
Line 100: Line 101:
   }
   }
   return false;
   return false;
 +
}
 +
 +
function getLastBlogDate() {
 +
  var cur = new Date();
 +
  // find the last day with a blog item
 +
  while ( !bloggedDays[$.datepicker.formatDate("d_MM", cur)] )
 +
    cur.setDate(cur.getDate()-1);
 +
  return cur;
}
}
Line 105: Line 114:
   dbgout('blogInit');
   dbgout('blogInit');
   initScrollCalendar();
   initScrollCalendar();
-
 
-
  var bloggedDays = {};
 
   setCalendarLinks (function(day, mo, hasEntry) {
   setCalendarLinks (function(day, mo, hasEntry) {
Line 116: Line 123:
   if (!blog_hashchange_cb()) {
   if (!blog_hashchange_cb()) {
-
     var cur = new Date();
+
     var last = getLastBlogDate();
-
    // find the last day with a blog item
+
     setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", last) } );
-
    while ( !bloggedDays[$.datepicker.formatDate("d_MM", cur)] )
+
-
      cur.setDate(cur.getDate()-1);
+
-
 
+
-
     setHash('Notebook/blog', { blog: $.datepicker.formatDate("d_MM_yy", cur) } );
+
   }
   }

Revision as of 13:04, 15 October 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

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 Facebook page or to follow us on Twitter.

Blog Post

Comment on this post