This commit is contained in:
2023-06-25 17:08:38 +02:00
parent a30c792654
commit 3e5702b105
+2 -4
View File
@@ -188,15 +188,13 @@
*/
function menuOpacity() {
const navbar = document.getElementById("radio");
let y = navbar.scrollTop;
if (y > 10) {
const navbar = document.getElementById("navbar");
if (window.scrollY > 10) {
navbar.style.setProperty('--bs-bg-opacity', 1);
}
else {
navbar.style.setProperty('--bs-bg-opacity', 0);
}
console.log(y);
}
</script>
</body>