Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Jul 28, 2014
1 parent 8a7fc8a commit ff9cc11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ Or:

## Options

You can pass additional options by the data-remodal-options attribute. Data must be valid JSON.
You can pass additional options by the data-remodal-options attribute.
```html
<div class="remodal" data-remodal-id="modal"
data-remodal-options='{ "hashTracking": false }'>
data-remodal-options="hashTracking": false">
<h1>Remodal</h1>
<p>
Flat, responsive, lightweight, fast, easy customizable modal window plugin
Expand Down Expand Up @@ -103,27 +103,27 @@ If set to true, closes a modal window after clicking cancel button.
```js
$(document).on('open', '.remodal', function () {
var modal = $(this);
console.log('open');
});
$(document).on('opened', '.remodal', function () {
var modal = $(this);
console.log('opened');
});
$(document).on('close', '.remodal', function () {
var modal = $(this);
console.log('close');
});
$(document).on('closed', '.remodal', function () {
var modal = $(this);
console.log('closed');
});
$(document).on('confirm', '.remodal', function () {
var modal = $(this);
console.log('confirm');
});
$(document).on('cancel', '.remodal', function () {
var modal = $(this);
console.log('cancel');
});
```
Expand Down

0 comments on commit ff9cc11

Please sign in to comment.