Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 4: | Line 4: | ||
</script><script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.lavalamp.min.js"></script> | </script><script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.lavalamp.min.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | /* it's not as fancy as TU-Delft's AJAX but it does the job */ | + | /* it's not as fancy as TU-Delft's AJAX but it does the job for now */ |
$(function() { | $(function() { | ||
$(".current").removeClass("current"); | $(".current").removeClass("current"); | ||
Line 14: | Line 14: | ||
speed: 700, | speed: 700, | ||
click: function(event, obj) { | click: function(event, obj) { | ||
- | + | ||
if($("#home").length !== 0) { | if($("#home").length !== 0) { | ||
- | return | + | return true; |
- | } else { return | + | } else { |
+ | $.address.value($(obj).find('a').attr('rel')); | ||
+ | return false; } | ||
} | } | ||
}); | }); |
Revision as of 17:04, 19 July 2010