Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function hb_borka_sections() {
  2.     var $fwh;
  3.     var $width = jQuery(window).width();
  4.  
  5.     $fwh = (( $width - parseInt(jQuery('.hb-main-content').width()) ) / 2);
  6.  
  7.     jQuery('.carousel-anything-container').each(function(){
  8.         jQuery(this).css({
  9.             'left': -$fwh,
  10.             'width': $width,
  11.             'height': 'auto',
  12.             'position': 'relative'
  13.         });
  14.     });
  15. }
  16.  
  17. jQuery(document).ready(function () { hb_borka_sections(); });
  18. jQuery(window).resize(function(){ hb_borka_sections(); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement