Line 76: | Line 76: | ||
.navbartu { | .navbartu { | ||
z-index: 1; | z-index: 1; | ||
− | background-color: rgba( | + | background-color: rgba(255,255,255,0); |
top:16px; | top:16px; | ||
width:100%; | width:100%; | ||
Line 664: | Line 664: | ||
function scrollFunction() { | function scrollFunction() { | ||
if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) { | if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) { | ||
− | document.getElementById("myTopnav").style.backgroundColor = "rgba( | + | document.getElementById("myTopnav").style.backgroundColor = "rgba(2,2,2,0.5)"; |
$('#myTopnav').addClass('floatingNav'); | $('#myTopnav').addClass('floatingNav'); | ||
} else { | } else { | ||
− | document.getElementById("myTopnav").style.backgroundColor = "rgba( | + | document.getElementById("myTopnav").style.backgroundColor = "rgba(255,255,255,0)"; |
$('#myTopnav').removeClass('floatingNav'); | $('#myTopnav').removeClass('floatingNav'); | ||
Revision as of 07:39, 17 October 2019