File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
apps/website/src/sections Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @quassel/website " : patch
3
+ ---
4
+
5
+ Fix bubble and play button odd behaviours, and insert metadata into <html > tags.
Original file line number Diff line number Diff line change @@ -105,22 +105,22 @@ import PlayButton from "../assets/videos/play-button.svg";
105
105
<script >
106
106
document.addEventListener("DOMContentLoaded", () => {
107
107
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;
109
109
let isPlaying = false;
110
110
111
111
video.classList.add("video-not-interactive");
112
112
113
- myButton .addEventListener("click", () => {
113
+ playButton .addEventListener("click", () => {
114
114
video.play();
115
115
isPlaying = true;
116
- myButton .classList.add("playButton-invisible");
116
+ playButton .classList.add("playButton-invisible");
117
117
video.classList.remove("video-not-interactive");
118
118
});
119
119
120
120
video.addEventListener("pause", () => {
121
121
if (isPlaying) {
122
122
isPlaying = false;
123
- myButton .classList.remove("playButton-invisible");
123
+ playButton .classList.remove("playButton-invisible");
124
124
video.classList.add("video-not-interactive");
125
125
}
126
126
});
You can’t perform that action at this time.
0 commit comments