Team:UCLondon/Templates/Navigationv3

From 2012e.igem.org

(Difference between revisions)
Line 3: Line 3:
  <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="fb-root"></div>
-
<script>
 
-
$(document).ready(function(event) {
 
-
(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>
 
   <div id="navigation">
   <div id="navigation">
Line 407: Line 396:
     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:57, 15 October 2012