Difference between revisions of "Template:CSS UCL5"
Superjack15 (Talk | contribs) |
Superjack15 (Talk | contribs) |
||
Line 8: | Line 8: | ||
− | <script>$(document).ready(function() { | + | <script> |
− | $('# | + | $(document).ready(function() { |
− | $('# | + | $('#mobilebutton').click(function(){ |
− | $( | + | $('#mobile-menu').show(); |
+ | $('#mobilebutton').mouseout( function() { | ||
+ | $('#mobile-menu').hide(); | ||
}); | }); | ||
}); | }); | ||
Line 821: | Line 823: | ||
<div id="hidden-menu"> | <div id="hidden-menu"> | ||
<img src="https://static.igem.org/mediawiki/2015/d/de/UCLigemMobileMenu.png" id="mobilebutton"> | <img src="https://static.igem.org/mediawiki/2015/d/de/UCLigemMobileMenu.png" id="mobilebutton"> | ||
− | <ul> | + | <ul id="mobile-menu"> |
<li><a href="https://2015.igem.org/Team:UCL">Home</a></li> | <li><a href="https://2015.igem.org/Team:UCL">Home</a></li> | ||
<li><a href="https://2015.igem.org/Team:UCL/Description">Project</a></li> | <li><a href="https://2015.igem.org/Team:UCL/Description">Project</a></li> |
Revision as of 00:18, 27 July 2015