Team:Valencia UPV/prueba
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | {{:Team:Valencia_UPV/ | + | {{:Team:Valencia_UPV/style_css}} |
+ | {{:Team:Valencia_UPV/javascript}} | ||
<html> | <html> | ||
- | |||
<style> | <style> | ||
- | + | #menu | |
- | + | { | |
+ | background-color:#c00000; | ||
+ | text-align:center; | ||
+ | width:100%; | ||
+ | position: relative; | ||
+ | top: 250px; | ||
} | } | ||
- | + | #menu > span | |
- | + | { | |
- | + | display:inline-block; | |
- | + | margin:0 auto; | |
- | + | height: 41px;/*It modifies the menu bar height*/ | |
- | + | ||
} | } | ||
- | + | .menu-fijo { | |
- | + | position: fixed; | |
- | + | top: 0; | |
- | + | width: 900px; | |
- | + | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</style> | </style> | ||
+ | <head> | ||
+ | <title>Menú autoajustable</title> | ||
+ | <link rel="stylesheet" type="text/css" href="estilo.css"> | ||
+ | <script type="text/javascript" src="jquery.js"></script> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | var menu = $('#menu'); | ||
+ | var contenedor = $('#nav'); | ||
+ | var menu_offset = menu.offset(); | ||
+ | $(window).on('scroll', function() { | ||
+ | if($(window).scrollTop() > menu_offset.top) { | ||
+ | menu.addClass('menu-fijo'); | ||
+ | } else { | ||
+ | menu.removeClass('menu-fijo'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | </head> | ||
+ | <div class="example"> | ||
+ | <!--<div align="center"> | ||
+ | <a href="https://2014.igem.org/Team:Valencia_UPV"><img alt="sexyplant_logo" title="The Sexy Plant" src="https://static.igem.org/mediawiki/2014/d/d7/Ivllobel_sexy_plant_menu.png"></a> | ||
+ | </div>--> | ||
- | <div> | + | <div class="menu"> |
- | <a href="https://2014.igem.org" | + | <span> |
- | </ | + | <ul id="nav"> |
- | < | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV">Home</a></li> |
- | < | + | <li><a href="#">Team</a> |
- | < | + | <div class="subs"> |
- | + | <div> | |
- | < | + | <ul> |
- | </ | + | <li><h3>People</h3> |
- | < | + | <ul> |
- | < | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Team/Students">Students</a></li> |
- | </ | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Team/Advisors">Advisors</a></li> |
- | </ | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Team/Instructors">Instructors</a></li> |
- | + | </ul> | |
- | </div> | + | </li> |
- | + | <li><h3>Official Team Profile</h3> | |
- | + | <ul> | |
- | <div> | + | <li><a href="https://igem.org/Team.cgi?id=1554">Official Team Profile</a></li> |
- | < | + | </ul> |
- | + | </li> | |
- | + | <li><h3>Photogallery</h3> | |
- | < | + | <ul> |
- | < | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Gallery</a></li> |
- | + | </ul> | |
- | <a href="https:// | + | </li> |
- | </ | + | </ul> |
- | < | + | </div> |
- | <a href="https:// | + | </div> |
- | </ | + | </li> |
- | < | + | <li><a href="#">Project</a> |
- | <a href=" | + | <div class="subs"> |
- | </ | + | <div> |
- | + | <ul> | |
- | + | <li><h3>Project</h3> | |
- | + | <ul> | |
- | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Project/overview">Overview</a></li> | |
- | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Project/modules">Modules</a></li> | |
- | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Project/conclusions">Conclusions</a></li> | |
- | + | </ul> | |
- | + | </li> | |
- | + | <li><h3>Notebook</h3> | |
- | + | <ul> | |
- | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Notebook_wetlab.html">Notebook</a></li> | |
- | + | </ul> | |
- | + | </li> | |
- | + | </ul> | |
- | + | </div> | |
- | + | </div> | |
- | + | </li> | |
- | + | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Parts</a></li> | |
- | + | <li><a href="#">Modeling</a> | |
- | + | <div class="subs"> | |
- | + | <div> | |
- | + | <ul> | |
+ | <li><h3>Modeling</h3> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Pheromone Production</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Flux Balance Analysis</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Field Distribution</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><h3>Notebook</h3> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Notebook</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
+ | </li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Safety</a> | ||
+ | <div class="subs"> | ||
+ | <div> | ||
+ | <ul> | ||
+ | <li><h3>Safety</h3> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Special Measures</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Hazard</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Devices</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
+ | </li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Human practices</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Sponsors</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:Valencia_UPV/Underconstruction">Achievements</a></li> | ||
+ | </ul> | ||
+ | </span> | ||
+ | </div> | ||
- | + | </div> | |
- | + | </html> | |
- | + | ||
- | + | ||
- | </ | + |
Revision as of 16:12, 14 August 2014