jormungandr-bite/src/web/app/common/scripts/loading.ls

17 lines
326 B
Text
Raw Normal View History

2017-01-13 09:16:30 -07:00
NProgress = require \nprogress
2016-12-28 15:49:51 -07:00
NProgress.configure do
trickle-speed: 500ms
show-spinner: false
root = document.get-elements-by-tag-name \html .0
module.exports =
start: ~>
root.class-list.add \progress
NProgress.start!
done: ~>
root.class-list.remove \progress
NProgress.done!
set: (val) ~>
NProgress.set val