修改script

This commit is contained in:
hanasaki-misaki
2023-03-18 10:57:38 +08:00
parent 479a3a287e
commit 8026f7a79b
4 changed files with 40 additions and 57 deletions

View File

@@ -11,7 +11,9 @@
<link rel="stylesheet" href="Static\mdui-v1.0.1\css\animate.min.css">
<link rel="stylesheet" href="Static\bootstrap-4.6.2-dist\css\bootstrap.min.css">
<style>
body{
overflow:hidden;
}
</style>
<script>
/* Navigation bar script, hide when scrolling down, show when scrolling up */
@@ -163,22 +165,13 @@
<script src="Static\mdui-v1.0.1\js\wow.min.js" type="text/javascript"></script>
<script src="Static\bootstrap-4.6.2-dist\js\bootstrap.min.js" type="text/javascript"></script>
<script>
// 未加载完成网页资源前需要阻止所有动画效果网页资源加载完成后隐藏div id类为loadprogress的元素
$(window).on('load', function (callback) {
$('body').css({overflow: 'hidden'});
$('body').removeClass('wow-animate__animated');
setTimeout(function () {
$('body').css({overflow: 'auto'});
$('#loadprogress').hide();
new_Rss();
new WOW().init();
callback && callback();
clearTimeout(loadTimer);
}, 2000);
});
// 加载完成后再运行new_Rss.js
new WOW().init();
setTimeout(function () {
$("body").css("overflow", "auto");
$('#loadprogress').hide();
$('.idc').removeClass('dnone');
$('.idc').addClass('wow animate__animated animate__fadeInRight');
}, 3000);
</script>
</body>