Sha256: 38f59632f76228ae021a20ffb13f47b7217be4da25a869b72809fc22f0abcb85

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

Joosy.namespace 'Welcome', ->

  class @IndexPage extends ApplicationPage
    @layout ApplicationLayout
    @view   'index'

    @afterLoad ->
      @startHeartbeat()
      @content.css
        'padding-top': "#{$(window).height() / 2 - 160}px"

    elements:
      content: '#content'
      joosy:   '.joosy'

    events:
      'mouseover $joosy': -> clearInterval @heartbeat
      'mouseout $joosy': 'startHeartbeat'

    startHeartbeat: ->
      @heartbeat = @setInterval 1500, =>
        @joosy.animate({opacity: 0.8}, 300).animate({opacity: 1}, 300)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
joosy-1.1.2 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.1.1 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.1.0 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.1.0.alpha.3 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.1.0.alpha.2 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.1.0.alpha.1 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.0.0.RC7 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.0.0.RC6 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee
joosy-1.0.0.RC5 lib/rails/generators/joosy/templates/app/pages/welcome/index.js.coffee