wow() fontSize(1226) function fontSize(design){var w=$(window).width();if(w>design){var newWidth=design}else{var newWidth=w} $('html').css("fontSize",newWidth/(design/100)+'px')} $(window).resize(function(){fontSize(1226)}) function readHTML(read,obj){var _class=read.substring(1) $(obj.add).append('
'+$(read).html()+'
');$(obj.click_show).click(function(e){var _wid=$(window).width() console.log(_wid);if(obj.max>=_wid){e.preventDefault();$(this).toggleClass('active');$(this).next().slideToggle();}})} function prevent(hide_obj){$(hide_obj).parent().click(function(event){$(hide_obj).parent().hide();}) $(hide_obj).click(function(event){event.stopPropagation();});} function BubPro(main1,layout,event){$(main1)[event](function(e){$(this).fadeOut();e.stopPropagation();}) $(main1).find(layout).click(function(e){e.stopPropagation();})} function Anchorage(obj,moveoff){$(obj).css('cursor','pointer') $(obj).click(function(e){e.preventDefault();$('html,body').animate({scrollTop:($($(this).attr('to')).offset().top)-moveoff},1000);});} function scrollHide(target,juli){var topv=$(juli).offset().top;$(window).scroll(function(){var v=$(window).scrollTop();if(v>=topv){$(target).fadeIn()}else{$(target).fadeOut()}})} function calc(Oheight,Id_Obj){var win_height=$(window).height();var valt=Scroll(Id_Obj);$(".auto-height").css("cssText","height:"+(win_height-Oheight-valt)+"px !important;overflow-y:auto;");window.onresize=function(){valt=Scroll(Id_Obj);$(".auto-height").css("cssText","height:"+(win_height-Oheight-valt)+"px !important;overflow-y:auto;");};} function Scroll(ID){var obj=document.getElementById(ID);console.log('可视区(包滚动条):'+obj.offsetHeight);console.log('可视区(不包滚动打):'+obj.clientHeight);console.log('文档总高度:'+obj.scrollHeight);var ScrollHei=obj.offsetHeight-obj.clientHeight;console.log('滚动条的高度: '+ScrollHei);if(obj.scrollHeight>obj.clientHeight){console.log("------------------------垂直滚动条");};if(obj.offsetHeight-obj.clientHeight>0){console.log("------------------------水平滚动条");};return ScrollHei};function active(obj){$(obj).click(function(event){$(this).toggleClass('active');});} function setHei(obj,w,h){var bi=h/w;if($(window).width()<=750){var wid=parseInt($(".wid").width());$(obj).height(bi*wid)}} function setDev(obj){if($(window).width()<=750){var wid=parseInt($(".wid").width());$(obj).width(wid);}} function maxleng(obj_input,show_text){var max=parseInt($(show_text).text()) $(obj_input).attr({maxlength:max});$(obj_input).keyup(function(){var len=$(this).val().length if(max-len>-1) $(show_text).text(max-len) log(len)})} function wow(ismob){ismob=ismob?ismob:false if(!(/msie [6|7|8|9]/i.test(navigator.userAgent))){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:ismob,live:true,});wow.init();}} function menu_screen(obj){auto();function auto(){var width=$(window).width();$(obj).each(function(index,el){var leftV=$(this).offset().left;$(this).find('.boxs').css({"left":-leftV+'px',"width":width+'px'})});} $(window).resize(function(){auto();log(1)})} function stopPro(show,hide){$(show).click(function(event){event.stopPropagation();});$('body').click(function(event){event.stopPropagation();$(hide).hide();});} function log(text){console.log(text);} function substr(text){var arr=[] for(var i=0;i');_this=$(this);setTimeout(function(){console.log(_this);_this.find('.effect').remove();},2000)});function tarpic(click_obj,target_obj){$(click_obj).click(function(){var dee=$(this).index();var path=$(this).find("img").attr("src");$(target_obj).eq(dee).find("img").attr("src",path);})} function paint_cirl(obj_default_class,obj_change_class,start_color,end_color,main_class){var ite=0;var te=setInterval(function(){ite++;if(ite>=112||ite>=111/$(main_class+" .sp1").text()*$(main_class+" .sp0").text()){clearInterval(te);} draw23(obj_change_class,ite,end_color)},10) draw23(obj_default_class,111,start_color);function draw23(id,ss,color){var canvas=document.getElementById(id);if(canvas==null){return false;} var ctx=canvas.getContext("2d");ctx.lineWidth=20;ctx.strokeStyle=color ctx.beginPath();ctx.arc($("#"+id).width()/2,$("#"+id).width()/2,($("#"+id).width()-40)/4,0,ss/20);ctx.stroke();}} function typing(textp){var num=0;$(textp).each(function(index,element){var text=$(this).text();$(this).attr("data",text).text("");otime=$(textp).eq(index).attr("data").length*58;num=num+otime;setTimeout(function(){abc($(textp).eq(index));},num-otime+1050);});function abc(obj){var strText=$(obj).attr("data");var i=0;var text="";var time=setInterval(function(){text=text+strText.substr(i,1) i++ $(obj).html(text) if(i>=strText.length){clearInterval(time);}},58)}} function hover_down_menu(oli_obj,showDiv){$(oli_obj).hover(function(){var ind=null;var j=10;var olen=$(this).find(showDiv).show().find("a").length;var ind=$(this).index();for(var i=0;i'+oHtml+'');$(oLi).eq(num).remove();te=-1;$(oLi).parent().css({"left":te+"px"});} te++;$(oLi).parent().css({"left":-te+"px"});} $(oLi).parent().hover(function(){clearInterval(timer);},function(){timer=setInterval(OnLeft,speed);})} function input_bd(obj_input,classN){$(obj_input).focus(function(){$(this).addClass(classN);}) $(obj_input).blur(function(){$(this).removeClass(classN);})} function zoom(){$(window).resize(function(){abtee();}) abtee() function abtee(){var wid=$(window).width();if(wid<1366){$("html").css("zoom","x.x");}else{$("html").removeAttr("style");}}} function radio_pic(obj){$(obj).click(function(){$(this).parent().find("i").removeClass("acti");$(this).find("i").addClass("acti");})} function auto_subMenu(obj,find_obj){$(obj).each(function(index,element){var sum=0;var otvel=0;var wit=parseInt($(this).find("a").css("paddingLeft"))*2;$(this).find("a").each(function(index,element){var suw=$(this).width() sum=sum+suw otvel=index+1});$(this).width(sum+otvel*wit);});} function dropmove(down,move,direction,obj_hei){$(move).mouseup(function(e){if(direction==1){var X=e.pageX-$(this).offset().left;$(this).find(".box").width(X);}else{var Y=e.pageY-$(this).offset().top;$(this).find(".box").height(obj_hei-Y);}}) $(down).mousedown(function(){$(move).mousemove(function(e){var t=$(this).offset().top;var lf=$(this).offset().left;if(direction==1){if(e.pageX-lf<=$(move).width()&&e.pageX-lf>0){$(this).find(".box").css("width",e.pageX-lf+"px");}}else{if(e.pageY-t<=$(move).height()&&e.pageY-t>0){$(this).find(".box").css("height",obj_hei-(e.pageY-t)+"px");} $(move).unbind("hover");}})}) $(move).mouseup(function(){$(move).unbind("mousemove");}) $(down).mouseup(function(){$(move).unbind("mousemove");}) $(move).hover(function(){},function(){$(move).unbind("mousemove");})} function enlarge(click_obj,cg_obj){$(click_obj).click(function(){$(this).addClass('acti').siblings().removeClass('acti');var src=$(this).find("img").attr("src");$(cg_obj).attr("src",src);});} function TargetTime(element,divtype){ShowCountDown();var tid=0;tid=setInterval(ShowCountDown,1000);function ShowCountDown() {var cc=$(element);var elem=$(element).find(".state");var arr=cc.attr("end-timer").split(":");var now=new Date();var endDate=new Date(arr[0],arr[1]-1,arr[2],arr[3],arr[4],arr[5]);var leftTime=endDate.getTime()-now.getTime();if(leftTime>0){var leftsecond=parseInt(leftTime/1000);var day1=Math.floor(leftsecond/(60*60*24)).toString();var hour=Math.floor((leftsecond-day1*24*60*60)/3600).toString();var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60).toString();var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60).toString();var hour=Math.floor((leftsecond-day1*24*60*60)/3600+24*day1).toString();if(day1<10)day1="0"+day1;if(hour<10)hour="0"+hour;if(minute<10)minute="0"+minute;if(second<10)second="0"+second;$(divtype+".t span.sp1").text(day1.substring(0,1));$(divtype+".t span.sp2").text(day1.substring(2,1));$(divtype+".s span.sp1").text(hour.substring(0,1));$(divtype+".s span.sp2").text(hour.substring(2,1));$(divtype+".f span.sp1").text(minute.substring(0,1));$(divtype+".f span.sp2").text(minute.substring(2,1));$(divtype+".m span.sp1").text(second.substring(0,1));$(divtype+".m span.sp2").text(second.substring(2,1));} else{clearInterval(tid);$(divtype+" span").text('0');}}} function slide_nav(obj,class_name,iname){$(obj).click(function(){if($(this).attr('opent')==="1"){$(this).parents('li').find(class_name).slideUp();$(this).find('i').removeClass(iname);$(this).attr('opent',"0");$(obj).removeClass('acti');}else{$(obj).removeClass('acti');$(this).addClass('acti');$(obj).find("i").removeClass(iname);$(obj).parent().find(class_name).slideUp();$(this).parent().find(class_name).slideDown();$(this).find('i').addClass(iname);$(obj).attr('opent',"0");$(this).attr('opent',"1");}});} function shoutext(Oclick,Ofind){$(Oclick).click(function(){if($(this).attr("opent")=="1"){$(this).parent().find(Ofind).slideUp();$(Oclick).removeAttr("opent");}else{$(Oclick).removeAttr("opent");$(Oclick).parent().find(Ofind).slideUp();$(this).attr("opent","1").parent().find(Ofind).slideDown();}});} function numadd(obj,click_left,click_right){var max=$(click_right).attr('max');$(click_left).click(function(){i=parseInt($(obj).val());if(i>1){i--;$(obj).val(i);} if(i==1){$(this).addClass("noadd");}}) $(click_right).click(function(){i=parseInt($(obj).val());if(max){if(max>i){i++;}}else{i++} $(click_left).removeClass("noadd");$(obj).val(i);})} function upimg(obj,append){$(obj).change(function(){$(append).append('
  • ');})} function alertbox(click_show,click_hide,obj){$(click_hide).click(function(){$(obj).fadeOut();}) $(click_show).click(function(){$(obj).fadeIn();})} function copy(click_obj){$(click_obj).click(function(){$(this).parents("li").find("textarea").select();document.execCommand("Copy");})} function newRoll(obj,cirl){$(obj).css({"position":"absolute"});var olent=$(obj).length;var j=0;var timter;for(var i=0;iolent-1)j=0;$(cirl).eq(j).addClass("acti").siblings().removeClass('acti');$(obj).each(function(index,element){var tp=parseInt($(this).css("top"));$(this).animate({"top":tp-$(obj).height()+"px"},500,function(){$(obj).eq(j-1).css("top",(olent-1)*$(obj).height()+"px")});});}} function myScroll(){var x=document.body.scrollTop||document.documentElement.scrollTop;var timer=setInterval(function(){x=x-0.5*(x/6);if(x<100) {x=0;window.scrollTo(x,x);clearInterval(timer);} window.scrollTo(x,x);},"1");} function getFileName(o){var pos=o.lastIndexOf("\\");return o.substring(pos+1);} function getFileUrl(sourceId){var url;if(navigator.userAgent.indexOf("MSIE")>=1){url=document.getElementById(sourceId).value;}else if(navigator.userAgent.indexOf("Firefox")>0){url=window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));}else if(navigator.userAgent.indexOf("Chrome")>0){url=window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));} return url;} function addInput(obj){$(obj).click(function(){if($(this).find("input[type='checkbox']").is(':checked')==true){$(this).find("input").addClass("check");}else{$(this).find("input").removeClass("check");}});} function checkbox(obj,findbel){$(obj).click(function(){if($(this).find("input[type='checkbox']").is(':checked')==true){$(this).find(findbel).show();}else{$(this).find(findbel).hide();}})} function cli_cgpic(obj){$(obj).click(function(){if($(this).attr("ter")=="1"){var path_img=$(this).find('img').attr('src');var new_path=path_img.replace("-1.",".");$(this).find('img').attr('src',new_path);$(this).attr("ter","0");}else{var path_img=$(this).find('img').attr('src');var new_path=path_img.replace(".","-1.");$(this).find('img').attr('src',new_path);$(this).attr("ter","1");}})} function Countdown(obj,input_obj,classname,num){$(obj).attr("value","1");var jte=num;var timer=null;function miuete(){jte--;if(jte<=0){$(obj).removeClass(classname).text('重新获取');jte=num;clearInterval(timer);$(obj).attr("value","1");} $(obj+'.'+classname).text(jte+'s');} $(obj).click(function(e){e.preventDefault();if($(input_obj).val()!=''){if($(this).attr("value")=="1"){$(this).attr("value","0");$(this).addClass(classname);miuete();timer=setInterval(miuete,1000);}}else{alert('请输入手机号码!')}})} function cli_cgimg(obj){$(obj).click(function(){$(obj).each(function(index,element){var path_img=$(this).find('img').attr('src');var new_path=path_img.replace("-1.",".");$(this).find('img').attr('src',new_path);});var path_img=$(this).find('img').attr('src');var new_path=path_img.replace(".","-1.");$(this).find('img').attr('src',new_path);})} function click_cgimg(obj,index,imgname){$(obj).eq(index).click(function(){if($(this).attr('adimg')=="1"){$(this).attr('adimg','0');$(this).find('img').attr("src","img/"+imgname+".png");}else{$(this).find('img').attr("src","img/"+imgname+"-1.png");$(this).attr('adimg','1');}})} function addClass(obj,className,allt){if(allt>0){$(obj).click(function(){$(obj).removeClass(className);$(this).addClass(className);})}else{$(obj).click(function(){$(this).addClass(className).siblings().removeClass(className);})}} function slideshow(click_show,obj_open,class_name){$(click_show).click(function(){if($(this).attr('true')=="1"){$(this).parent().find(obj_open).slideUp();$(this).removeClass(class_name);$(this).attr('true',"0");}else{$(this).parent().find(obj_open).slideDown();$(this).addClass(class_name);$(this).attr('true',"1");}})} function suspension(click_obj,move_obj,distance,className,negative){$(click_obj).click(function(){if($(this).attr('opene')=='1'){$(move_obj).animate({'right':-$(move_obj).width()-negative+"px"},600,'swing');$(this).attr('opene','0');$(this).removeClass(className);}else{$(this).addClass(className);$(move_obj).animate({'right':distance+"px"},600,'swing');$(this).attr('opene','1');}})} function full_screen(number,click_left,click_right,click_cirl){var olen1=$(number).length;var timer=0;var bowidth1=$('body').width();$(number).parent().css("position","absolute");$(number).parent().width(bowidth1*olen1+"px");var thinde1=0;$(number).css("width",bowidth1+"px");for(var j=0;j0){thinde1--;$(number).parent().animate({"left":-thinde1*bowidth1+"px"},600,"swing");}}) $(click_cirl).click(function(){thinde1=$(this).index();$(this).addClass('acti').siblings().removeClass('acti');$(number).parent().animate({"left":-thinde1*bowidth1+"px"},600,"swing");}) timer=setInterval(autocroll,5000);function autocroll(){thinde1++;if(thinde1>olen1-1)thinde1=0;$(click_cirl).eq(thinde1).addClass('acti').siblings().removeClass('acti');$(number).eq(thinde1).addClass('acti').siblings().removeClass('acti');$(number).parent().animate({"left":-thinde1*bowidth1+"px"},600,"swing");} $(click_cirl).hover(function(){clearInterval(timer);},function(){timer=setInterval(autocroll,5000);})} function autobox(obj,oble,value,pase){lrauto();$(window).resize(function(){lrauto();}) function lrauto(){var bwidt=$("body").width();if(oble==0){$(obj).css({left:(bwidt-value)/2+pase+"px"});}else{if(oble==1){$(obj).css({right:(bwidt-value)/2+pase+"px"})} else{alert('第二个传值出错!0是左 1是右');}}}} function Cutimg(obj){autoimg() $(window).resize(function(){autoimg()}) function autoimg(){var widt=$(obj).parent().width();var heit=$(obj).parent().height();var img_wid=$(obj).width();var img_hei=$(obj).height();$(obj).css({"left":(widt-img_wid)/2+"px","top":(heit-img_hei)/2+"px","position":"absolute"});$(obj).parent().css({"position":"relative","overflow":"hidden"});}} function eject(hover_obj,hide_obj){$(hide_obj).hide();$(hover_obj).hover(function(){$(hide_obj).hide();$(hide_obj).eq($(this).index()).show();}) $(hide_obj).parent().hover(function(){},function(){$(hide_obj).fadeOut();})} function replaimg(obj){$(obj).hover(function(){var path_img=$(this).find('img').attr('src');var new_path=path_img.replace(".","-1.");$(this).find('img').attr('src',new_path);},function(){var path_img=$(this).find('img').attr('src');var new_path=path_img.replace("-1.",".");$(this).find('img').attr('src',new_path);})} function scrollTop(obj_fixed,ClassName,value,ohei_value){value=$(obj_fixed).offset().top;$(window).scroll(function(){var valt=$(window).scrollTop();var top=$(obj_fixed).offset().top;if(value==1){value=top;} if(valt>value+ohei_value){$(obj_fixed).addClass(ClassName);}else{$(obj_fixed).removeClass(ClassName);}})} function tabs(Oobj,Otabch,event){$(Otabch).hide();var dex=$(Oobj).parent().find('.acti').index();$(Otabch).eq(dex).show();$(Oobj)[event](function(e){e.preventDefault();$(this).addClass('acti').siblings().removeClass('acti');$(Otabch).hide();$(Otabch).eq($(this).index()).show();});} function RollEach(obj,sub,num){num=num?num:1;$(obj).each(function(index,el){var _this=$(this);if(sub){Roll(_this.find(sub).find('ul li'),_this.find(sub).find(".prev"),_this.find(sub).find(".next"),_this.find(sub).find(".cirl span"),num);}else{Roll(_this.find('ul li'),_this.find(".prev"),_this.find(".next"),_this.find(".cirl span"),num);}});} function Roll(number,prevBtn,nextBtn,Cirl_span,Scroll_num,type){Scroll_num=Scroll_num?Scroll_num:1 var num=$(number).length;if(num>1){var screen=num/Scroll_num var main_wid=parseInt($(number).parent().parent().outerWidth()) var marLeft=$(number).outerWidth()+parseInt($(number).css("margin-left"));$(number).parent().css({"width":num*marLeft+"px","position":"absolute","top":"0"}).parent().css({"position":"relative","overflow":"hidden"});var one=0;this.debug=function(){console.log('滚动个数=>'+num+'\n对象宽度=>'+$(number).outerWidth()+'\n左边距=>'+parseInt($(number).css("margin-left")))} for(var i=0;i')}else{$(Cirl_span).append(''+(i+1)+'')}} var j=0;var setotimer=null;setotimer=setInterval(next,3000) var prev_state=true;var next_state=false;$(Cirl_span).find('*').eq(j).addClass('acti').siblings().removeClass('acti');$(Cirl_span).find('*').click(function(event){var dex=$(this).index();if(dex>j){var res=dex-j $(number).parent().animate({"left":-marLeft*(Scroll_num*res)+"px"},600,function(){$(this).css("left","0px");for(var i=0;iscreen-1)j=0;$(Cirl_span).find('*').eq(j).addClass('acti').siblings().removeClass('acti');$(number).parent().animate({"left":-marLeft*(Scroll_num)+"px"},600,function(){$(this).css("left","0");for(var i=0;iolen-1)i=0;$(cg_text).eq(i).addClass("acti").siblings().removeClass("acti");$(banner_ul_li).eq(i).addClass('acti').siblings().removeClass('acti');$(cirl).eq(i).addClass('acti').siblings().removeClass('acti');$(banner_ul_li).eq(i).css("zIndex","1").animate({"opacity":"1"},600,'swing').siblings().css("zIndex","0").animate({"opacity":"0"},600,'swing');} var bannPrev=function(){i--;if(i<0)i=olen-1;$(cirl).eq(i).addClass('acti').siblings().removeClass('acti');$(banner_ul_li).eq(i).addClass('acti').siblings().removeClass('acti');$(cg_text).eq(i).addClass("acti").siblings().removeClass("acti");$(banner_ul_li).eq(i).css("zIndex","1").animate({"opacity":"1"},600,'swing').siblings().css("zIndex","0").animate({"opacity":"0"},600,'swing');} this.but_next=function(){bannNext();} this.but_prev=function(){bannPrev();} Otimer=setInterval(function(){bannNext();},timer);$(cirl).hover(function(){clearInterval(Otimer);},function(){Otimer=setInterval(function(){bannNext();},timer);}) $(click_left).hover(function(){clearInterval(Otimer);},function(){Otimer=setInterval(function(){bannNext();},timer);}) $(click_right).hover(function(){clearInterval(Otimer);},function(){Otimer=setInterval(function(){bannNext();},timer);}) $(click_left).click(function(){bannPrev();}) $(click_right).click(function(){bannNext();})} function slideDown(obj,show_obj){$(obj).click(function(event){if($(this).attr("eee")=="1"){$(this).removeAttr('eee') $(this).removeClass('sp1').find('i').removeClass('acti');$(this).parent().find(show_obj).slideUp();}else{$(this).attr("eee","1") $(this).addClass('sp1').find('i').addClass('acti');$(this).parent().find(show_obj).slideDown();}});} function scroll_addclass(obj_fixed,class_name,value){if(typeof(value)=='number'){console.log('99')}else{value=$(obj_fixed).offset().top;} $(window).scroll(function(event){var vlte=$(window).scrollTop();if(vlte>=value){$(obj_fixed).addClass(class_name);} else{$(obj_fixed).removeClass(class_name);}});} function call_resize(obj){eval(obj);$(window).resize(function(event){eval(obj);});} function min_auto(obj,wid){var scr_wid=$(window).width();if(scr_wid<=wid){$(obj).width(scr_wid);}else{$(obj).removeAttr('style');}} function table(left_obj,right_obj,ife){var Objwid=$(right_obj).width();$(left_obj).removeAttr('style');$(right_obj).removeAttr('style');$(left_obj).each(function(index,el){var leftHei=$(this).height();var rightHeight=$(right_obj).eq(index).height();if(leftHei>rightHeight){$(right_obj).eq(index).height(leftHei);$(right_obj).eq(index).find('span').css("line-height",rightHeight+'px');}else{$(this).height(rightHeight);$(this).find('span').css("line-height",rightHeight+'px');log(ife) if(ife==1){$(this).css("line-height",rightHeight+'px');}}});$(right_obj).find('p').width(Objwid);} function three_menu(obj_li,one,two,three){$(obj_li).hover(function(){$(this).stop().find(one).slideDown(200);},function(){$(this).stop().find(one).slideUp(200);});console.log(obj_li+" "+one+" "+two);$(obj_li+" "+one+" "+two).hover(function(){$(this).stop().find(three).slideDown(200);},function(){$(this).stop().find(three).slideUp(200);});} function IsPC(url,is){var userAgentInfo=navigator.userAgent;var Agents=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];var flag=false;for(var v=0;v0){flag=true;break;}} if(flag){console.info("Current phone mode");if(is){window.location.href=url;}}else{console.info("Current computer model");}} function showFile(put_obj,show_img,show_name){$(put_obj).change(function(event){var e=getFileUrl($(this).attr("id"));$(show_img).attr("src",e);$(show_name).val(getFileName($(this).val()));});} function bann3d(li_list,click_left,click_right){var timer=null;var li_size=$(li_list).size();timer=setInterval(next,3000);console.info();$(li_list).parent().parent().hover(function(){clearInterval(timer);},function(){timer=setInterval(next,3000);});$(li_list).each(function(index,el){$(this).attr("index",index);});$(li_list).hover(function(){var inde=$(this).attr("index");if(inde3){for(var i=0;i100){console.info('向右');eval(event_name.prevBut+'()');pagejishu++;}else if(end_pointX-start_pointX<-100){console.info('向左');eval(event_name.nextBut+'()');pagejishu--;}} function isTop(){if(end_pointY-start_pointY>100){console.info('向下');pagejishu++;}else if(end_pointY-start_pointY<-100){console.info('向上');pagejishu--;}}} function zan(click_obj,className,text1,text2){$(click_obj).click(function(event){if($(this).find('i').attr("class")){$(this).find('i').removeAttr("class");$(this).find('var').text(text1);}else{$(this).find('i').addClass(className);$(this).find('var').text(text2);}});} function click_scroll(click,scrll){$(click).click(function(event){var hei=$(scrll).offset().top;var i=0;var j=0;var tee=setInterval(function(){i+=j;if(i%2==0){j++;} if(i>=hei)clearInterval(tee);window.scrollTo(0,i);},10)});} function phone_menu(read_div,add_pos,pos_line,isqian){isqian=isqian?0:1 $(add_pos).after('
    '+$(read_div).html()+'
    ');if(isqian){$('
    ').insertBefore($(pos_line))}else{$(pos_line).append('
    ');} $(".min-menu ul li>a").append('');$(".min-menu ul li").each(function(index,el){if($(this).find('.down').length>0){$(this).find('a i').addClass('ico-arrow');}});$(".min-menu ul li > a").on("click",function(e){if($(this).find('.ico-arrow').length>0){e.preventDefault();$(this).parents('li').find('.down').slideToggle();$(this).find('.ico-arrow').toggleClass('rogate');}}) $(".min-nav").click(function(){$(this).toggleClass('active');$(".min-menu").slideToggle();})} function device(){var u=navigator.userAgent;var isAndroid=u.indexOf('Android')>-1||u.indexOf('Adr')>-1;var isiOS=!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);if($(window).width()>=1024){window.location.href="htt://";return"pc";} if(isAndroid){window.location.href="htt://";return"android";} if(isiOS){window.location.href="htt://";return"phone";} if(navigator.userAgent.indexOf('UCBrowser')>-1){alert("uc浏览器");}} function moveTop(down_obj,obj_Width,out_obj){var down=false;var x=0,y=0;var objleft=$(out_obj).offset().left;var objtop=$(out_obj).offset().top;var maxwidth=$(out_obj).outerWidth()-$(obj_Width).outerWidth();var maxheight=$(out_obj).outerHeight()-$(obj_Width).outerHeight();$(obj_Width).css({"left":maxwidth/2+"px","top":maxheight/2+"px"}) $(down_obj).on("mousedown",function(event){$(this).css("cursor","move");down=true;event.preventDefault();x=event.clientX-$(this).parent().offset().left;y=event.clientY-$(this).parent().offset().top;});$("html").on("mousemove",function(event){event.preventDefault();if(down){l=event.clientX-x-objleft;t=event.clientY-y-objtop;if(l<0){l=0;} if(t<0){t=0;} if(l>maxwidth){l=maxwidth;} if(t>maxheight){t=maxheight;} $(obj_Width).css({"left":l+"px","top":t+"px"});}});$("html").on("mouseup",function(event){down=false;$(down_obj).css("cursor","default");});} function isWeiXin(){var ua=window.navigator.userAgent.toLowerCase();if(ua.match(/MicroMessenger/i)=='micromessenger'){return true;}else{return false;}} function NumberPlus(obj,num){$(obj).each(function(index,el){var get=parseInt($(this).attr("data-num"));abs($(this),get)});function abs(obj1,nume){var i=0;var time=setInterval(jia,15);function jia(){i++ obj1.text(i);if(i>=nume)clearInterval(time);}}}