Sha256: eb163760b80d001c543ebdb294bc06ceb31e93928975b214aecffc84c19b708d

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 Bytes

Contents

#= require screenfull

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jquery-screenfull-rails-3.0.0 vendor/assets/javascripts/jquery.screenfull.js.coffee
jquery-screenfull-rails-2.0.0 vendor/assets/javascripts/jquery.screenfull.js.coffee
jquery-screenfull-rails-0.0.8 vendor/assets/javascripts/jquery.screenfull.js.coffee
jquery-screenfull-rails-0.0.7 vendor/assets/javascripts/jquery.screenfull.js.coffee
jquery-screenfull-rails-0.0.6 vendor/assets/javascripts/jquery.screenfull.js.coffee
jquery-screenfull-rails-0.0.5 vendor/assets/javascripts/jquery.screenfull.js.coffee