размер окна jQuery
var windowWidth = $(window).width();
$(window).on('resize', function() {
windowWidth = $(window).width();
console.log(windowWidth);
});
Malario
var windowWidth = $(window).width();
$(window).on('resize', function() {
windowWidth = $(window).width();
console.log(windowWidth);
});