Skip to content

Commit 4befcb1

Browse files
committed
chore: change play button name, and add changeset file.
1 parent 07151a1 commit 4befcb1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/giant-oranges-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/website": patch
3+
---
4+
5+
Fix bubble and play button odd behaviours, and insert metadata into <html> tags.

apps/website/src/sections/Spotlight.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ import PlayButton from "../assets/videos/play-button.svg";
105105
<script>
106106
document.addEventListener("DOMContentLoaded", () => {
107107
const video = document.querySelector("video") as HTMLVideoElement;
108-
const myButton = document.getElementsByClassName("playButton")[0] as HTMLButtonElement;
108+
const playButton = document.getElementsByClassName("playButton")[0] as HTMLButtonElement;
109109
let isPlaying = false;
110110

111111
video.classList.add("video-not-interactive");
112112

113-
myButton.addEventListener("click", () => {
113+
playButton.addEventListener("click", () => {
114114
video.play();
115115
isPlaying = true;
116-
myButton.classList.add("playButton-invisible");
116+
playButton.classList.add("playButton-invisible");
117117
video.classList.remove("video-not-interactive");
118118
});
119119

120120
video.addEventListener("pause", () => {
121121
if (isPlaying) {
122122
isPlaying = false;
123-
myButton.classList.remove("playButton-invisible");
123+
playButton.classList.remove("playButton-invisible");
124124
video.classList.add("video-not-interactive");
125125
}
126126
});

0 commit comments

Comments
 (0)