Я создал пользовательские точки совы.Это работает нормально, но сова по умолчанию не показывает точки карусели.Я не могу понятьвот мой сценарий:
`jQuery(document).ready(function ($) {
"use strict";
/*** =====================================
* Testimonial Slider
* =====================================***/
$('.testimonial_slider').owlCarousel({
items: 1,
autoHeight: true,
autoplay: true,
center : true,
dots: true,
addClassActive: true,
loop: true,
nav: false,
dotsContainer : '.custom_owl_carousel',
});
/*** =====================================
* Custom Owl-carousel
* =====================================***/
$('.custom_owl_carousel > li').on('click', function(){
$('.custom_owl_carousel > li.active').removeClass('active');
$(this).addClass('active');
});
var action = false, clicked = false;
var Owl = {
init: function() {
Owl.carousel();
},
carousel: function() {
var owl;
owl = $('.testimonial_slider').owlCarousel({
items : 1,
dots : true,
center : true,
autoplay : true,
nav : false,
loop : true,
margin : 10,
});
$('.owl-next').on('click',function(){
action = 'next';
});
$('.owl-prev').on('click',function(){
action = 'prev';
});
$('.custom_owl_carousel').on('click', 'li', function(e) {
owl.trigger('to.owl.carousel', [$(this).index(), 300]);
});
}
};
Owl.init();
});`