MCPcopy Create free account
hub / github.com/HangfireIO/Hangfire.Samples / Carousel

Function Carousel

Hangfire.WebFormsApplication/Scripts/bootstrap.js:325–340  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

323 // =========================
324
325 var Carousel = function (element, options) {
326 this.$element = $(element)
327 this.$indicators = this.$element.find('.carousel-indicators')
328 this.options = options
329 this.paused = null
330 this.sliding = null
331 this.interval = null
332 this.$active = null
333 this.$items = null
334
335 this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
336
337 this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
338 .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
339 .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
340 }
341
342 Carousel.VERSION = '3.4.2'
343

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected