mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 05:48:57 +01:00
remove border radius when da video is full screen owowowowowowowowo
This commit is contained in:
parent
832e562cfb
commit
a68bb6a2cf
1 changed files with 15 additions and 0 deletions
|
@ -1443,6 +1443,21 @@ links.forEach(link => {
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const videoElement = document.getElementById("video");
|
||||||
|
|
||||||
|
// Listen for full screen change events on the video element
|
||||||
|
videoElement.addEventListener("fullscreenchange", () => {
|
||||||
|
if (document.fullscreenElement === videoElement) {
|
||||||
|
// If the video element is in full screen mode, remove the border radius
|
||||||
|
videoElement.style.borderRadius = "0em ";
|
||||||
|
} else {
|
||||||
|
// If the video element exits full screen mode, restore the border radius
|
||||||
|
videoElement.style.borderRadius = "16px";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<% if (!optout) { %>
|
<% if (!optout) { %>
|
||||||
<!-- MORE INFO :https://poketube.fun/privacy -->
|
<!-- MORE INFO :https://poketube.fun/privacy -->
|
||||||
<!-- MORE INFO :https://poketube.fun/privacy -->
|
<!-- MORE INFO :https://poketube.fun/privacy -->
|
||||||
|
|
Loading…
Reference in a new issue