', { 'src': "https://www.youtube.com/embed/" + $(this).attr("id") + "?rel=0;&autoplay=1", "allowfullscreen": "allowfullscreen", "allow": "autoplay; encrypted-media" }); $(this).replaceWith(iframe); }); $(window).on('load', function () { var productSlider = $("#slider").bxSlider({ pager: false, controls: true, slideWidth: 440, slideMargin: 15, maxSlides: 2, minSlides: 1, moveSlides: 2 }); }); $(window).on('load', function () { var productSlider = $("#treaticons").bxSlider({ pager: false, controls: true, slideWidth: 220, slideMargin: 15, maxSlides: 5, minSlides: 2, moveSlides: 1, pause: 4000 }); }); $('._top-banner').height($('._banner-content').height() + 100); $('#prices-mob').dwCarousel({ items: 1, loop: true, dots: false, dotsEach:true, stagePadding: 0, navText: ["", ""], nav: true, margin: 16, navContainer:".price-nav", });