MCPcopy Create free account
hub / github.com/EasyIME/PIME / Carousel

Function Carousel

python/cinbase/config/js/bootstrap.js:315–330  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

313 // =========================
314
315 var Carousel = function (element, options) {
316 this.$element = $(element)
317 this.$indicators = this.$element.find('.carousel-indicators')
318 this.options = options
319 this.paused = null
320 this.sliding = null
321 this.interval = null
322 this.$active = null
323 this.$items = null
324
325 this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
326
327 this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
328 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
329 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
330 }
331
332 Carousel.VERSION = '3.3.7'
333

Callers

nothing calls this directly

Calls 3

$Function · 0.50
findMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected