Login

window.addEventListener("load", function(){ document.querySelector(".switcher .selected a").style.color = "white"; }); window.addEventListener("scroll" , function(){ pageFromTop = window.pageYOffset; if(pageFromTop > 50){ document.querySelector(".switcher .selected a").style.color = "#333"; } else{ document.querySelector(".switcher .selected a").style.color = "white"; } })