Created
August 29, 2017 21:17
-
-
Save bluefirex/e5f3813c99b43edf98cb9abff49228d1 to your computer and use it in GitHub Desktop.
SweetModal Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="sweet-modal-trigger">Open SweetModal</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$('a.sweet-modal-trigger').on('click', () => { | |
$.sweetModal({ | |
title: 'Example', | |
content: 'This is an example.', | |
theme: $.sweetModal.THEME_DARK | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment