hexo/node_modules/hexo-theme-fluid/layout/_partials/plugins/nprogress.ejs

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>
<% } %>