Template:Team:Trieste/menu
From 2012.igem.org
(Difference between revisions)
(fix regexp) |
(fix typo) |
||
(9 intermediate revisions not shown) | |||
Line 21: | Line 21: | ||
<li><a href="https://2012.igem.org/Team:Trieste/project/applications">Applications</a></li> | <li><a href="https://2012.igem.org/Team:Trieste/project/applications">Applications</a></li> | ||
<li><a href="https://2012.igem.org/Team:Trieste/project/modeling">Modeling</a></li> | <li><a href="https://2012.igem.org/Team:Trieste/project/modeling">Modeling</a></li> | ||
+ | <li><a href="https://2012.igem.org/Team:Trieste/project/mainres">Main Results</a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 26: | Line 27: | ||
<a href="https://2012.igem.org/Team:Trieste/data">DATA</a> | <a href="https://2012.igem.org/Team:Trieste/data">DATA</a> | ||
<ul> | <ul> | ||
- | + | ||
- | + | ||
</ul> | </ul> | ||
Line 45: | Line 46: | ||
<ul> | <ul> | ||
<li><a href="https://2012.igem.org/Team:Trieste/safety">Safety</a></li> | <li><a href="https://2012.igem.org/Team:Trieste/safety">Safety</a></li> | ||
+ | <li><a href="https://2012.igem.org/Team:Trieste/survey">Safety Survey</a></li> | ||
<li><a href="http://www.icgeb.org/~bsafesrv/"target="_blank">ICGEB Safety Unit</a></li> | <li><a href="http://www.icgeb.org/~bsafesrv/"target="_blank">ICGEB Safety Unit</a></li> | ||
</ul> | </ul> | ||
Line 65: | Line 67: | ||
</ul> | </ul> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $(function(){ | |
- | + | title_regexp = /http:\/\/2012\.igem\.org\/Team:Trieste\/([a-zA-Z]+).*/; | |
- | + | title = title_regexp.exec(location.href); | |
- | + | if (title === null){ | |
- | + | $('#navigation > li:first').addClass('select'); | |
- | + | } else { | |
- | + | $('#navigation > li > a[href$=' + title[1] + ']').parent().addClass('select'); | |
- | + | } | |
- | + | /* js menu */ | |
- | + | $('#navigation > li').hover( | |
- | + | function () { | |
- | + | //show its submenu | |
- | + | $('ul', this).stop().show(); | |
- | + | }, | |
- | + | function () { | |
- | + | //hide its submenu | |
+ | $('ul', this).stop().hide(); | ||
+ | } | ||
+ | ); | ||
+ | }); | ||
</script> | </script> | ||
<a href="http://socialigem.ning.com" target="_blank"><img src="/wiki/images/5/5c/Trieste-SocialiGEM.png" alt="SocialiGEM" class="logo-socialigem" /></a> | <a href="http://socialigem.ning.com" target="_blank"><img src="/wiki/images/5/5c/Trieste-SocialiGEM.png" alt="SocialiGEM" class="logo-socialigem" /></a> |
Latest revision as of 19:32, 26 October 2012