Horje
jquery check if screen size Code Example
jquery check if screen size
if ($(window).width() < 960) {
   alert('Less than 960');
}
else {
   alert('More than 960');
}
detecting screen width in jquery
var windowsize = $(window).width();

$(window).resize(function() {
  var windowsize = $(window).width();
});

if (windowsize > 440) {
  //if the window is greater than 440px wide then turn on jScrollPane..
    $('#pane1').jScrollPane({
       scrollbarWidth:15, 
       scrollbarMargin:52
    });
}
jquery if screen size
$(document).ready(function() {
    if($(window).width() >= 1024) {
        $('a.expand').click();
    }
});




Javascript

Related
momentjs cdn Code Example momentjs cdn Code Example
how to install react router dom version 5 Code Example how to install react router dom version 5 Code Example
collection.ensureIndex is deprecated Code Example collection.ensureIndex is deprecated Code Example
react native hide scroll indicator Code Example react native hide scroll indicator Code Example
google colab clicker Code Example google colab clicker Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
20