diff --git a/html/poketube.ejs b/html/poketube.ejs
index 846b3d12..fffd24f1 100644
--- a/html/poketube.ejs
+++ b/html/poketube.ejs
@@ -2177,25 +2177,46 @@ a {
<% } %>
@@ -2263,6 +2284,8 @@ a {
+
+
@@ -3194,21 +3217,21 @@ function resumeProgress() {
video.currentTime = progress;
}
}
-// Define a function to toggle the CSS class for box-shadow
-function toggleBoxShadowClass() {
- const videoElement = document.getElementById('video');
- if (videoElement.classList.contains('box-shadow-0em')) {
- videoElement.classList.remove('box-shadow-0em');
- videoElement.classList.add('box-shadow-custom');
+
+// Define a function to toggle the opacity
+function toggleOpacity() {
+ const element = document.getElementById('shadow');
+ const currentOpacity = parseFloat(window.getComputedStyle(element).opacity);
+
+ if (currentOpacity === 1) {
+ element.style.opacity = 0;
} else {
- videoElement.classList.remove('box-shadow-custom');
- videoElement.classList.add('box-shadow-0em');
+ element.style.opacity = 1;
}
}
-// Call the toggleBoxShadowClass function every 200ms after the page loads
-window.onload = function() {
- setInterval(toggleBoxShadowClass, 200);
+ window.onload = function() {
+ setInterval(toggleOpacity, 200);
};
video.addEventListener('timeupdate', () => {