Team:UCLondon/Templates/Navigationv3

From 2012e.igem.org

(Difference between revisions)
Line 2: Line 2:
  <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
  <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
-
<div id="fb-root"></div>
 
   <div id="navigation">
   <div id="navigation">
Line 268: Line 267:
   </style>
   </style>
 +
<div id="fb-root"></div>
 +
<script type="text/javascript">
 +
function(d, s, id) {
 +
  var js, fjs = d.getElementsByTagName(s)[0];
 +
  if (d.getElementById(id)) return;
 +
  js = d.createElement(s); js.id = id;
 +
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
 +
  fjs.parentNode.insertBefore(js, fjs);
 +
}(document, 'script', 'facebook-jssdk'));
 +
 +
 +
-
  <script type="text/javascript">
 
       //$("#action").html( $(".left-menu > ul").children().has('a') );
       //$("#action").html( $(".left-menu > ul").children().has('a') );
Line 395: Line 405:
     loadPlaylist();
     loadPlaylist();
-
     loadLatestTweet();
+
     loadLatestTweet();      
-
 
+
-
 
+
-
function(d, s, id) {
+
-
  var js, fjs = d.getElementsByTagName(s)[0];
+
-
  if (d.getElementById(id)) return;
+
-
  js = d.createElement(s); js.id = id;
+
-
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
+
-
  fjs.parentNode.insertBefore(js, fjs);
+
-
}(document, 'script', 'facebook-jssdk'));
+
-
   
+
-
     
+
});
});

Revision as of 20:58, 15 October 2012