1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 16:44:17 +02:00

start playing with carousel stuff

This commit is contained in:
Jacob Thornton
2012-01-02 16:04:01 -08:00
parent 12868933b9
commit 2d092dfeea
6 changed files with 106 additions and 5 deletions

View File

@@ -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 () {
}
}