提交 725fdf86 编写于 作者: C Christian Esperar

Fix Uncaught TypeError: Cannot read property 'style' of null when NProgress start

上级 06b2c0c3
......@@ -25,9 +25,6 @@
<script src="js/jquery.min.js"></script>
<script src="js/nprogress.js"></script>
<script>
NProgress.start();
</script>
<!--[if lt IE 9]>
<script src="../assets/js/ie8-responsive-file-warning.js"></script>
......
......@@ -303,6 +303,7 @@ $(function () {
});
/** ****** Accordion *********************** **/
/** ****** scrollview *********************** **/
$(document).ready(function () {
......@@ -312,4 +313,16 @@ $(document).ready(function () {
});
});
/** ****** /scrollview *********************** **/
\ No newline at end of file
/** ****** /scrollview *********************** **/
/** ****** NProgress *********************** **/
if (typeof NProgress != 'undefined') {
$(document).ready(function () {
NProgress.start();
});
$(window).load(function () {
NProgress.done();
});
}
/** ****** NProgress *********************** **/
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册