commit
This commit is contained in:
+18
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user