Skip to content

Commit

Permalink
subtitles toggle styling
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkolesidis committed Feb 6, 2023
1 parent cf9e554 commit 23036f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ subtitlesButton.addEventListener("click", () => {
if (subtitlesEnabled) {
subtitlesEnabled = false;
subtitlesButton.innerHTML = `Subtitles: OFF`;
subtitlesButton.style.color = `rgb(255, 255, 255)`;
} else {
subtitlesEnabled = true;
subtitlesButton.innerHTML = `Subtitles: ON`;
subtitlesButton.style.color = `rgb(199, 154, 115)`;
}
});

Expand Down
2 changes: 2 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ body {
top: 0;
left: 0;
cursor: pointer;
padding: 0.4em;
font-size: 1.1em;
}

#subtitles {
Expand Down

1 comment on commit 23036f0

@vercel
Copy link

@vercel vercel bot commented on 23036f0 Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.