function bluring() { try{ if(event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { document.body.focus(); } }catch( e ) { } } try{ document.onfocusin=bluring; }catch( e ) { } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } $(document).ready(function(){ $('.slider_main').slick({ arrows: false, dots: true, infinite: true, autoplay: true, autoplaySpeed: 2000 }); $('.material_list').slick({ infinite: true, speed: 300, autoplay: true, autoplaySpeed:4000, slidesToShow: 4, slidesToScroll: 4, responsive: [ { breakpoint: 1023, settings: { slidesToShow: 3, slidesToScroll: 3, infinite: true } } ] }); $('.brand_list').slick({ infinite: false, speed: 300, slidesToShow: 4, slidesToScroll: 4, variableWidth: true, responsive: [ { breakpoint: 1023, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }); /* Tab Content */ $(".tab_content").hide(); $(".tab_content:first").show(); $("ul.tabs li").click(function () { $("ul.tabs li").removeClass("active"); $(this).addClass("active"); $(".tab_content").hide() var activeTab = $(this).attr("rel"); $("#" + activeTab).show() }); });