aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/anime/components')
-rw-r--r--src/app/anime/components/episode_buttons.jsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app/anime/components/episode_buttons.jsx b/src/app/anime/components/episode_buttons.jsx
index 3336470..9d6e1ca 100644
--- a/src/app/anime/components/episode_buttons.jsx
+++ b/src/app/anime/components/episode_buttons.jsx
@@ -31,6 +31,16 @@ const EpisodesButtons = ({ data: data }) => {
}
function createButtonGroups(start, end) {
+ try {
+ document.getElementById("episode-button").style.backgroundColor =
+ "#1f1f1fd2";
+ } catch (error) {
+ console.error(
+ "ERROR: This error is expected. This is done in order to reset the background color of the buttons. I can't think of a better way than this....so yeah.",
+ error.message
+ );
+ }
+
return (
<div className={styles.animeButtonContainer}>
{data.episodes &&
@@ -38,6 +48,7 @@ const EpisodesButtons = ({ data: data }) => {
<button
className={styles.dramaButton}
key={index}
+ id="episode-button"
onClick={(event) => {
event.target.style.backgroundColor =
"var(--soft-purple)";