$(function() { var li_h = window.location.pathname; var time = setInterval(function() { var m = $(".p_title").attr("href"); if (m) { $(".p_title").each(function() { var l_m = $(this).attr("href"); if (l_m == li_h) { $(this).parent().addClass("click"); } }); clearInterval(time); } }, 100); }); //分类链接添加前缀地址 var wHref = window.location.pathname; $(".publicProCate").each(function(){ var aHref = $(this).attr("href"); var aHttp = aHref.indexOf("http://"); var subHref; switch (aHttp) { case 0: subHref = aHref.substr(7); break; default: subHref = aHref.substr(8); } $(this).attr("href", subHref); }); //初始化wow开始 (function() { if (isFrontEnv()) { new WOW().init(); } })(); //初始化wow结束 //置顶 (function() { $('a[href-data="top"]').on('click', function() { $('html, body').animate({ scrollTop: 0 }, 'slow'); return false; }); })(); (function($){ function injector(t, splitter, klass, after) { var a = t.text().split(splitter), inject = ''; if (a.length) { $(a).each(function(i, item) { inject += ''+item+''+after; }); t.empty().append(inject); } } var methods = { init : function() { return this.each(function() { injector($(this), '', 'char', ''); }); }, words : function() { return this.each(function() { injector($(this), ' ', 'word', ' '); }); }, lines : function() { return this.each(function() { var r = "eefec303079ad17405c889e092e105b0"; // Because it's hard to split a
tag consistently across browsers, // (*ahem* IE *ahem*), we replaces all
instances with an md5 hash // (of the word "split"). If you're trying to use this plugin on that // md5 hash string, it will fail because you're being ridiculous. injector($(this).children("br").replaceWith(r).end(), r, 'line', ''); }); } }; $.fn.lettering = function( method ) { // Method calling logic if ( method && methods[method] ) { return methods[ method ].apply( this, [].slice.call( arguments, 1 )); } else if ( method === 'letters' || ! method ) { return methods.init.apply( this, [].slice.call( arguments, 0 ) ); // always pass an array } $.error( 'Method ' + method + ' does not exist on jQuery.lettering' ); return this; }; })(jQuery); $(function(){ $("#w_grid-1634795486825 > div > .p_gridbox,#w_fimg-1635306147254 .animated,.Appleft,#w_fimg-1635128906565 .animated,#w_fimg-1635390419863 .animated,#w_fimg-1635390419936 .animated,#w_fimg-1635391809171 .animated,#w_fimg-1635730077800 .animated,#w_fimg-1635730898433 .animated,#w_fimg-1635731618068 .animated,#w_fimg-1635732181921 .animated,#w_fimg-1635732647861 .animated,#w_fimg-1635734310023 .animated").append("
","
").attr("data-wow-delay","0.5s"); $("#w_grid-1634795486825,#w_fimg-1635306147254,#w_fimg-1635390419863,#w_fimg-1635390419936,#w_fimg-1635730077800,#w_fimg-1635730898433,#w_fimg-1635731618068,#w_fimg-1635732181921,#w_fimg-1635732647861,#w_fimg-1635734310023").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.2s"); $("#w_grid-1634800242803 > div > .p_gridbox").append("
","
").attr("data-wow-delay","0.5s"); $("#w_common_text-1634795519335,#w_common_text-1635306794580").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.8s"); $("#w_grid-1635125612825,#w_common_text-1635306794585").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.9s"); $("#w_fline-1634795628722,#w_fline-1635306794592").addClass("wow lv-fadeinup myani").attr("data-wow-delay","1s"); $("#w_grid-1635125633285,#w_common_text-1635306794598").addClass("wow lv-fadeinup myani").attr("data-wow-delay","1.1s"); $("#c_portalResPublic_codeContainer-16347957609590811 .ce-homebtn,#c_portalResPublic_codeContainer-16353067968379319").addClass("wow lv-fadeinRight myani").attr("data-wow-delay","1.2s"); $("#c_portalResPublic_codeContainer-16353063945334956 .ce-homebtn").addClass("wow lv-fadeinLeft myani").attr("data-wow-delay","1s"); $("#w_common_text-1635306211870").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.5s"); $("#w_common_text-1635306238677m,#w_common_text-1635306238677").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.6s"); $("#w_fline-1635306276826").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.7s"); $("#w_common_text-1635306303360").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.8s"); $(".Applicationbox .ce-homebtn").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.9s"); $(".Apptitlebox h2,.Appleft").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0s"); $(".Apptitlebox p").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.1s"); $(".App-line").addClass("wow lv-fadeinup myani").attr("data-wow-delay","0.2s"); });