MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / Carousel

Function Carousel

OpenReservation/wwwroot/Scripts/bootstrap.js:297–312  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

295 // =========================
296
297 var Carousel = function (element, options) {
298 this.$element = $(element)
299 this.$indicators = this.$element.find('.carousel-indicators')
300 this.options = options
301 this.paused = null
302 this.sliding = null
303 this.interval = null
304 this.$active = null
305 this.$items = null
306
307 this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
308
309 this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
310 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
311 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
312 }
313
314 Carousel.VERSION = '3.3.5'
315

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected