$(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("