//fixed-nav $(document).on("scroll",function(){ if($(document).scrolltop()>20){ $("header").removeclass("large").addclass("small"); } else{ $("header").removeclass("small").addclass("large"); } }); //search $(function(){ $(".attr-nav").each(function(){ $(".search", this).on("click", function(e){ e.preventdefault(); $(".top-search").slidetoggle(); }); }); $(".input-group-addon.close-search").on("click", function(){ $(".top-search").slideup(); }) }) $(function( ) { setinterval(function(){ if($(".animated-circles").hasclass("animated")){ $(".animated-circles").removeclass("animated"); }else{ $(".animated-circles").addclass('animated'); } },3000); }); //back-top $(function(){ $(window).scroll(function(){ var _top = $(window).scrolltop(); if(_top>300){ $('.back_top').fadein(600); }else{ $('.back_top').fadeout(600); } }); $(".back_top").click(function(){ $("html,body").animate({scrolltop:0},500); }); }); $(document).ready(function() { //horizontal tab $('#parenthorizontaltab02').easyresponsivetabs({ type: 'default', //types: default, vertical, accordion width: 'auto', //auto or any width like 600px fit: true, // 100% fit in a container tabidentify: 'hor_1', // the tab groups identifier activate: function(event) { // callback function if tab is switched var $tab = $(this); var $info = $('#nested-tabinfo'); var $name = $('span', $info); $name.text($tab.text()); $info.show(); } }); }); //fixed inquiry $(document).ready(function(){ $("#floatshow").bind("click",function(){ $("#onlineservice").animate({ height:"show", opacity:"show" }, "normal" ,function(){ $("#onlineservice").show(); }); $("#floatshow").attr("style","display:none"); $("#floathide").attr("style","display:block"); return false; }); $("#floathide").bind("click",function(){ $("#onlineservice").animate({ height:"hide", opacity:"hide" }, "normal" ,function(){ $("#onlineservice").hide(); }); $("#floatshow").attr("style","display:block"); $("#floathide").attr("style","display:none"); return false; }); }); // fixed service $(function() { $(".online_section").hover(function() { $(".online_section").css("right", "0"); $(".online_section .online_code").css('height', '160px'); }, function() { $(".online_section").css("right", "-220px"); $(".online_section .online_code").css('height', '40px'); }); }); $(function(){ $('.autoplaya1').slick({ infinite: true, speed: 1500, slidestoshow: 1, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, pauseonhover:true, dots:true, responsive: [ { breakpoint:992, settings: { slidestoshow: 3, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } }, { breakpoint:768, settings: { slidestoshow: 2, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } } ] }) }) $(function(){ $('.autoplay3').slick({ infinite: true, speed: 1500, slidestoshow:3, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, pauseonhover:true, dots:true, responsive: [ { breakpoint: 992, settings: { slidestoshow:2, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, infinite: true, dots:true, } }, { breakpoint:768, settings: { slidestoshow: 2, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } }, { breakpoint: 480, settings: { slidestoshow: 1, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } } ] }) }) $(function(){ $('.autoplay4').slick({ infinite: true, speed: 1500, slidestoshow: 4, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, pauseonhover:true, dots:true, responsive: [ { breakpoint: 992, settings: { slidestoshow:3, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, infinite: true, dots:true, } }, { breakpoint:768, settings: { slidestoshow: 2, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } }, { breakpoint: 425, settings: { slidestoshow:1, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } } ] }) }) $(function(){ $('.autoplay5m').slick({ infinite: true, speed: 1500, slidestoshow: 5, slidestoscroll: 1, autoplay: false, autoplayspeed:3000, pauseonhover:true, dots:true, responsive: [ { breakpoint: 992, settings: { slidestoshow:4, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, infinite: true, dots:true, } }, { breakpoint: 768, settings: { slidestoshow: 3, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } }, { breakpoint: 480, settings: { slidestoshow: 2, slidestoscroll: 1, autoplay: true, autoplayspeed:3000, dots:true, } } ] }) })