RPeraltaJr
11/30/2018 - 7:08 PM

Detect Window Size

Detect browser width/size; Responsive;

$( window ).resize(function() {
    var width = $(window).width();
    // console.log(width);

    if ( width >= 992 ) {
      console.log(width);
    } else {
      console.log('small devices');
    } 
});