Team:TU Delft/pages/blog

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<noinclude>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</noinclude>
+
<noinclude>
 +
__NOTOC__
 +
{{:Team:TU_Delft/header}}
 +
</noinclude>
==Blog==
==Blog==
Follow our progress day by day via our blog. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or [http://twitter.com/igemtudelft2010 follow us on Twitter].
Follow our progress day by day via our blog. Also don't forget to become a fan of our [http://tiny.cc/igemtudelft Facebook page] or [http://twitter.com/igemtudelft2010 follow us on Twitter].
Line 5: Line 8:
==Calendar==
==Calendar==
<html>
<html>
-
<div id="calendar_container" style="width: 250px; float: right;"></html>
+
<div id="calendar_container" style="width: 300px; float: right;"></html>
{{:Team:TU_Delft/basic_calendar}}
{{:Team:TU_Delft/basic_calendar}}
<html></div>
<html></div>
Line 30: Line 33:
<script type="text/javascript">
<script type="text/javascript">
$(function() {
$(function() {
 +
   var datemap = {
   var datemap = {
     hasDate: function(d) {
     hasDate: function(d) {
Line 51: Line 55:
   // 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 61: Line 68:
     beforeShowDay: dp_getDateInfo,
     beforeShowDay: dp_getDateInfo,
     defaultDate: c
     defaultDate: c
 +
  });
 +
 +
  $.address.change(function(d) {
 +
    if (d.parameters.blog)
 +
      loadBlogDate($.datepicker.parseDate('d_MM_yy', d.parameters.blog));
   });
   });
Line 71: Line 83:
         $(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 81: Line 92:
   function dp_onSelect(dateText, inst) {
   function dp_onSelect(dateText, inst) {
     var date = $(this).datepicker("getDate");
     var date = $(this).datepicker("getDate");
-
     loadBlogDate(date);
+
     $.address.parameter('blog',$.datepicker.formatDate("d_MM_yy", date));
   }
   }
 +
   function dp_getDateInfo(date) {
   function dp_getDateInfo(date) {
     var hasBlogItem = datemap.hasDate(date);
     var hasBlogItem = datemap.hasDate(date);
Line 90: Line 102:
  // 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});
   };
   };
Line 97: Line 109:
   e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
   e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
   document.getElementById('fb-root').appendChild(e);
   document.getElementById('fb-root').appendChild(e);
 +
});
});
</script>
</script>
</html>
</html>

Revision as of 20:24, 5 July 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

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