JS Detectar el cambio del tamaño de la pantalla
window.onresize = function(){
console.log("resize");
}
If-dev
window.onresize = function(){
console.log("resize");
}
$(window).resize(function() {
/* Do shit */
console.log('window was resized');
});