mirror of https://github.com/jkjoy/sunpeiwen.git
13 lines
459 B
Plaintext
13 lines
459 B
Plaintext
<% if (theme.fun_features.progressbar && theme.fun_features.progressbar.enable){ %>
|
|
<%- js_ex(theme.static_prefix.nprogress, 'nprogress.min.js') %>
|
|
<%- css_ex(theme.static_prefix.nprogress, 'nprogress.min.css') %>
|
|
|
|
<script>
|
|
NProgress.configure(<%- JSON.stringify(theme.fun_features.progressbar.options || '{}') %>)
|
|
NProgress.start()
|
|
window.addEventListener('load', function() {
|
|
NProgress.done();
|
|
})
|
|
</script>
|
|
<% } %>
|