jquery check if screen size
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
jquery check if screen size
if ($(window).width() < 960) {
alert('Less than 960');
}
else {
alert('More than 960');
}
javascript check less width of window
window.addEventListener("resize", function() {
if (window.matchMedia("(min-width: 500px)").matches) {
console.log("Screen width is at least 500px")
} else {
console.log("Screen less than 500px")
}
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us