Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
 
(95 intermediate revisions not shown)
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");
+
/*manage menu actual page*/
-
        /*$(location).attr('href');
+
         if($('#access strong').length)  
-
        $('#access ul li a').click(function(){if(!$(this).hasClass("current_page_item")) {
+
          { $('#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");
-
$(this).addClass("current_page_item").parents("li").find("a:not(ul ul a)").addClass("current_page_item"); }
+
            if($('.current_page_item').length>0||$('#access strong').parent("li.page_item").children("ul.children").length>0) {
-
return false;
+
              //var subm = $('#access strong').parents("ul.children").find("li.page_item");
-
});*/
+
/*manage submenu actual page*/
 +
        var destination = $('#submenu');
 +
        var subm = $('#access strong').parent("li.page_item").children("ul.children").find("li.page_item");
 +
        $.each( subm, function( intIndex, objValue ){
 +
          var linkm = objValue.firstChild;
 +
          if(linkm.nodeName=="STRONG") linkm = $(location).attr('href');
 +
          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');
 +
            }
 +
          }
 +
/*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? (da abilitare in caso di #header integrato in questo file)
-
         if(!$("#access a:first").hasClass("current_page_item")) {
+
         if(!$(".menu a:first").hasClass("current_page_item")) {
           var titolo = $('#access strong').text();
           var titolo = $('#access strong').text();
           $("#project-image").css("background","none");
           $("#project-image").css("background","none");
Line 23: Line 34:
           $("#site-title").addClass(titolo).css("width","699px");
           $("#site-title").addClass(titolo).css("width","699px");
         }
         }
 +
*/
     });
     });
</script>
</script>
Line 29: Line 41:
<div id="access" role="navigation">
<div id="access" role="navigation">
<div class="wrapper">
<div class="wrapper">
-
<div id="logo-project"><html><a href="2011.igem.org" title="IGEM Home" alt="IGEM Home"><img src="https://static.igem.org/mediawiki/2011/4/49/Units-logo.png" alt="UNITS_Trieste" title="logo-UNITS_Trieste" /></a></html></div>
+
<div id="logo-project"><html><a href="https://2011.igem.org" title="IGEM Home" alt="IGEM Home"><img src="https://static.igem.org/mediawiki/2011/4/49/Units-logo.png" alt="logo-UNITS_Trieste" title="IGEM Home" /></a></html></div>
<div class="menu"><ul>
<div class="menu"><ul>
<li class="page_item"><html><a href="https://2011.igem.org/Team:UNITS_Trieste" title="Home" class="current_page_item">Home</a></html></li>
<li class="page_item"><html><a href="https://2011.igem.org/Team:UNITS_Trieste" title="Home" class="current_page_item">Home</a></html></li>
Line 35: 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"><html><a href="https://igem.org/Team.cgi?year=2011&team_name=UNITS_Trieste" title="Profile">Profile</a></html></li>
+
<li class="page_item">[[Team:UNITS_Trieste/Team#overview|Overview]]</li>
-
<li class="page_item">[[Team:UNITS_Trieste/Team_Overview|Overview]]</li>
+
<li class="page_item">[[Team:UNITS_Trieste/Team#location|Location]]</li>
-
</ul></li>
+
<li class="page_item">[[Team:UNITS_Trieste/Team#press|Press]]</li>
 +
</ul>
 +
<html><!-- a href="https://igem.org/Team.cgi?year=2011&team_name=UNITS_Trieste" title="Profile">Profile</a --></html>
 +
                        </li>
<li class="space_item-Y"></li>
<li class="space_item-Y"></li>
-
<li class="page_item">[[Team:UNITS_Trieste/Project|Project]]</li>
+
<li class="page_item">[[Team:UNITS_Trieste/Project|Project]]
 +
<ul class="children">
 +
<li class="page_item">[[Team:UNITS_Trieste/Project#overview|Overview]]</li>
 +
<li class="page_item">[[Team:UNITS_Trieste/Project#modeling|Modeling]]</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/Modeling|Modeling]]</li>
+
<li class="page_item">[[Team:UNITS_Trieste/Data|Data]]</li>
-
<li class="space_item-Y"></li>
+
<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-B"></li>
+
<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/Attributions|Attributions]]</li>
+
<li class="page_item">[[Team:UNITS_Trieste/Outreach|Outreach]]</li>
</ul></div>
</ul></div>
-
 
+
<div id="submenu">
 +
</div>
</div><!-- .wrapper -->
</div><!-- .wrapper -->
</div><!-- #access -->
</div><!-- #access -->
-
 
-
<div id="header">
 
-
<div class="wrapper">
 
-
<div id="project-image"></div>
 
-
<div id="project-description" role="description">
 
-
<div id="site-title">
 
-
<span>WIKICIKS: THE FIRST CELL INTERKINGDOM SOCIAL NETWORK</span>
 
-
</div>
 
-
<div id="site-description">
 
-
<p>... the first synthetic biome in which bacteria and eukaryotic cells need each other to survive!</p>
 
-
</div>
 
-
</div><!-- #branding -->
 
-
</div><!-- .wrapper -->
 
-
</div><!-- #header -->
 

Latest revision as of 09:23, 28 October 2011