title: Simple pause with vimeo api Froogaloop
body: <p>Trying to call the vimeo api to pause video on a click event to hide it. And, on clicking to reveal the video again, play the video from its paused position.</p>
  
  <p>There are various related questions on here, I can't find an answer to the simple "how to pause". I'm a jquery novice and can't make heads or tails of the froogaloop documentation.</p>
  
  <p>Here's a <a href="https://jsfiddle.net/wdxocnn5/1/" rel="nofollow">FIDDLE</a>, and my current jquery script to hide the video</p>
  
  <pre><code>$(document).click(function (event) {
      if (!$(event.target).hasClass('click')) {
          $('#video').hide();
      }      
  });
  </code></pre>
  
  <p>which hides it when an element without the "click" class is clicked. But the video plays on in the background. Froogaloop is loaded in the fiddle. Thanks everyone</p>