export default function(){
  document.querySelectorAll("header .nav-toggle")[0].addEventListener("click", function(e){
    e.preventDefault();
    document.body.classList.toggle("nav-open");
  })
}

@@ -20,16 +20,41 @@
 tion()%7B%0A
+  var navIsOpen = false;%0A
   docume
@@ -161,16 +161,57 @@
 ault();%0A
+    if(!navIsOpen) window.scrollTo(0,0);%0A
     docu
@@ -250,15 +250,43 @@
 open%22);%0A
+    navIsOpen = !navIsOpen;%0A
   %7D)%0A%7D%0A

add scrolling when nav is opened