Day: March 21, 2015
-
Using JS to mimic media queries
Sometimes this is required. To do this use: var winSize = window.outerWidth; if(winSize === undefined){ winSize = $(window).width(); } console.log(winSize); if (winSize > 480) { // change style for non-mobile } else { // change style for mobile } View the demo Download the demo