( function( $ ) {
$(document).ready(function($){
$( '.header-cycle-slideshow' ).cycle();
$("#home-page-widget-area .pt-testimonial-item-wrap").slick({
dots: true,
});
$('#main-nav').meanmenu({
meanMenuOpen: "",
meanScreenWidth: "1050",
});
// Go to top.
var $scroll_obj = $( '#btn-scrollup' );
$( window ).scroll(function(){
if ( $( this ).scrollTop() > 100 ) {
$scroll_obj.fadeIn();
} else {
$scroll_obj.fadeOut();
}
});
$scroll_obj.click(function(){
$( 'html, body' ).animate( { scrollTop: 0 }, 600 );
return false;
});
// Partners-slider
$('.pt-clients-wrap').slick({
dots: true,
infinite: true,
speed: 600,
slidesToShow: 5,
arrows:false,
slidesToScroll: 2,
autoplay:true,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 4,
slidesToScroll: 1,
arrows:false
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
arrows:false
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
arrows:false
}
},
{
breakpoint: 479,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
arrows:false
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});
//sticky sidebar
var main_body_ref = $("body");
if( main_body_ref.hasClass( 'global-sticky-sidebar' ) ){
$( '#primary, #sidebar-primary' ).theiaStickySidebar();
}
});
} )( jQuery );