From 3bdf5a52541f4515e94ba2cac2813793c2f0faac Mon Sep 17 00:00:00 2001 From: ashley Date: Fri, 10 May 2024 21:22:58 +0000 Subject: [PATCH] test ignore --- html/poketube.ejs | 59 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 18 deletions(-) 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', () => {