Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Reveal the modal and say "Good bye" when it closes
- $("#myModal").reveal({ "closed": function () { alert("Good bye") } });
- $('#myModal').bind('opened', function() {
- console.log("myModal opened");
- });
- $(document).on('open.fndtn.reveal', '[data-reveal]', function () {
- // your code goes here...
- });
- $(document).on('opened.fndtn.reveal', '[data-reveal]', function () {
- // your code goes here...
- });
- $(document).on('close.fndtn.reveal', '[data-reveal]', function () {
- // your code goes here...
- });
- $(document).on('closed.fndtn.reveal', '[data-reveal]', function () {
- // your code goes here...
- });
- <div class="content reveal-modal" id="element-1" data-reveal>
- <div class="content reveal-modal" id="element-2" data-reveal>
- $(document).on('open', '#element-1[data-reveal]', function () {
- // your code goes here...
- });
- $(document).on('open', '#element-2[data-reveal]', function () {
- // your code goes here...
- });
- $('#myModal').bind('closed', function() {
- console.log("myModal closed!");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement