Template:Http://2013.igem.org/Team:USP-Brazil/templateUP

From 2013.igem.org

(Difference between revisions)
Line 27: Line 27:
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript">
<script type="text/javascript">
 +
document.head = document.head || document.getElementsByTagName('head')[0];
 +
 +
function changeFavicon(src) {
 +
var link = document.createElement('link'),
 +
    oldLink = document.getElementById('dynamic-favicon');
 +
link.id = 'dynamic-favicon';
 +
link.rel = 'shortcut icon';
 +
link.href = src;
 +
if (oldLink) {
 +
  document.head.removeChild(oldLink);
 +
}
 +
document.head.appendChild(link);
 +
}
 +
$(document).ready(function() {
$(document).ready(function() {
-
    var link = document.createElement('link');
+
changeFavicon('https://static.igem.org/mediawiki/2013/7/70/USPBRpichia.png');
-
    link.type = 'image/png';
+
-
    link.rel = 'shortcut icon';
+
-
    link.href = 'https://static.igem.org/mediawiki/2013/7/70/USPBRpichia.png';
+
-
    document.getElementsByTagName('head')[0].appendChild(link);
+
});
});
</script>
</script>

Revision as of 18:39, 25 September 2013