116 lines
3.6 KiB
JavaScript
116 lines
3.6 KiB
JavaScript
|
new WOW().init();
|
||
|
$(document).ready(function() {
|
||
|
$("#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:2,
|
||
|
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);
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
$( '.main-content' ).each(function() {
|
||
|
$(this).find('.block-title a').click(function(e){
|
||
|
e.preventDefault();
|
||
|
if($(this).parent().parent().hasClass('active') ){
|
||
|
$(this).parent().parent().removeClass('active');
|
||
|
}
|
||
|
else{
|
||
|
$(this).parent().parent().addClass('active');
|
||
|
}
|
||
|
});
|
||
|
$('.grid-mode-btn').click(function(e){
|
||
|
e.preventDefault();
|
||
|
$(this).parent().find('a').removeClass('active');
|
||
|
$(this).addClass('active');
|
||
|
$('#tabs-grid').show();
|
||
|
$('#tabs-list').hide();
|
||
|
});
|
||
|
$('.list-mode-btn').click(function(e){
|
||
|
e.preventDefault();
|
||
|
$(this).parent().find('a').removeClass('active');
|
||
|
$(this).addClass('active');
|
||
|
$('#tabs-grid').hide();
|
||
|
$('#tabs-list').show();
|
||
|
});
|
||
|
});
|