Team:Aalto-Helsinki/sidebar

From 2014.igem.org

(Difference between revisions)
 
(48 intermediate revisions not shown)
Line 5: Line 5:
<ul class="sidebar-nav">
<ul class="sidebar-nav">
<li>
<li>
-
<a href="https://2014.igem.org/Team:Aalto-Helsinki">
+
<a class="home" href="https://2014.igem.org/Team:Aalto-Helsinki">
Home  
Home  
</a>
</a>
Line 13: Line 13:
Team  
Team  
</a>
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/About">About us</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Members">Members</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Attributions">Attributions</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Cooperation">Cooperation</a>
 +
</li>
 +
</ul>
</li>
</li>
<li>
<li>
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Project">
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Project">
-
Project / Attributions
+
Project
</a>
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Abstract">Abstract</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Introduction">Introduction</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Methods">Methods</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Results">Results</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Discussion">Discussion</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Parts">Parts</a>
 +
</li>
 +
</ul>
</li>
</li>
<li>
<li>
-
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Parts">
+
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Modeling">
-
Parts / Modeling / Software
+
Modeling
</a>
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Scent">Scent-Nuffusion</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Time">Time Spent</a>
 +
</li>
 +
</ul>
</li>
</li>
<li>
<li>
-
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Notebook">
+
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Software">
-
Notebook / Safety
+
Software
</a>
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Seeker">BioBrick Seeker</a>
 +
</li>
 +
</ul>
</li>
</li>
<li>
<li>
-
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Sponsors">
+
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Notes">
-
Sponsors
+
Notes
</a>
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Notebook">Notebook</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Safety">Safety</a>
 +
</li>
 +
</ul>
</li>
</li>
 +
<li>
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Human-Practices">
 +
Human Practices
 +
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Heureka">Heureka</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/SoS">SoS</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Teaching-Videos">Teaching Videos</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Social-Media">Social Media</a>
 +
</li>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Synthetic-Biology-For-Dummies">SynBio For Dummies</a>
 +
</li>
 +
</ul>
 +
<li>
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Qualifications">
 +
Qualifications
 +
</a>
 +
<ul>
 +
<li style="display: none;">
 +
<a href="https://2014.igem.org/Team:Aalto-Helsinki/Medals">Medals</a>
 +
</li>
 +
</ul>
 +
</li>
 +
</li>
 +
                        <br>
<a href="https://2014.igem.org/Main_Page">
<a href="https://2014.igem.org/Main_Page">
-
<img src="https://static.igem.org/mediawiki/igem.org/6/60/Igemlogo_300px.png" width="55px">
+
<img src="https://static.igem.org/mediawiki/2014/5/5d/Aalto-helsinki-igem-black-100.png" width="55px">
</a>
</a>
</ul>
</ul>
Line 42: Line 130:
<script>
<script>
$(document).ready(function() {
$(document).ready(function() {
 +
if(location.pathname != "/Team:Aalto-Helsinki") {
if(location.pathname != "/Team:Aalto-Helsinki") {
$('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active');
$('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active');
-
} else $('#sidebar-wrapper a:eq(/Team:Aalto-Helsinki)').addClass('active');
+
} else $('#sidebar-wrapper a.home').addClass('active');
-
console.log(location.pathname);
+
 
 +
//$('.sidebar-nav li ul li').hide();
 +
console.log($('.sidebar-nav li a.active').siblings());
 +
 
 +
$('.sidebar-nav li a.active').siblings().children().show();
 +
$('.sidebar-nav li ul li a.active').parent().show();
 +
$('.sidebar-nav li ul li a.active').parent().siblings().show();
 +
$('.sidebar-nav li ul li a.active').addClass("submenu");
});
});
</script>
</script>
</html>
</html>

Latest revision as of 08:02, 24 July 2014