Difference between revisions of "Template:CSS UCL5"

(Undo revision 65611 by Superjack15 (talk))
(Undo revision 65610 by Superjack15 (talk))
Line 8: Line 8:
  
  
<script>
+
<script>$(document).ready(function() {
$(document).ready(function() {
+
     $('#hidden-menu').next().hide();
     $('#mobilebutton').click(function(){
+
     $('#hidden-menu').hover( function() {
$('#mobile-menu').show();
+
         $(this).next().toggle();
     $('#mobilebutton').mouseout( function() {
+
         $('#mobile-menu').hide();
+
 
     });
 
     });
 
});
 
});
Line 823: Line 821:
 
<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 id="mobile-menu">
+
<ul>
 
<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:23, 27 July 2015