This commit is contained in:
2023-06-25 16:59:57 +02:00
parent 9a448864e5
commit dca97b0497
+18 -2
View File
@@ -177,13 +177,29 @@
}
}
streamBtnActivate();
setInterval(streamBtnActivate, 10000);
/*
var box = document.getElementById("nav-podcast");
var boxAfter = window.getComputedStyle(box, "::after");
console.log(boxAfter.backgroundColor); // getting the background color
console.log(boxAfter.opacity); // getting the background color
*/
function menuOpacity() {
const navbar = document.getElementById("navbar");
let y = navbar.scrollTop;
if (y > 10) {
navbar.style.setProperty('--bs-bg-opacity', 1);
}
else {
navbar.style.setProperty('--bs-bg-opacity', 0);
}
}
streamBtnActivate();
setInterval(streamBtnActivate, 10000);
</script>
</body>
</html>