mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:39:52 +01:00
Twitter Emoji
This commit is contained in:
parent
6ad9dc4a26
commit
f65bfa9e75
3 changed files with 18 additions and 0 deletions
2
Gemfile
2
Gemfile
|
@ -40,6 +40,8 @@ gem 'fog-aws'
|
||||||
gem 'momentjs-rails', '>= 2.9.0'
|
gem 'momentjs-rails', '>= 2.9.0'
|
||||||
gem 'bootstrap3-datetimepicker-rails', '~> 4.7.14'
|
gem 'bootstrap3-datetimepicker-rails', '~> 4.7.14'
|
||||||
|
|
||||||
|
gem 'twemoji-rails'
|
||||||
|
|
||||||
gem 'ruby-progressbar'
|
gem 'ruby-progressbar'
|
||||||
|
|
||||||
gem 'rails_admin'
|
gem 'rails_admin'
|
||||||
|
|
|
@ -435,6 +435,8 @@ GEM
|
||||||
simple_oauth
|
simple_oauth
|
||||||
turbolinks (2.5.3)
|
turbolinks (2.5.3)
|
||||||
coffee-rails
|
coffee-rails
|
||||||
|
twemoji-rails (1.2.1.3)
|
||||||
|
railties (>= 3.0.0)
|
||||||
twitter (5.14.0)
|
twitter (5.14.0)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
buftok (~> 0.2.0)
|
buftok (~> 0.2.0)
|
||||||
|
@ -533,6 +535,7 @@ DEPENDENCIES
|
||||||
thin
|
thin
|
||||||
tumblr_client
|
tumblr_client
|
||||||
turbolinks
|
turbolinks
|
||||||
|
twemoji-rails
|
||||||
twitter
|
twitter
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
unicorn
|
unicorn
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#= require jquery.turbolinks
|
#= require jquery.turbolinks
|
||||||
#= require turbolinks
|
#= require turbolinks
|
||||||
#= require bootstrap
|
#= require bootstrap
|
||||||
|
#= require twemoji
|
||||||
#= require nprogress
|
#= require nprogress
|
||||||
#= require nprogress-turbolinks
|
#= require nprogress-turbolinks
|
||||||
#= require growl
|
#= require growl
|
||||||
|
@ -64,5 +65,17 @@ _ready = ->
|
||||||
dotColor: '#5e35b1'
|
dotColor: '#5e35b1'
|
||||||
lineColor: '#5e35b1'
|
lineColor: '#5e35b1'
|
||||||
|
|
||||||
|
if twemoji?
|
||||||
|
twemoji.parse document.body,
|
||||||
|
size: 16
|
||||||
|
callback: (icon, options) ->
|
||||||
|
switch icon
|
||||||
|
# copyright, registered, trademark
|
||||||
|
when 'a9' or 'ae' or '2122'
|
||||||
|
false
|
||||||
|
else
|
||||||
|
''.concat(options.base, options.size, '/', icon, options.ext)
|
||||||
|
|
||||||
|
|
||||||
$(document).ready _ready
|
$(document).ready _ready
|
||||||
$(document).on 'page:load', _ready
|
$(document).on 'page:load', _ready
|
||||||
|
|
Loading…
Reference in a new issue