Team:UNITS Trieste/Template:Header
From 2011.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
/*manage menu actual page*/ | /*manage menu actual page*/ | ||
if($('#access strong').length) | 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"); | |
- | + | if($('.current_page_item').length>0||$('#access strong').length>1) { | |
+ | var subm = $('#access strong').parents("ul.children").find("li.page_item"); | ||
+ | subm.each(function(index, item) { | ||
+ | var is_last_item = (index == (subm.length - 1)); | ||
+ | }); | ||
$('#submenu').css('display','block'); | $('#submenu').css('display','block'); | ||
- | + | } | |
+ | } | ||
/*animation edit menu*/ | /*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() { | ||
Line 59: | Line 64: | ||
<li class="page_item">[[Team:UNITS_Trieste/Attributions|Attributions]]</li> | <li class="page_item">[[Team:UNITS_Trieste/Attributions|Attributions]]</li> | ||
</ul></div> | </ul></div> | ||
- | + | <div id="submenu"> | |
+ | </div> | ||
</div><!-- .wrapper --> | </div><!-- .wrapper --> | ||
</div><!-- #access --> | </div><!-- #access --> |
Revision as of 11:34, 26 August 2011
SINBIOME
... an innovative synthetic biome in which bacteria and eukaryotic cells need each other to survive!