Team:TU Delft/pages/blogtest

From 2010.igem.org

(Difference between revisions)
Line 51: Line 51:
   // find the last day with a blog item
   // find the last day with a blog item
   var c=new Date();
   var c=new Date();
-
   while(c.getDate() > 1) {
+
   var addrdate=$.address.parameter('blog');
 +
  if (addrdate) {
 +
    c = $.datepicker.parseDate('d_MM_yy', addrdate);
 +
  else while(c.getDate() > 1) {
     if (datemap.hasDate(c))
     if (datemap.hasDate(c))
       break;
       break;
Line 71: Line 74:
         $(this).html(response);
         $(this).html(response);
         $("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date));
         $("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date));
-
//      <fb:comments xid="igemblogpost"></fb:comments>
 
         $("#blog_item_fbcomments").html('<fb:comments xid="igemblog' + datestr +'" numposts="10" width="450"></fb:comments>');
         $("#blog_item_fbcomments").html('<fb:comments xid="igemblog' + datestr +'" numposts="10" width="450"></fb:comments>');
         FB.XFBML.parse(document.getElementById('blog_item_fbcomments'));
         FB.XFBML.parse(document.getElementById('blog_item_fbcomments'));
Line 90: Line 92:
  // facebook initialization code
  // facebook initialization code
   window.fbAsyncInit = function() {
   window.fbAsyncInit = function() {
-
    FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true});
 
     loadBlogDate(c);
     loadBlogDate(c);
 +
    FB.init({appId: '132572820109093', status: true, cookie: true, xfbml: true});
   };
   };

Revision as of 19:58, 5 July 2010

For some reason, there needs to be an empty line at the start otherwise the wiki markup is not working correctly on the main page

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

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

Today's post