Team:UNITS Trieste/Template:Header
From 2011.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | if($('#access strong').length) $('#access ul li a').removeClass("current_page_item"); | + | if($('#access strong').length) |
+ | { $('#access ul li a').removeClass("current_page_item"); | ||
+ | $('#access strong').parents("li.page_item").find("a:not(ul ul a)").addClass("current_page_item"); | ||
+ | } | ||
/*$(location).attr('href'); | /*$(location).attr('href'); | ||
$('#access ul li a').click(function(){if(!$(this).hasClass("current_page_item")) { | $('#access ul li a').click(function(){if(!$(this).hasClass("current_page_item")) { | ||
Line 11: | Line 14: | ||
return false; | return false; | ||
});*/ | });*/ | ||
+ | /*animation edit menu*/ | ||
$("<img src='https://static.igem.org/mediawiki/2011/a/a6/UNITS-arrow.png'/>").appendTo('.left-menu').click(function() { | $("<img src='https://static.igem.org/mediawiki/2011/a/a6/UNITS-arrow.png'/>").appendTo('.left-menu').click(function() { | ||
if($("#top-section").css('top')=='-71px') $("#top-section").animate({top:'-50px'},500); | if($("#top-section").css('top')=='-71px') $("#top-section").animate({top:'-50px'},500); | ||
if($("#top-section").css('top')=='-50px') $("#top-section").animate({top:'-71px'},500); | if($("#top-section").css('top')=='-50px') $("#top-section").animate({top:'-71px'},500); | ||
}); | }); | ||
- | + | /*not in home?*/ | |
if(!$(".menu a:first").hasClass("current_page_item")) { | if(!$(".menu a:first").hasClass("current_page_item")) { | ||
var titolo = $('#access strong').text(); | var titolo = $('#access strong').text(); |
Revision as of 08:06, 26 August 2011
SINBIOME
... an innovative synthetic biome in which bacteria and eukaryotic cells need each other to survive!