From 361e6c25441eb160f053ce41be27b1d917770daf Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 17 Jun 2022 20:19:41 -0700 Subject: [PATCH] Add blog RSS scraper --- script.js => anilist.js | 4 ++-- index.html | 9 +++++++-- rss.js | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 4 deletions(-) rename script.js => anilist.js (97%) create mode 100644 rss.js diff --git a/script.js b/anilist.js similarity index 97% rename from script.js rename to anilist.js index c318f4a..f46161f 100644 --- a/script.js +++ b/anilist.js @@ -39,7 +39,7 @@ fetch("https://graphql.anilist.co", options) }); }) .then(data => { - const container = document.querySelector(".activities"); + const container = document.querySelector("#anime"); container.innerHTML = ""; const activities = data.data.Page.activities; let displayedIds = []; @@ -83,4 +83,4 @@ fetch("https://graphql.anilist.co", options) .catch(error => { document.querySelector(".activities").innerHTML = "Failed to load!"; console.error(error); - }); \ No newline at end of file + }); diff --git a/index.html b/index.html index f700cbd..0596b59 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,8 @@ Elnu's Homepage - + +