title: Opening Foundation Reveal on Click & Callback Functions?
body: <p>I'm migrating from jQueryTools Overlay, and I can't really grasp the docs on how to open a Reveal by JavaScript click event.</p>
  
  <p>Supposedly I have this code:</p>
  
  <pre><code>&lt;a href="#revealModal" class="revealTrigger"&gt;Click Me For A Modal&lt;/a&gt;
  &lt;div id="revealModal" class="reveal-modal"&gt;
      &lt;p&gt;Im a cool paragraph that lives inside of an even cooler modal. Wins&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Usually, I code the click event in jQueryTools Overlay something like:</p>
  
  <pre><code>$('.revealTrigger').click(function() {
      $('#revealModal').reveal();
  });
  </code></pre>
  
  <p>But this doesn't work. What's the equivalent correct code for it in Reveal?</p>
  
  <p>And what about callback events? Can I write something like this:</p>
  
  <pre><code>$('.revealTrigger').click(function() {
      $('#revealModal').reveal({
          open: function(){
              // prepare some stuff before showing
          },
          opened: function(){
              // execute stuff prepared by open function
          },
      });
  });
  </code></pre>