
function repositionStrips() { ijQuery( '.page-element-type-strip' ).each(function(){ var width = ijQuery( window ).width() > 960 ? ijQuery( window ).width() : 960; ijQuery( this ).width( width ); var left = 0 - ( width - 960 ) / 2; ijQuery( this ).css( 'left', left + 'px' ); }); }
ijQuery(document).ready(function(){ repositionStrips(); }); ijQuery(window).resize(function(){ repositionStrips(); });
0 Comments