Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
media jquery
var $mql = window.matchMedia('(min-width: 992px)');
var handleMQL = function ($mql) {
if ($mql.matches) {
} else {
}
};
handleMQL($mql);
$mql.addListener(handleMQL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment