We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f640e3 commit dff0f77Copy full SHA for dff0f77
apps/website/src/sections/Spotlight.astro
@@ -112,6 +112,13 @@ import PlayButtonSymbol from "../assets/videos/play-button-symbol.svg";
112
playButton.addEventListener("click", () => video.play());
113
video.addEventListener("play", togglePlayButton);
114
video.addEventListener("pause", togglePlayButton);
115
+ video.addEventListener("click", () => {
116
+ if (video.paused) {
117
+ video.play();
118
+ } else {
119
+ video.pause();
120
+ }
121
+ });
122
});
123
</script>
124
0 commit comments