diff --git a/biographie.html b/biographie.html index 320f6b0..0c5c8f0 100644 --- a/biographie.html +++ b/biographie.html @@ -8,22 +8,25 @@ +
diff --git a/divers.html b/divers.html index 79530fd..189a9a8 100644 --- a/divers.html +++ b/divers.html @@ -8,8 +8,8 @@ - + @@ -21,16 +21,18 @@
diff --git a/explorer.html b/explorer.html index 6e4ada8..fcd01de 100644 --- a/explorer.html +++ b/explorer.html @@ -8,6 +8,7 @@ + @@ -19,16 +20,18 @@
diff --git a/exposition.html b/exposition.html index ba8af64..1811b01 100644 --- a/exposition.html +++ b/exposition.html @@ -8,9 +8,9 @@ - + @@ -19,16 +19,18 @@
diff --git a/index.html b/index.html index a7f52a8..510324e 100644 --- a/index.html +++ b/index.html @@ -8,22 +8,25 @@ +
diff --git a/informations.html b/informations.html index df131d0..4f54cbb 100644 --- a/informations.html +++ b/informations.html @@ -8,24 +8,26 @@ - +
diff --git a/painting.html b/painting.html index 0d36ddb..edbcf13 100644 --- a/painting.html +++ b/painting.html @@ -8,24 +8,26 @@ - +
diff --git a/scripts/menu.js b/scripts/menu.js index c621738..78bf58e 100644 --- a/scripts/menu.js +++ b/scripts/menu.js @@ -1,18 +1,9 @@ -function mobilemenu() -{ - var navmenu = document.getElementsByTagName("nav"); - if (navmenu[0].classList.contains("active")) - navmenu[0].classList.remove("active"); - else - navmenu[0].classList.add("active"); -} - document.addEventListener("DOMContentLoaded", function(event) { function isIE() { user_agent = navigator.userAgent; - return (user_agent.indexOf("MSIE ") > -1 || user_agent.indexOf("Trident/") > -1); + return (user_agent.indexOf("MSIE") > -1 || user_agent.indexOf("Trident/") > -1); } if (isIE()) @@ -24,4 +15,23 @@ document.addEventListener("DOMContentLoaded", function(event) document.getElementsByTagName("header")[0].insertBefore(IEheader, document.getElementsByTagName("nav")[0]); }; +}); + +jQuery(document).ready(function($) +{ + $("#hamburger").click(function() + { + if ($("nav").hasClass("active")) + { + $(".hidden").slideUp(200, function() + { + $("nav").removeClass("active"); + }); + } + else + { + $("nav").addClass("active"); + $(".hidden").slideDown(200); + } + }); }); \ No newline at end of file diff --git a/styles/main.css b/styles/main.css index 3a649ff..205c8e6 100644 --- a/styles/main.css +++ b/styles/main.css @@ -84,11 +84,6 @@ header nav ul li a { } } -header nav .mobile-menu-open, -header nav .mobile-menu-close { - display:none; -} - @media only screen and (max-width:600px) { header nav { margin-top:0.5rem; @@ -129,7 +124,7 @@ header nav .mobile-menu-close { transform:rotate(45deg) translate(-6px, -9.5px); } - header nav ul li { + .hidden { display:none; } @@ -139,7 +134,7 @@ header nav .mobile-menu-close { padding:0.2rem; } - header nav.active ul li:nth-child(2) { + header nav.active ul li:nth-child(1) { padding-top:1rem; }