This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-13 15:38:25 +00:00
|
|
|
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
var owl = jQuery('.owl-carousel');
|
|
|
|
owl.owlCarousel({
|
2017-01-05 12:21:18 +00:00
|
|
|
items:1,
|
2016-05-13 15:38:25 +00:00
|
|
|
loop:true,
|
|
|
|
autoplay:true,
|
2017-01-05 12:24:19 +00:00
|
|
|
autoplayTimeout:5000,
|
2016-05-13 15:38:25 +00:00
|
|
|
animateOut: 'fadeOut',
|
|
|
|
animateIn: 'fadeIn',
|
|
|
|
nav: false,
|
|
|
|
dots: true,
|
|
|
|
autoplayHoverPause:true,
|
|
|
|
margin:0,
|
|
|
|
autoHeight:true
|
|
|
|
});
|
|
|
|
|
|
|
|
jQuery('.play').on('click',function(){
|
|
|
|
owl.trigger('autoplay.play.owl',[1000])
|
|
|
|
});
|
|
|
|
jQuery('.stop').on('click',function(){
|
|
|
|
owl.trigger('autoplay.stop.owl')
|
|
|
|
});
|
|
|
|
});
|