(function($) {
"use strict";
// ______________ Cover-image
$(".cover-image").each(function() {
var attr = $(this).attr('data-image-src');
if (typeof attr !== typeof undefined && attr !== false) {
$(this).css('background', 'url(' + attr + ') center center');
}
});
// ______________ Global Loader
$(window).on("load", function(e) {
$("#global-loader").fadeOut("slow");
})
// ______________ Color-skin
$(document).ready(function() {
$("a[data-theme]").click(function() {
$("head link#theme").attr("href", $(this).data("theme"));
$(this).toggleClass('active').siblings().removeClass('active');
});
$("a[data-effect]").click(function() {
$("head link#effect").attr("href", $(this).data("effect"));
$(this).toggleClass('active').siblings().removeClass('active');
});
});
// ______________ Modal
$("#myModal").modal('show');
// ______________Rating Stars
var ratingOptions = {
selectors: {
starsSelector: '.rating-stars',
starSelector: '.rating-star',
starActiveClass: 'is--active',
starHoverClass: 'is--hover',
starNoHoverClass: 'is--no-hover',
targetFormElementSelector: '.rating-value'
}
};
$(".rating-stars").ratingStars(ratingOptions);
// ______________mCustomScrollbar
$(".vscroll").mCustomScrollbar();
$(".nav-sidebar").mCustomScrollbar({
theme: "minimal",
autoHideScrollbar: true,
scrollbarPosition: "outside"
});
})(jQuery);
(function($) {
/*---Owl-carousel----*/
// ______________Owl-carousel-icons
var owl = $('.owl-carousel-icons');
owl.owlCarousel({
margin: 25,
loop: true,
nav: true,
autoplay: true,
dots: false,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1300: {
items: 3
}
}
})
// ______________Owl-carousel-icons2
var owl = $('.owl-carousel-icons2');
owl.owlCarousel({
loop: true,
rewind: false,
margin: 25,
animateIn: 'fadeInDowm',
animateOut: 'fadeOutDown',
autoplay: false,
autoplayTimeout: 5000, // set value to change speed
autoplayHoverPause: true,
dots: false,
nav: true,
autoplay: true,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 2,
nav: true
},
1300: {
items: 4,
nav: true
}
}
})
// ______________Owl-carousel-icons3
var owl = $('.owl-carousel-icons3');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
dots: false,
autoplay: true,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 2
}
}
})
// ______________Owl-carousel-icons4
var owl = $('.owl-carousel-icons4');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
dots: false,
autoplay: true,
responsive: {
0: {
items: 1
},
600: {
items: 3
},
1000: {
items: 6
}
}
})
// ______________Owl-carousel-icons5
var owl = $('.owl-carousel-icons5');
owl.owlCarousel({
loop: true,
rewind: false,
margin: 25,
animateIn: 'fadeInDowm',
animateOut: 'fadeOutDown',
autoplay: false,
autoplayTimeout: 5000, // set value to change speed
autoplayHoverPause: true,
dots: true,
nav: false,
autoplay: true,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 2,
nav: true
},
1300: {
items: 4,
nav: true
}
}
})
// ______________Owl-carousel-icons6
var owl = $('.owl-carousel-icons6');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
dots: false,
autoplay: true,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 3
}
}
})
// ______________Testimonial-owl-carousel2
var owl = $('.testimonial-owl-carousel2');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
autoplay: true,
dots: false,
animateOut: 'fadeOut',
smartSpeed:450,
responsive: {
0: {
items: 1
}
}
})
// ______________Testimonial-owl-carousel3
var owl = $('.testimonial-owl-carousel3');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
autoplay: true,
dots: true,
responsive: {
0: {
items: 1
}
}
})
// ______________Testimonial-owl-carousel4
var owl = $('.testimonial-owl-carousel4');
owl.owlCarousel({
margin: 25,
loop: true,
nav: false,
autoplay: true,
dots: true,
responsive: {
0: {
items: 1
}
}
})
// ______________Testimonial-owl-carousel
var owl = $('.testimonial-owl-carousel');
owl.owlCarousel({
loop: true,
rewind: false,
margin: 25,
autoplay: true,
animateIn: 'fadeInDowm',
animateOut: 'fadeOutDown',
autoplay: false,
autoplayTimeout: 5000, // set value to change speed
autoplayHoverPause: true,
dots: false,
nav: true,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
}
}
})
})(jQuery);