--- /dev/null
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <title>Foundation for Sites Testing</title>
+ <link href="../assets/css/foundation.css" rel="stylesheet" />
+ </head>
+ <body>
+ <div class="row column">
+ <h1>Triggers: Programmatic</h1>
+
+ <p>This callout uses a close button with <code>data-close</code>. Clicking it should close the callout.</p>
+
+ <div class="callout" data-closable>
+ <p>You can so totally close this!</p>
+ <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>
+
+ <p>This callout uses a close button with a manual event handler that uses jQuery's <code>.trigger()</code> function.</p>
+
+ <div class="callout" data-closable id="testCallout">
+ <p>You can so totally close this!</p>
+ <button class="close-button" aria-label="Dismiss alert" type="button" id="testButton">
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>
+ </div>
+
+ <script src="../assets/js/vendor.js"></script>
+ <script src="../assets/js/foundation.js"></script>
+ <script>
+ $(document).foundation();
+ $('#testButton').click(function() {
+ $('#testCallout').trigger('close');
+ });
+ </script>
+ </body>
+</html>