Team:TU Delft/pages/blogtest

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<noinclude>
+
<html>
-
__NOTOC__
+
<script type="text/javascript" src="http://dl.dropbox.com/u/602630/jquery_address.js"></script>
-
{{:Team:TU_Delft/header}}
+
</html>
-
</noinclude>
+
<br>
==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 33: Line 33:
<script type="text/javascript">
<script type="text/javascript">
$(function() {
$(function() {
-
 
   var datemap = {
   var datemap = {
     hasDate: function(d) {
     hasDate: function(d) {
Line 82: Line 81:
       $("#blog_item_container").fadeOut(200).queue(function(next) {
       $("#blog_item_container").fadeOut(200).queue(function(next) {
         $(this).html(response);
         $(this).html(response);
 +
        var refURL = "https://2010.igem.org/Team:TU_Delft#/blog?blog=" + datestr;
         $("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date));
         $("#blog_item_date").text(jQuery.datepicker.formatDate("d MM yy", date));
-
         $("#blog_item_fbcomments").html('<fb:comments xid="igemblog' + datestr +'" numposts="10" width="450"></fb:comments>');
+
         $("#blog_item_fbcomments").html('<fb:comments url="' + refURL + '" 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'));
         next();
         next();
Line 100: Line 100:
   }
   }
 +
  if (jQuery.support.boxModel) {
  // facebook initialization code
  // facebook initialization code
   window.fbAsyncInit = function() {
   window.fbAsyncInit = function() {
Line 109: Line 110:
   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);
-
 
+
  } else {
 +
    $("#blog_item_fbcomments").text("Facebook comments unsupported on this browser.");
 +
  }
});
});
</script>
</script>
</html>
</html>

Revision as of 14:56, 20 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