diff options
| author | Jacob Thornton <[email protected]> | 2012-01-02 16:04:01 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-02 16:04:01 -0800 |
| commit | 2d092dfeea969d82bc55a153c6a597a3e87a0a03 (patch) | |
| tree | 6aca6495c02d6efc1dfc24021607b3ae254513bc /js/bootstrap-carousel.js | |
| parent | 12868933b9141ff9c63277efe36665cc7a8815df (diff) | |
| download | bootstrap-2d092dfeea969d82bc55a153c6a597a3e87a0a03.tar.xz bootstrap-2d092dfeea969d82bc55a153c6a597a3e87a0a03.zip | |
start playing with carousel stuff
Diffstat (limited to 'js/bootstrap-carousel.js')
| -rw-r--r-- | js/bootstrap-carousel.js | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index ed4b8f3fa..2e1fde11a 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -25,12 +25,29 @@ /* CAROUSEL CLASS DEFINITION * ========================= */ - var Carousel = function () { - + var Carousel = function (element) { + this.$element = $(element) + this.cycle() } Carousel.prototype = { + cycle: function () { + this.interval = setInterval($.proxy(this.right, this), 500) + } + + , pause: function () { + clearInterval(this.interval) + } + + , right: function () { + + } + + , left: function () { + + } + } |
