Sha256: 63ba4889664e52e450eded7ee4b1c7e5b159465b6310f95ea606f790d2776977

Contents?: true

Size: 673 Bytes

Versions: 10

Compression:

Stored size: 673 Bytes

Contents

# -*- encoding : utf-8 -*-
module LoyalCore
  module FontSelectorHelper
    def loyal_core_helper_font_selector *args
      options = args.extract_options!

      selector = args.first || 'body'

      html = ''

      html << <<-HTML
        <span class='loyal-core-font-size-selector'>
          字体
          <input type='hidden' name='font-selector-size' value='#{selector.html_safe}'/>
          <a href='javascript:;' loyal-data-type-size='small'>小</a>
          <a href='javascript:;' loyal-data-type-size='medium'>中</a>
          <a href='javascript:;' loyal-data-type-size='large'>大</a>
        </span>
      HTML

      html.html_safe
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
loyal_core-0.0.11 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.10 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.8 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.7 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.6 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.5 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.4 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.3 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.2 lib/loyal_core/action_helper/font_selector_helper.rb
loyal_core-0.0.1 lib/loyal_core/action_helper/font_selector_helper.rb