From 05b1210a64bf96558aeaa00574588c7a89757309 Mon Sep 17 00:00:00 2001 From: Atharva Karanjekar Date: Tue, 25 Jun 2024 10:49:55 +0530 Subject: [PATCH] minor changes --- css/index.css | 14 ++++++-------- js/index.js | 3 +++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/css/index.css b/css/index.css index 67385f4..bdff583 100644 --- a/css/index.css +++ b/css/index.css @@ -159,7 +159,7 @@ body { display: inline; margin-top: 100px; font-family: 'Quicksand'; - font-size: 40px; + font-size: 35px; margin-left: 20px; } @@ -170,7 +170,7 @@ body { display: inline; margin-top: 60px; font-family: 'Quicksand'; - font-size: 40px; + font-size: 35px; margin-left: 20px; } @@ -249,7 +249,7 @@ body { .currently-airing-scroll-buttons { float: right; - margin-top: 120px; + margin-top: 115px; font-size: 30px; cursor: pointer; background-color: rgb(20, 20, 20); @@ -261,7 +261,7 @@ body { .scroll-buttons { float: right; - margin-top: 80px; + margin-top: 75px; font-size: 30px; cursor: pointer; background-color: rgb(20, 20, 20); @@ -630,8 +630,7 @@ body { } .currently-airing-scroll-buttons { - margin-top: 160px; - font-size: 50px; + display: none; } #airing-now-container, @@ -687,8 +686,7 @@ body { } .scroll-buttons { - font-size: 50px; - margin-top: 65px; + display: none; } .anime-cards { diff --git a/js/index.js b/js/index.js index a9ff2f2..312fa18 100644 --- a/js/index.js +++ b/js/index.js @@ -573,6 +573,7 @@ function homePageDiv() { function handleAiringNowData(data) { // console.log(data, "Currently airing anime"); + airingNowDiv.innerHTML = ""; for (const anime of data.data.Page.media) { const animeCard = document.createElement("div"); animeCard.classList.add("airing-now-anime-cards"); @@ -740,6 +741,7 @@ function homePageDiv() { function handlePopularAnimeData(data) { // console.log(data, "Popular anime data"); + popAnimeDiv.innerHTML = ""; for (const anime of data.data.Page.media) { const animeCard = document.createElement("div"); animeCard.classList.add("anime-cards"); @@ -889,6 +891,7 @@ function homePageDiv() { function handleTopAnimeData(data) { // console.log(data, "Top anime data"); + topAnimeDiv.innerHTML = ""; for (const anime of data.data.Page.media) { const animeCard = document.createElement("div"); animeCard.classList.add("anime-cards");