Close menu when click / touch outside javascript
<p>A css / javascript trigger menu doesnt close when someone click or <strong>touch</strong> outside. </p>

<p>You have to press the menu button to close it. I tried some jquery functions like:</p>

<pre><code>$('#menucontainer').click(function(event) {
    event.stopPropagation();
});
</code></pre>

<p>But this does not work. Here I made a simple jsfiddle with all related code:</p>

<p><a href="https://jsfiddle.net/4sgf84jL/" rel="nofollow">https://jsfiddle.net/4sgf84jL/</a></p>

<p>I would appreciate some help. Thank you</p>