(function($){ $(document).ready(function(){ //setting //on off rollover,advance load var src_on = "_on.", src_off = "_off.", //to page,to top offset = 0, scroll_speed = "slow", //opacty rollover on_speed = 0, off_speed = "fast", transp = 0.7, //pngfix exclusion png_exc = "exc"; //hover $(".hover").hover( function(){ $(this).stop(true, true).fadeTo(300,0.5); }, function(){ $(this).stop(true, true).fadeTo(300,1.0); }); //to page $("a.to_page").click(function(){ var href = $(this).attr("href"); href = href.split("#"); if($("#" + href[1]).size() > 0 || href[0] == ""){ var p = $("#" + href[1]).offset().top - offset; $("html,body").animate({ scrollTop:p },scroll_speed); return false; } }); //to modal $('[data-remodal-id=modal]').remodal(); //acc $(".acctitle").click(function(){ $(this).next(".acccont").slideToggle(); $(this).toggleClass("open"); }); //to top $("a.to_top").click(function(){ $("html,body").animate({ scrollTop:0 },scroll_speed); return false; }); //slide var slick = $('.slide').slick({ dots: false, infinite: true, speed: 300, slidesToShow: 1, autoplay: true, adaptiveHeight: true }); $(".acctitle").click(function(){ slick.slick('setPosition'); }); }); })(jQuery);