Permalink
Browse files

Added test file for autoscroll invert option

  • Loading branch information...
1 parent 4f64679 commit df521b08fec56c79d70379edc6f4de2b7b4714ab @Slavic committed Jan 9, 2012
Showing with 53 additions and 0 deletions.
  1. +53 −0 test/scrollable/autoscroll_invert.html
@@ -0,0 +1,53 @@
+
+<script src="../js/jquery-1.6.2.js"></script>
+<script src="../../src/scrollable/scrollable.js"></script>
+<script src="../../src/scrollable/scrollable.autoscroll.js"></script>
+
+<link rel="stylesheet" type="text/css" href="style.css"/>
+
+<script>
+$(function() {
+ $(".scrollable").scrollable({
+ circular: true,
+
+ onSeek: function() {
+ // console.info(this.getIndex());
+ }
+
+ }).autoscroll({autoplay: true, interval: 1000, invert: true});
+
+ window.api = $(".scrollable").data("scrollable");
+});
+</script>
+
+
+<div>
+
+ <a class="prev">prev</a>
+
+ <div class="navi"></div>
+
+ <div class="scrollable" style="width:130px">
+
+ <div class="items">
+ <div>0</div>
+ <div>1</div>
+ <div>2</div>
+ <div>3</div>
+ <div>4</div>
+ <div>5</div>
+ <div>6</div>
+ </div>
+
+ </div>
+
+ <a class="next">next</a>
+
+</div>
+
+<p>
+ <button onclick='api.stop();'>stop</button>
+ <button onclick='api.pause();'>pause</button>
+ <button onclick='api.play();'>play</button>
+</p>
+

0 comments on commit df521b0

Please sign in to comment.