Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const browser = window.matchMedia('(max-width: 600px)').matches;
- if(browser){
- let menu = document.querySelector('.menu');
- menu.classList.add('.menu-mobile');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement