Permalink
Browse files

complete re-write of Swipe 2

1 parent ae5e954 commit da545fe32f7096abbfee8b0f1fe6f8f2959ca646 @thebird committed Mar 7, 2013
Showing with 333 additions and 351 deletions.
  1. +10 −2 index.html
  2. +0 −1 style.css
  3. +323 −348 swipe.js
View
@@ -77,8 +77,16 @@
<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();
View
@@ -50,7 +50,6 @@ html, body {
overflow: auto;
}
-
#mySwipe div b {
display:block;
font-weight:bold;
Oops, something went wrong.

0 comments on commit da545fe

Please sign in to comment.