Retrospring/app/javascript/packs/legacy.coffee

27 lines
733 B
CoffeeScript
Raw Normal View History

import 'core-js/stable'
import 'regenerator-runtime/runtime'
import '../legacy/jquery'
import 'popper.js'
import 'bootstrap'
import 'particleground/jquery.particleground.min'
import '../legacy/pagination'
import '../legacy/util'
_ready = ->
2022-01-13 13:51:04 -08:00
$('[data-toggle="tooltip"]').tooltip()
$('.dropdown-toggle').dropdown()
if document.getElementById('particles')?
jumbo = $ '.j2-jumbo'
bodyColorOrig = jumbo.css 'background-color'
bodyColor = doppler 0.25, bodyColorOrig
console.log bodyColor, bodyColorOrig
particleground document.getElementById('particles'),
dotColor: bodyColor
lineColor: bodyColor
2015-09-20 06:16:24 -07:00
density: 23000
2015-05-12 14:53:42 -07:00
$(document).ready _ready
2022-01-13 13:51:04 -08:00
$(document).on 'turbolinks:load', _ready