Sha256: 5a50be4f8900a25494b604b22c50668a859fedd9e58ab2bcc09c4473ff3efb63

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

#= require jquery

do (jQuery) ->
  $.isFullScreenEnabled = ->
    screenfull.enabled && screenfull.raw.fullscreenchange

  $.extend $.fn,
    fullScreen: ->
      @.each ->
        $(@).on 'click', ->
          screenfull.toggle(@) if $.isFullScreenEnabled()
        .on screenfull.raw.fullscreenchange ->
          $(@).trigger(if screenfull.isFullscreen then 'fullscreen:enter' else 'fullscreen:exit')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery-screenfull-rails-0.0.3 vendor/assets/javascripts/jquery.screenfull.js.coffee