From 964c085c194be31747ac708207cbe995f22f8e2e Mon Sep 17 00:00:00 2001 From: hanasaki-misaki Date: Sat, 18 Mar 2023 11:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3rss=5Fscript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Static/Gui/js/new_Rss.js | 12 +++++++++++- news.html | 14 ++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Static/Gui/js/new_Rss.js b/Static/Gui/js/new_Rss.js index 6b200fb..e8ce52a 100644 --- a/Static/Gui/js/new_Rss.js +++ b/Static/Gui/js/new_Rss.js @@ -28,6 +28,12 @@ function getRSS(url) { `; + // 完成后删除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"); + + diff --git a/news.html b/news.html index 0cc1480..9eb8341 100644 --- a/news.html +++ b/news.html @@ -165,14 +165,12 @@ + // 页面加载完成后执行 + $(function () { + // 初始化 wow.js + new WOW().init(); + }); + \ No newline at end of file