title: Disable scrolling after toggle
body: <p>How can I disable scrolling on a whole page when I toggle the following:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#test').click(function() {
    $('html, body').css({
     overflow: 'hidden',
     height: '100%'
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;label&gt;
    &lt;input id="test" type="checkbox"&gt;
    
    &lt;span class="menu"&gt;
      &lt;span class="hamburger"&gt;&lt;/span&gt;
    &lt;/span&gt;
  
    &lt;ul&gt;
      &lt;li&gt;
        &lt;a href="#"&gt;Home&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;a href="#"&gt;About&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;a href="#"&gt;Contact&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/label&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Which doesn't seem to work.</p>