Sha256: 4cd0ba188ddaea23d037cfa0f37629d27f5205daa4f50a62b5fd63d8e81b653d

Contents?: true

Size: 652 Bytes

Versions: 15

Compression:

Stored size: 652 Bytes

Contents

module Spotlight
  ##
  # JCrop options helpers
  module JcropHelper
    def default_masthead_jcrop_options
      {
        croppable: true,
        selector: 'masthead_image',
        bg_color: 'black',
        bg_opacity: '.4',
        aspect_ratio: 10,
        box_width: '600',
        initial_set_select: '[0, 0, 1800, 180]'
      }
    end

    def default_thumbnail_jcrop_options
      {
        croppable: true,
        selector: 'featuredimage_image',
        bg_color: 'black',
        bg_opacity: '.4',
        box_width: '600',
        aspect_ratio: 4.0 / 3.0,
        initial_set_select: '[0, 0, 100000, 100000]'
      }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
blacklight-spotlight-0.10.3 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.10.2 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.10.1 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.10.0 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.9.2 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.9.1 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.9.0 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.8.2 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.8.1 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.8.0 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.7.2 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.7.1 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.7.0 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.6.0 app/helpers/spotlight/jcrop_helper.rb
blacklight-spotlight-0.5.0 app/helpers/spotlight/jcrop_helper.rb