Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hb_borka_sections() {
- var $fwh;
- var $width = jQuery(window).width();
- $fwh = (( $width - parseInt(jQuery('.hb-main-content').width()) ) / 2);
- jQuery('.carousel-anything-container').each(function(){
- jQuery(this).css({
- 'left': -$fwh,
- 'width': $width,
- 'height': 'auto',
- 'position': 'relative'
- });
- });
- }
- jQuery(document).ready(function () { hb_borka_sections(); });
- jQuery(window).resize(function(){ hb_borka_sections(); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement