Last active
February 13, 2024 16:45
-
-
Save IgorGavrilenko/8e0ad8f02bcb0c2f45c0b5359b404c0f to your computer and use it in GitHub Desktop.
media jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const query = window.matchMedia('(min-width: 1200px)'); | |
query.onchange = (evt) => { | |
if(query.matches) { | |
} | |
}; | |
query.onchange(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment