May 15, 2015
jQuery(document).ready(function($){ var responsive_viewport = $(window).width(); if (responsive_viewport >= 641) { $(’.ceros-wrap .ceros-desktop’).css(’display’, ’block’); $(’.ceros-wrap .ceros-mobile’).css(’display’, ’none’); } if (responsive_viewport <= 640) { $(’.ceros-wrap .ceros-desktop’).css(’display’, ’none’); $(’.ceros-wrap .ceros-mobile’).css(’display’, ’block’); } function resizewindow(){ responsive_viewport = $(window).width(); if (responsive_viewport >= 641) { $(’.ceros-wrap .ceros-desktop’).css(’display’, ’block’); $(’.ceros-wrap .ceros-mobile’).css(’display’, ’none’); } if (responsive_viewport <= 640) { $(’.ceros-wrap .ceros-desktop’).css(’display’, ’none’); $(’.ceros-wrap .ceros-mobile’).css(’display’, ’block’); } } var scaleit; window.onresize = function(){ clearTimeout(scaleit); scaleit = setTimeout(resizewindow, 400); }; });