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>(function(d, s, id) { | + | <script> |
+ | $(document).ready(function(event) { | ||
+ | (function(d, s, id) { | ||
var js, fjs = d.getElementsByTagName(s)[0]; | var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) return; | if (d.getElementById(id)) return; | ||
Line 9: | Line 11: | ||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | ||
fjs.parentNode.insertBefore(js, fjs); | fjs.parentNode.insertBefore(js, fjs); | ||
- | }(document, 'script', 'facebook-jssdk'));</script> | + | }(document, 'script', 'facebook-jssdk')); |
+ | }); | ||
+ | </script> | ||
<div id="navigation"> | <div id="navigation"> |
Revision as of 20:54, 15 October 2012