110 lines
3.5 KiB
Plaintext
Executable File
110 lines
3.5 KiB
Plaintext
Executable File
new WOW().init();
|
|
$(document).ready(function() {
|
|
$('#carouselOne').owlCarousel({
|
|
loop:true, //Зацикливаем слайдер
|
|
margin:50, //Отступ от элемента справа в 50px
|
|
nav:true, //Отключение навигации
|
|
autoplay:true, //Автозапуск слайдера
|
|
smartSpeed:1000, //Время движения слайда
|
|
autoplayTimeout:2000, //Время смены слайда
|
|
responsive:{ //Адаптивность. Кол-во выводимых элементов при определенной ширине.
|
|
0:{
|
|
items:1
|
|
},
|
|
600:{
|
|
items:2
|
|
},
|
|
1000:{
|
|
items:4
|
|
}
|
|
}
|
|
});
|
|
$("#owl-demo-tabs").owlCarousel({
|
|
items : 5,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,4],
|
|
itemsDesktopSmall : [992,3],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
});
|
|
$("#owl-demo-banner").owlCarousel({
|
|
items : 3,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,4],
|
|
itemsDesktopSmall : [992,3],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
});
|
|
$("#owl-demo-banner-icon").owlCarousel({
|
|
autoPlay: 3000, //Set AutoPlay to 3 seconds
|
|
items : 6,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,6],
|
|
itemsDesktopSmall : [992,5],
|
|
itemsTablet: [768,4],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,3],
|
|
});
|
|
$("#owl-demo").owlCarousel({
|
|
items : 5,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,4],
|
|
itemsDesktopSmall : [992,3],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
});
|
|
$("#owl-demo-tabs-3").owlCarousel({
|
|
items : 5,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,4],
|
|
itemsDesktopSmall : [992,3],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
});
|
|
$("#owl-demo2").owlCarousel({
|
|
// autoPlay: 3000,
|
|
items:20,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,2],
|
|
itemsDesktopSmall : [992,2],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
navigation : false
|
|
});
|
|
$("#owl-demo3").owlCarousel({
|
|
items:2,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,2],
|
|
itemsDesktopSmall : [992,2],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
navigation : false
|
|
});
|
|
$("#owl-demo4").owlCarousel({
|
|
items:2,
|
|
itemsCustom : false,
|
|
itemsDesktop : [1199,2],
|
|
itemsDesktopSmall : [992,2],
|
|
itemsTablet: [768,2],
|
|
itemsTabletSmall: false,
|
|
itemsMobile : [480,1],
|
|
navigation : false
|
|
});
|
|
$( '.main-content' ).each(function() {
|
|
$( this ).find('.nav-tabs li a').click(function(e){
|
|
e.preventDefault();
|
|
var selector = $(this).attr('href');
|
|
$(this).parent().parent().find('a').not(this).removeClass('active');
|
|
$(this).addClass('active');
|
|
$(this).parents('.main-content').find('.sp-contten').not(selector).slideUp(300);
|
|
$(this).parents('.main-content').find(selector).slideDown(300);
|
|
});
|
|
});
|
|
});
|