blog/themes/fluid/layout/_partials/plugins/nprogress.ejs
2024-11-16 11:34:10 +08:00

13 lines
447 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>
<% } %>