From 0105f44bb3e6bb1b35c659c11db79b6859858bbf Mon Sep 17 00:00:00 2001 From: Sieghard Hillbrecht Date: Mon, 16 Sep 2024 11:33:31 +0200 Subject: [PATCH] SPIN-146 // added missing semicolons --- scripts/scripts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index e37a0c2..f994b51 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -94,15 +94,15 @@ function decorateSectionsWithPlanetToBackgroundAnimation(main) { // nextSection.querySelector('.section-planet').classList.add('hidden'); previousSection.querySelectorAll('.section-planet').forEach((planet) => { planet.classList.add('hidden'); - }) + }); nextSection.querySelectorAll('.section-planet').forEach((planet) => { planet.classList.add('hidden'); - }) + }); } else if (entry.boundingClientRect.top > 0) { entry.target.classList.add('background-hidden'); previousSection.querySelectorAll('.section-planet').forEach((planet) => { planet.classList.remove('hidden'); - }) + }); } else if (entry.boundingClientRect.top < 0) { entry.target.classList.add('background-hidden'); nextSection.querySelector('.section-planet').classList.remove('hidden');