diff --git a/footer.php b/footer.php index 275b8de..3cb2b82 100644 --- a/footer.php +++ b/footer.php @@ -147,46 +147,54 @@ - + + + + options->switch) && in_array('ShowLoadingLine', $this->options->switch)): ?> + NProgress.configure({ + showSpinner: true + }); + NProgress.start(); + $('#nprogress .bar').css({ + 'background': 'options->loadingcolor(); ?>' + }); + $('#nprogress .peg').css({ + 'box-shadow': '0 0 10px options->loadingcolor(); ?>, 0 0 15px options->loadingcolor(); ?>' + }); + $('#nprogress .spinner-icon').css({ + 'border-top-color': 'options->loadingcolor(); ?>', + 'border-left-color': 'options->loadingcolor(); ?>' + }); + setTimeout(function() { + NProgress.done(); + $('.fade').removeClass('out'); + }, options->loadingbuffer(); ?>); + options->switch) && in_array('SmoothScroll', $this->options->switch) && UACheck::is() !== "Safari"): ?> @@ -226,33 +234,35 @@ function() { - + for (var i = 0; i < scriptList.length; ++i) { + var item = scriptList[i]; + lsloader.runInlineScript(item.id,item.id); + } + })() + + footer(); ?>