Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 27: | Line 27: | ||
<script type="text/javascript" src="https://2010.igem.org/Team:Groningen/files/address.js?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2010.igem.org/Team:Groningen/files/address.js?action=raw&ctype=text/javascript"></script> | ||
<script type="text/javascript" src="https://2010.igem.org/Team:Groningen/files/tweet.js?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2010.igem.org/Team:Groningen/files/tweet.js?action=raw&ctype=text/javascript"></script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 45: | Line 46: | ||
}); | }); | ||
+ | |||
+ | function updateMask(page) { | ||
+ | $("#contentWrapper").css('height', $(".textWrapper[rel='"+page+"']").css('height')); | ||
+ | } | ||
$.address.change(function (event) { | $.address.change(function (event) { | ||
Line 58: | Line 63: | ||
}, | }, | ||
{duration: 300, | {duration: 300, | ||
- | complete: | + | complete: updateMask(page); |
}); } else { | }); } else { | ||
$(".ajaxWrapper").html(""); | $(".ajaxWrapper").html(""); | ||
Line 66: | Line 71: | ||
margin = (margin * (pages.length)) * -1; | margin = (margin * (pages.length)) * -1; | ||
$(".tabslider").css("margin-left", margin + "px"); | $(".tabslider").css("margin-left", margin + "px"); | ||
+ | updateMask('ajax'); | ||
}); | }); | ||
} | } | ||
}); | }); | ||
</script> | </script> | ||
+ | |||
+ | |||
<div id="overallMask"> | <div id="overallMask"> | ||
<div id="headerWrapper"> | <div id="headerWrapper"> |
Revision as of 16:30, 25 October 2010
We believe in a better world
through synthetic biology