修正rss_script
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
|
||||
12
news.html
12
news.html
@@ -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>
|
||||
Reference in New Issue
Block a user