// Masonry settings to organize front page type 'Boxed' and footer widgets var enquire; ( function($) { "use strict"; $(window).load(function() { var container = $('.footer-widgets'); enquire.register("screen and (min-width:715px)", { // Triggered when a media query matches. match : function() { container.masonry({ columnWidth: '.widget', itemSelector: '.widget', singleMode:true, isFitWidth: true, isAnimated: true //isAnimated: !Modernizr.csstransitions }).imagesLoaded(function() { container.masonry('reloadItems'); }); }, // Triggered when the media query transitions // *from a matched state to an unmatched state*. unmatch : function() { container.masonry('destroy'); } }); }); } )( jQuery );