Skip to content

Commit

Permalink
complete re-write of Swipe 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thebird committed Mar 7, 2013
1 parent ae5e954 commit da545fe
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 351 deletions.
12 changes: 10 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,16 @@ <h1>Swipe 2</h1>
<script>

// pure JS
var elem = document.getElementById('mySwipe'); // $('#mySwipe')[0] in jQuery
window.mySwipe = new Swipe(elem);
var elem = document.getElementById('mySwipe');
window.mySwipe = Swipe(elem, {
// startSlide: 4,
// auto: 3000,
// continuous: true,
// disableScroll: true,
// stopPropagation: true,
// callback: function(index, element) {},
// transitionEnd: function(index, element) {}
});

// with jQuery
// $('#mySwipe').Swipe();
Expand Down
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ html, body {
overflow: auto;
}


#mySwipe div b {
display:block;
font-weight:bold;
Expand Down
Loading

0 comments on commit da545fe

Please sign in to comment.