/ *!Modernizr 3.6.0(定制构建)|mit * * https://modernizr.com/download/?-webp-setClasses!* /!函数(e,n,a){function o(e,n){return typeof e === n} function t(){var e,n,a,t,a,i,l; for(r)(r.hasownproperty(f)){if(e = [],n = r [f],n。name &&(e.push(n.name.tolowercase()),n.options && n.options.aliases && n.options.aliases.length))for(a = 0; a
'; jquery.facebox(数据); event.preventdefault();},错误:函数(数据){}});}); jQuery('。弹出窗体')。On('提交',函数(){var data = jQuery(这个).serializeArray(); var动作= jQuery(这个).ATTR('操作'); jQuery('form-message')。HTML(“加载...请等待”); jquery.ajax({URL:Action,Data:Data:DataType:'HTML',类型:“POST”,错误:函数(XHR,AJAXOPTIONS,BROWNERROR){$ MESSACT =“错误发生:”+ XHR.STATUS +“”+thrownerror +“\ n”;如果(xhr.responseText!=“”){$ message + =“服务器响应:”+ xhr.responseText +“\ n”;}如果(xhr.status ==“404”){$ message + =this.url +“\ n”;}警报($消息);},成功:函数(响应){jQuery('#Contact-Popup')。HTML(响应);}};返回false;}); $(文档).on('beforeveal.facebox',function(){$('#facebox')。CSS('top',($(窗口).scrolltop()+ 10)+'px');});}); jQuery(文件).ready(函数($){var $ window = $(窗口); var $ document = $(文件); var $ mailphener = $('#main-header'); varmaincontent = $('#main-content'); var qcfocused = false; var $ pxban2 = $('#px-banner-2'); var $ pxban1inner = $('#px-banner-1.plx-hero-inner'); var $ pxban2inner = $('#px-banner-2 .plx-hero-inner'); var $ producttabs = $('#porter-tab'); var $ qccollapse = $('#qc-collass'); $('#qc')。查找('输入,:收音机,:checkbox')。On('焦点',函数(){qcfocused = true;})。上('模糊',函数(){qcfocused = false;}; var locknownscrolly = 0,locknownwidth = 0,ticking = false;函数onscroll(){localknownscrolly = window.scrolly || window.pageyoffset; comecaytick();}函数onresize(){localKnownWidth = $(窗口).outerwidth(); requestTick();如果(locknownwidth <992){}} $ document.on('滚动',onscroll); $ window.on('调整大小',onresize); $ window.resize();函数requestTick(){if(!滴答){equestAnimationFrame(更新);}}函数更新(){varcurrentscrolly = locatnknscrolly; var currentwidth = localknownwidth;如果(qcfecused){} els {if(furrentscrolly> 210 || currentwidth <992){$ mainheader.addclass('shadow''); $ qccollapse.addclass('崩溃');否则{$ mailheader.removeclass('shadow'); $ qccollapse.removclass('崩溃');}}如果(currentwidth <1200){$ producttabs.removeclass('nav-tabs');} else {$ producttabs.addclass('nav-tab');}如果($ pxban2.length){var offset = $ pxban2.offset()。top; var h_win =$ window.height(); var half_h_win = h_win / 4; var x = $ window.scrolltop(); var y = x-offset + half_h_win; $ pxban1inner.css('转换','翻译(0,'+(0,'+)(0,'+()X / 30)+'%)Translate3d(0px,0px,0px)'); $ pxban2inner.css('transform','translate(0,'+(y / 30)+'%)translate3d(0px,0px, 0px)');} ticking=false;} $(".carousel.lazy-carousel").on("slide.bs.carousel",function(ev){var lazy;lazy=$(ev.relatedTarget).find("source[data-srcset]");lazy.each(function(index,element){var e=$(element);e.attr('srcset',e.data('srcset'));e.removeAttr('data-srcset');});lazy=$(ev.relatedTarget).find("img[data-src]");lazy.each(function(index,element){var e=$(element);e.attr("src",e.data('src'));e.removeAttr('data-src');});});$document.on('scroll',onScroll);$window.on('resize',onResize);$('#qc-toggle').on('click',function(event){$('#qc-collapse').toggleClass('collapse');event.preventDefault();});$('#product-thumbs').on('mouseenter click','img',function(event){$('#product-image img').attr('src',$(this).attr('src'));}).on('mouseleave','img',function(event){$('#product-image img').attr('src',$('#product-thumbs img').first().attr('src'));});$("body").on("click","a[href^='http']",function(event){if(this.hostname!==location.hostname){$(this).attr("target","_blank");gtag('event',$(this).attr('href'),{'event_category':'Outbound Links'});}});$('.read-more .more-link a').on('click',function(e){e.preventDefault();$(this).closest('.read-more').toggleClass('more-hidden');});if($(window).outerWidth()>=992){var images=$("img.zoomable");if(images.length>0){script=$('