Hide your code/text blocks

Add these line to _include/header.html file

  <script>
    function ishidden(odiv){
      var vdiv = document.getElementById(odiv);
      vdiv.style.display = (vdiv.style.display == 'none')?'block':'none';
    }
  </script>

In your blog, use these line to hide your code/text:

  <div onclick="ishidden('X')">有东西藏起来了!</div>
  <div id="X" style="display:none;">啊,被发现了</div>

Maybe I should learn more about html and css to make my blog better.

Reference