Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (window.location.hash == '#about') {
- $('.topnav').css('background-color', 'red');
- }
- $("section.nav div.bottomnav ul li a").click(function(){
- $("section.nav div.bottomnav ul li a").removeClass("active");
- $(this).addClass('active');
- if (window.location.hash == '#about') {
- $('.topnav').css('background-color', 'red');
- }
- });
Add Comment
Please, Sign In to add comment