Skip to content

Commit

Permalink
Add zepto support
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Feb 23, 2014
1 parent e671996 commit fb5882b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 20 deletions.
24 changes: 23 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<body>
<div class="remodal-bg">
<a href="#modal">Click</a>
<a href="#modal2">Click</a>
<br><br>

<div class="remodal" data-remodal-id="modal">
Expand All @@ -33,11 +34,32 @@ <h1>Remodal</h1>
<a class="remodal-cancel" href="#">Cancel</a>
<a class="remodal-confirm" href="#">OK</a>
</div>

<div class="remodal" data-remodal-id="modal2">
<h1>Remodal</h1>
<p>
Flat, responsive, lightweight, fast, easy customizable modal window plugin
with declarative state notation and hash tracking.
</p>
<p>
Minified version size: ~4kb
</p>
<br>
<a class="remodal-cancel" href="#">Cancel</a>
<a class="remodal-confirm" href="#">OK</a>
</div>
</div>


<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-2.1.0.min.js"><\/script>')</script>
<script>window.jQuery || document.write('<script src="js/jquery-2.1.0.min.js"><\/script>')</script>

<!-- Instead of JQuery, you can use zepto now! -->
<!--<script src="js/zepto.min.js"></script>-->

<script src="../src/jquery.remodal.js"></script>

<!-- Events -->
<script>
$(document).on('open', '.remodal', function () {
console.log('open');
Expand Down
Loading

0 comments on commit fb5882b

Please sign in to comment.