diff --git a/asset/static/error/404.js b/asset/static/error/404.js index 150f9d2..116ae31 100644 --- a/asset/static/error/404.js +++ b/asset/static/error/404.js @@ -1,5 +1,11 @@ +$(window).on("backstretch.before", function () { + window.NProgress.start(); +}); +$(window).on("backstretch.after", function () { + window.NProgress.done(); +}); jQuery(document).ready(function () { var pageImage = "/static/error/404.jpg"; - jQuery.backstretch(pageImage); + jQuery.backstretch(pageImage, {speed: 400}); }); diff --git a/asset/template/index.html b/asset/template/index.html index 1e9a323..bde468a 100755 --- a/asset/template/index.html +++ b/asset/template/index.html @@ -2,8 +2,8 @@ {% block body %}