mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-15 18:10:59 -07:00
16 lines
326 B
Text
16 lines
326 B
Text
NProgress = require \nprogress
|
|
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
|