Team:UNITS Trieste/Template:Header
From 2011.igem.org
(Difference between revisions)
(32 intermediate revisions not shown) | |||
Line 8: | Line 8: | ||
{ $('#access ul li a').removeClass("current_page_item"); | { $('#access ul li a').removeClass("current_page_item"); | ||
$('#access strong').parents("li.page_item").find("a:not(ul ul a)").addClass("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> | + | if($('.current_page_item').length>0||$('#access strong').parent("li.page_item").children("ul.children").length>0) { |
//var subm = $('#access strong').parents("ul.children").find("li.page_item"); | //var subm = $('#access strong').parents("ul.children").find("li.page_item"); | ||
/*manage submenu actual page*/ | /*manage submenu actual page*/ | ||
var destination = $('#submenu'); | var destination = $('#submenu'); | ||
- | var subm = $('#access strong'). | + | var subm = $('#access strong').parent("li.page_item").children("ul.children").find("li.page_item"); |
$.each( subm, function( intIndex, objValue ){ | $.each( subm, function( intIndex, objValue ){ | ||
var linkm = objValue.firstChild; | var linkm = objValue.firstChild; | ||
if(linkm.nodeName=="STRONG") linkm = $(location).attr('href'); | if(linkm.nodeName=="STRONG") linkm = $(location).attr('href'); | ||
- | destination.append($( "<span onclick=\"$(location).attr('href','"+linkm+"');\" onmouseover=\"$(this).animate({'paddingTop':'80px'},'slow');\" onmouseout=\"$(this).animate({'paddingTop':'0px'},'fast');\" >" + objValue.firstChild.innerHTML + "</span>" )); | + | destination.append($( "<span class=\"submenu_figlio"+intIndex+"\" onclick=\"$(location).attr('href','"+linkm+"');\" onmouseover=\"$(this).animate({'paddingTop':'80px'},'slow');\" onmouseout=\"$(this).animate({'paddingTop':'0px'},'fast');\" >" + objValue.firstChild.innerHTML + "</span>" )); |
}); | }); | ||
$('#submenu').css('display','block'); | $('#submenu').css('display','block'); | ||
Line 26: | Line 26: | ||
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? | + | /*not in home? (da abilitare in caso di #header integrato in questo file) |
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(); | ||
Line 34: | Line 34: | ||
$("#site-title").addClass(titolo).css("width","699px"); | $("#site-title").addClass(titolo).css("width","699px"); | ||
} | } | ||
+ | */ | ||
}); | }); | ||
</script> | </script> | ||
Line 46: | Line 47: | ||
<li class="page_item">[[Team:UNITS_Trieste/Team|Team]] | <li class="page_item">[[Team:UNITS_Trieste/Team|Team]] | ||
<ul class="children"> | <ul class="children"> | ||
- | <li class="page_item">[[Team:UNITS_Trieste/Team|Overview]]</li> | + | <li class="page_item">[[Team:UNITS_Trieste/Team#overview|Overview]]</li> |
- | <li class="page_item">[[Team:UNITS_Trieste/ | + | <li class="page_item">[[Team:UNITS_Trieste/Team#location|Location]]</li> |
- | <li class="page_item">[[Team:UNITS_Trieste/ | + | <li class="page_item">[[Team:UNITS_Trieste/Team#press|Press]]</li> |
</ul> | </ul> | ||
<html><!-- a href="https://igem.org/Team.cgi?year=2011&team_name=UNITS_Trieste" title="Profile">Profile</a --></html> | <html><!-- a href="https://igem.org/Team.cgi?year=2011&team_name=UNITS_Trieste" title="Profile">Profile</a --></html> | ||
Line 56: | Line 57: | ||
<ul class="children"> | <ul class="children"> | ||
<li class="page_item">[[Team:UNITS_Trieste/Project#overview|Overview]]</li> | <li class="page_item">[[Team:UNITS_Trieste/Project#overview|Overview]]</li> | ||
- | <li class="page_item">[[Team:UNITS_Trieste/Project# | + | <li class="page_item">[[Team:UNITS_Trieste/Project#modeling|Modeling]]</li> |
</ul></li> | </ul></li> | ||
<li class="space_item-B"></li> | <li class="space_item-B"></li> | ||
- | <li class="page_item">[[Team:UNITS_Trieste/Parts|Parts]]</li> | + | <li class="page_item">[[Team:UNITS_Trieste/Parts|Parts]] |
+ | <ul class="children"> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Parts#overview|Overview]]</li> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Parts#conclusion|Conclusion]]</li> | ||
+ | </ul></li> | ||
<li class="space_item-R"></li> | <li class="space_item-R"></li> | ||
- | <li class="page_item">[[Team:UNITS_Trieste/ | + | <li class="page_item">[[Team:UNITS_Trieste/Data|Data]]</li> |
- | <li class="space_item- | + | <li class="space_item-G"></li> |
<li class="page_item">[[Team:UNITS_Trieste/Notebook|Notebook]]</li> | <li class="page_item">[[Team:UNITS_Trieste/Notebook|Notebook]]</li> | ||
- | <li class="space_item- | + | <li class="space_item-Y"></li> |
<li class="page_item">[[Team:UNITS_Trieste/Safety|Safety]]</li> | <li class="page_item">[[Team:UNITS_Trieste/Safety|Safety]]</li> | ||
+ | <li class="space_item-B"></li> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Acknowledgements|AKs]] | ||
+ | <ul class="children"> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Acknowledgements#judging|Judging]]</li> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Acknowledgements#attributions|Attributions]]</li> | ||
+ | <li class="page_item">[[Team:UNITS_Trieste/Acknowledgements#cooperations|Cooperations]]</li> | ||
+ | </ul></li> | ||
<li class="space_item-R"></li> | <li class="space_item-R"></li> | ||
- | <li class="page_item">[[Team:UNITS_Trieste/ | + | <li class="page_item">[[Team:UNITS_Trieste/Outreach|Outreach]]</li> |
</ul></div> | </ul></div> | ||
<div id="submenu"> | <div id="submenu"> | ||
Line 73: | Line 85: | ||
</div><!-- .wrapper --> | </div><!-- .wrapper --> | ||
</div><!-- #access --> | </div><!-- #access --> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Latest revision as of 09:23, 28 October 2011