Team:Aalto-Helsinki/sidebar
From 2014.igem.org
(Difference between revisions)
Vaakapallo (Talk | contribs) |
|||
(10 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | + | <html> | |
- | / | + | <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> |
- | + | <div id= "sidebar-wrapper"> | |
+ | <nav> | ||
+ | <ul class="sidebar-nav"> | ||
+ | <li> | ||
+ | <a class="home" href="https://2014.igem.org/Team:Aalto-Helsinki"> | ||
+ | Home | ||
+ | </a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Team"> | ||
+ | Team | ||
+ | </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> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Project"> | ||
+ | Project | ||
+ | </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> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Modeling"> | ||
+ | Modeling | ||
+ | </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> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Software"> | ||
+ | Software | ||
+ | </a> | ||
+ | <ul> | ||
+ | <li style="display: none;"> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Seeker">BioBrick Seeker</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="https://2014.igem.org/Team:Aalto-Helsinki/Notes"> | ||
+ | Notes | ||
+ | </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> | ||
+ | <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"> | ||
+ | <img src="https://static.igem.org/mediawiki/2014/5/5d/Aalto-helsinki-igem-black-100.png" width="55px"> | ||
+ | </a> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | </div> | ||
+ | <script> | ||
+ | $(document).ready(function() { | ||
- | + | if(location.pathname != "/Team:Aalto-Helsinki") { | |
- | + | $('#sidebar-wrapper a[href^="https://2014.igem.org' + location.pathname + '"]').addClass('active'); | |
- | } | + | } else $('#sidebar-wrapper a.home').addClass('active'); |
- | . | + | //$('.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> | |
- | . | + | </html> |
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | .sidebar-nav li | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | .sidebar-nav li ul li a.active | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | . | + | |
- | + | ||
- | + | ||
- | } | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Latest revision as of 08:02, 24 July 2014