Sha256: d000ceb8ae3d4571766def993416eaed902fa035ca1b40878d6ad2f8412801fb

Contents?: true

Size: 391 Bytes

Versions: 41

Compression:

Stored size: 391 Bytes

Contents

require '../vendor/slick.js'

class Smock.Slick
  constructor: (slickClass, options) ->
    @slickClass = slickClass
    @speed = options['speed'] || 10000
    @dots = if options['dots']? then options['dots'] else true

  ready: =>
    $(@slickClass).slick(
      dots: @dots
      fade: true
      arrows: false
      slidesToShow: 1
      autoplay: true
      autoplaySpeed: @speed
    )

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
smock-0.1.268 app/assets/javascripts/modules/slick.coffee
smock-0.1.267 app/assets/javascripts/modules/slick.coffee
smock-0.1.266 app/assets/javascripts/modules/slick.coffee
smock-0.1.265 app/assets/javascripts/modules/slick.coffee
smock-0.1.264 app/assets/javascripts/modules/slick.coffee
smock-0.1.263 app/assets/javascripts/modules/slick.coffee
smock-0.1.262 app/assets/javascripts/modules/slick.coffee
smock-0.1.261 app/assets/javascripts/modules/slick.coffee
smock-0.1.260 app/assets/javascripts/modules/slick.coffee
smock-0.1.259 app/assets/javascripts/modules/slick.coffee
smock-0.1.258 app/assets/javascripts/modules/slick.coffee
smock-0.1.256 app/assets/javascripts/modules/slick.coffee
smock-0.1.255 app/assets/javascripts/modules/slick.coffee
smock-0.1.254 app/assets/javascripts/modules/slick.coffee
smock-0.1.253 app/assets/javascripts/modules/slick.coffee
smock-0.1.252 app/assets/javascripts/modules/slick.coffee
smock-0.1.251 app/assets/javascripts/modules/slick.coffee
smock-0.1.250 app/assets/javascripts/modules/slick.coffee
smock-0.1.249 app/assets/javascripts/modules/slick.coffee
smock-0.1.247 app/assets/javascripts/modules/slick.coffee