Sha256: 6daf31c61a7115d8c931830bbbdca38ca78ab48c9043333a28f6e5d11a8c026e

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

$ ->
  ThemeApi.init({deviceId: 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE', appId: 'com.magloft.maglove', apiHost: 'www.magloft.com'})
  
  class MagLoveSdk
  
    constructor: (config={})->
      @config = config
      @$hoverElement = null
      @initUIHandlers()
  
    initUIHandlers: ->
      $("._typeloft_widget").hover (e)=>
        @$hoverElement.removeClass("__active_widget") if @$hoverElement
        @$hoverElement = $(e.currentTarget)
        @$hoverElement.addClass("__active_widget")
        e.preventDefault()
        e.stopPropagation()
        false
    
      $("._typeloft_widget").click ->
        console.log "click widget"
      

  # sdk = new MagLoveSdk()

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maglove-0.6.5 data/maglove/sdk.coffee
maglove-0.6.4 data/maglove/sdk.coffee
maglove-0.6.3 data/maglove/sdk.coffee
maglove-0.6.2 data/maglove/sdk.coffee
maglove-0.6.1 data/maglove/sdk.coffee