修正rss_script

This commit is contained in:
hanasaki-misaki
2023-03-18 11:19:36 +08:00
parent 8026f7a79b
commit 964c085c19
2 changed files with 17 additions and 9 deletions

View File

@@ -28,6 +28,12 @@ function getRSS(url) {
</a>
</li>
`;
// 完成后删除li中class类中的dnone
document.querySelector("li").classList.remove("dnone");
//添加li标签里的class类 wow animate__animated animate__fadeInRight
document.querySelector("li").classList.add("wow", "animate__animated", "animate__fadeInRight");
//删除id 为loadprogress的元素
document.getElementById("loadprogress").remove();
//若是没有的item元素则在页面li添加没有内容”
if (items.length === 0) {
document.querySelector("ul").innerHTML += `
@@ -38,7 +44,11 @@ function getRSS(url) {
}
});
});
}
//调用函数传入rss文件的url这里是一个示例
getRSS("http://www.mikumo.top/?feed=rss2");
getRSS("https://rss.lolicon.team/?feed=rss2");

View File

@@ -165,14 +165,12 @@
<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>
// 页面加载完成后执行
$(function () {
// 初始化 wow.js
new WOW().init();
setTimeout(function () {
$("body").css("overflow", "auto");
$('#loadprogress').hide();
$('.idc').removeClass('dnone');
$('.idc').addClass('wow animate__animated animate__fadeInRight');
}, 3000);
</script>
});
</script>
</body>
</html>