/** * 2022 Anvanto * * NOTICE OF LICENSE * * This file is not open source! Each license that you purchased is only available for 1 wesite only. * If you want to use this file on more websites (or projects), you need to purchase additional licenses. * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. * * @author Anvanto * @copyright 2022 Anvanto * @license Valid for 1 website (or project) for each purchase of license * International Registered Trademark & Property of Anvanto */ (function ($, window, undefined) { 'use strict'; $(document).ready(function(){ $('.an_homeslider').addClass('owl-carousel'); $('.an_homeslider').each(function(i, val) { var anhs_id = '#'+$(this).attr('id'); $(anhs_id).owlCarouselAnBS({ items: 1, loop: $(anhs_id).data('loop'), nav: $(anhs_id).data('nav'), autoplay: $(anhs_id).data('autoplay'), navText: ['',''], autoplayTimeout: $(anhs_id).data('autoplaytimeout'), smartSpeed: $(anhs_id).data('smartspeed'), dots: $(anhs_id).data('dots'), dotsClass: 'owl-dots container', lazyLoad: $(anhs_id).data('lazy'), onInitialize: callFixAuto, }); function callFixAuto() { if ($(anhs_id).data('autoplay')) { setTimeout(function(){$(anhs_id).addClass('slide-next');}, $(anhs_id).data('autoplaytimeout')); } } $(this).parent('.an_homeslider-block').addClass('initialized'); }); }); })(jQuery, window);