You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
650 B
37 lines
650 B
#= require jquery
|
|
#= require jquery_ujs
|
|
#= require jquery.turbolinks
|
|
#= require turbolinks
|
|
#= require foundation
|
|
|
|
# FRONT END
|
|
|
|
# JS HANDLEBARS TEMPLATES
|
|
# require handlebars.runtime
|
|
|
|
# I18n
|
|
#= require i18n
|
|
#= require i18n/translations
|
|
|
|
# ALL THE REST
|
|
#= require_tree .
|
|
|
|
'use strict'
|
|
|
|
I18n.defaultLocale = '<%= I18n.default_locale %>'
|
|
I18n.locale = $('html').attr 'lang'
|
|
|
|
startSpinner = ->
|
|
$('#loading-spinner').show()
|
|
|
|
stopSpinner = ->
|
|
$('#loading-spinner').fadeOut()
|
|
|
|
# Turbolinks Spinner
|
|
document.addEventListener 'page:fetch', startSpinner
|
|
document.addEventListener 'page:receive', stopSpinner
|
|
|
|
alert('321');
|
|
|
|
$ ->
|
|
$(document).foundation();
|
|
|