2025-2-26-fixed
This commit is contained in:
12
themes/fluid/layout/_partials/plugins/nprogress.ejs
Normal file
12
themes/fluid/layout/_partials/plugins/nprogress.ejs
Normal file
@@ -0,0 +1,12 @@
|
||||
<% 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>
|
||||
<% } %>
|
||||
Reference in New Issue
Block a user