Skip to content
Permalink
Browse files

complete re-write of Swipe 2

  • Loading branch information
thebird committed Mar 7, 2013
1 parent ae5e954 commit da545fe32f7096abbfee8b0f1fe6f8f2959ca646
Showing with 333 additions and 351 deletions.
  1. +10 −2 index.html
  2. +0 −1 style.css
  3. +323 −348 swipe.js
@@ -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();
@@ -50,7 +50,6 @@ html, body {
overflow: auto;
}


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

0 comments on commit da545fe

Please sign in to comment.
You can’t perform that action at this time.