41 lines
849 B
JavaScript
41 lines
849 B
JavaScript
(function($) {
|
|
"use strict";
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#blog .owl-carousel').owlCarousel({
|
|
autoplay: true,
|
|
autoPlaySpeed: 5000,
|
|
smartSpeed: 3000,
|
|
autoplayTimeout: 10000,
|
|
loop:true,
|
|
responsiveClass:false,
|
|
dots: true,
|
|
nav: false,
|
|
//navText: ['<i class="fa fa-arrow-left fa-2x"></i>','<i class="fa fa-arrow-right fa-2x"></i>'], //Note, if you are not using Font Awesome in your theme, you can change this to Previous & Next
|
|
responsive:{
|
|
0:{
|
|
items: 1
|
|
}
|
|
// ,
|
|
// 600:{
|
|
// items: 2
|
|
// },
|
|
// 1000:{
|
|
// items: 2
|
|
// }
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
})
|
|
// var $owl = $('.owl-carousel').owlCarousel({
|
|
// items: 1,
|
|
// loop:true
|
|
// });
|
|
|
|
// $owl.trigger('refresh.owl.carousel');
|
|
})(jQuery);
|