1//å¤çº§å¯¹è±¡åå¹¶ 2function objAssign(obj1, obj2) { 3 var newObj = {} 4 for(var key in obj2) { 5 var obj2Val = obj2[key]; 6 var obj1Val = obj1[key]; 7 if (Array.isArray(obj2Val)) { 8 newObj[key] = obj2Val.reduce((acc, curr, index) => { 9 acc[index] = typeof curr =='object' ? objAssign(acc[index], curr) : curr; 10 return acc; 11 }, newObj[key]); 12 } else if (typeof obj2Val=='object') { 13 newObj[key] = objAssign(obj1Val, obj2Val); 14 } else { 15 newObj = Object.assign({},obj1,obj2); 16 } 17 }; 18 return newObj; 19} 20// ç¦æ¢å¤å¶ 21function iEsc(){ return false; } 22function iRec(){ return true; } 23function diableCopy(){ 24 document.ondragstart=iEsc; 25 document.oncontextmenu=iEsc; 26 if (typeof document.onselectstart !="undefined") 27 document.onselectstart=iEsc; 28 else{ 29 document.onmousedown=iEsc; 30 document.onmouseup=iRec; 31 } 32} 33// è§é¢å¼¹çª 34function mvFun(obj) { 35 var newBox="<div class=\"mvBox1\" style=\"display:none;height:100%\"><div id=\"newViewPlayer\"></div></div>" 36 if($(".mvBox1").length<=0){ 37 $("body").append(newBox) 38 } 39 var videoUrl = $(obj).data('url');//æ ¹æ®idå¾å°å¼ 40 var videopic = $(obj).data('img');//æ ¹æ®idå¾å°å¼ 41 var videoObject = { 42 container: '.mvBox1', //è§é¢å®¹å¨ 43 poster:videopic,//å°é¢å¾ç 44 autoplay:true, 45 video:videoUrl//è§é¢å°å 46 }; 47 var player=new ckplayer(videoObject)//è°ç¨ææ¾å¨å¹¶èµå¼ç»åéplayer 48 layer.open({ 49 title: '', 50 type: 1, 51 skin:'aykj-videoPop', 52 area: ['755px', '425px'], //å®½é« 53 content: $(".mvBox1"), 54 cancel: function(index, layero) { 55 //$(".mvBox1").find("video")[0].pause() 56 57 },end:function(){ 58 $(".mvBox1").remove() 59 } 60 }); 61 return false; 62} 63function backTop(backTop){ 64 $(backTop).click(function() { 65 $('html,body').animate({ 66 scrollTop: '0px' 67 }, 500); 68 return false; 69 }); 70} 71function initialize(viderUrl,obj) { 72 var video, container; 73 video= document.createElement("video") 74 video.src=viderUrl 75 container = document.getElementById("container"); 76 video.setAttribute('crossOrigin', 'anonymous') // å¤çè·¨å 77 $(video).css({width:0,height:0,position:"fixed",left:0,top:0})//宽é«ç¨äºéèè§é¢ï¼å®ä½ç¨äºè§£å³è§é¢ç¬¬ä¸å¸§å¾çè¦å¨å¯è§åºåæä¼æ¾ç¤ºçé®é¢ 78 obj.appendChild(video) 79 video.addEventListener('loadeddata', function(){ 80 setTimeout(function(){ 81 var canvas = document.createElement("canvas"); 82 canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height); 83 $(obj).find(".pic img").attr("src",canvas.toDataURL("image/png")) 84 $(video).remove() 85 },500) 86 }); 87}; 88/** 89 * tabs 90 * @return 91 */ 92function tabs(tabTitle,tab_content,event){ 93 var index=$(tabTitle).children(".hover").index() 94 $(tab_content).children().eq(index).show().siblings().hide(); 95 96 $(tabTitle).children().bind(event,function(){ 97 var index=$(this).index(); 98 $(this).addClass("hover").siblings().removeClass("hover"); 99 $(tab_content).children().eq(index).show().siblings().hide(); 100 return false; 101 }); 102} 103 104function tabsM(tabTitle,tab_content,tabMore,event){ 105 var index=$(tabTitle).children(".hover").index(); 106 var tabHref = $(tabTitle).children(".hover").find('a').attr('href'); 107 108 $(tab_content).children().eq(index).show().siblings().hide(); 109 if(tabMore != "" || tabMore != undefined ){ 110 $(tabMore).attr('href',tabHref); 111 } 112 113 $(tabTitle).children().bind(event,function(){ 114 var index=$(this).index(); 115 var tabHref = $(this).find('a').attr('href'); 116 if(tabMore != "" || tabMore != undefined ){ 117 $(tabMore).attr('href',tabHref); 118 } 119 $(this).addClass("hover").siblings().removeClass("hover"); 120 $(tab_content).children().eq(index).show().siblings().hide(); 121 return false; 122 }); 123} 124/* é项å¡ï¼å¸¦æ´å¤çï¼ */ 125function tabList(tabTitle, tab_content, tabMore, event) { 126 var hoverIndex,hovertabHref,tablength=$(tabTitle).length; 127 for(var i=0;i<tablength;i++){ 128 var hoverIndex=$(tabTitle).eq(i).children(".hover").index() 129 var hovertabHref=$(tabTitle).eq(i).children(".hover").data('href') 130 var heightHide=$(tabTitle).eq(i).attr("heightHide") 131 $(tabTitle).eq(i).attr("clickIndex",i) 132 if(heightHide=='true'&&heightHide!=null){ 133 $(tab_content).eq(i).children().eq(hoverIndex).addClass("show").siblings().removeClass("show") 134 }else{ 135 $(tab_content).eq(i).children().eq(hoverIndex).show().siblings().hide() 136 } 137 $(tabMore).eq(i).find("a").attr("href",hovertabHref) 138 } 139 $(tabTitle).children().bind(event,function(){ 140 var myIndex=$(this).index(); 141 var clickIndex=$(this).parents(tabTitle).attr("clickIndex") 142 var heightHide=$(this).parents(tabTitle).attr("heightHide") 143 var thisHref=$(this).data("href") 144 $(this).addClass("hover").siblings().removeClass("hover"); 145 if(heightHide=='true'&&heightHide!=null){ 146 $(tab_content).eq(clickIndex).children().eq(myIndex).addClass("show").siblings().removeClass("show") 147 }else{ 148 $(tab_content).eq(clickIndex).children().eq(myIndex).show().siblings().hide() 149 } 150 $(tabMore).eq(clickIndex).find("a").attr("href",thisHref) 151 }) 152} 153/* é项å¡å 容æè½®æåæ¢ */ 154function tabs1(tabTitle,tab_content,event){ 155 var index=$(tabTitle).children(".hover").index() 156 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 157 $(tabTitle).children().bind(event,function(){ 158 var index=$(this).index(); 159 $(this).addClass("hover").siblings().removeClass("hover"); 160 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 161 return false; 162 }); 163} 164function tabListActive(tabTitle, tab_content, tabMore, event) { 165 var hoverIndex,hovertabHref,tablength=$(tabTitle).length; 166 for(var i=0;i<tablength;i++){ 167 var hoverIndex=$(tabTitle).eq(i).children(".hover").index() 168 var hovertabHref=$(tabTitle).eq(i).children(".hover").data('href') 169 $(tabTitle).eq(i).attr("clickIndex",i) 170 $(tab_content).eq(i).children().eq(hoverIndex).addClass("active").siblings().removeClass("active") 171 $(tabMore).eq(i).find("a").attr("href",hovertabHref) 172 } 173 $(tabTitle).children().bind(event,function(){ 174 var myIndex=$(this).index(); 175 var clickIndex=$(this).parents(tabTitle).attr("clickIndex") 176 var thisHref=$(this).data("href") 177 $(this).addClass("hover").siblings().removeClass("hover"); 178 $(tab_content).eq(clickIndex).children().eq(myIndex).addClass("active").siblings().removeClass("active") 179 $(tabMore).eq(clickIndex).find("a").attr("href",thisHref) 180 }) 181} 182function tabsSlick(tabTitle,tab_content,tabMore,event){ 183 var index,moreHref; 184 index=$(tabTitle).children(".hover").index(); 185 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 186 $(tab_content).css({"position":"relative","overflow":"hidden"}); 187 $(tab_content).children().css({overflow: "hidden",position: "absolute",top: 0,left: 0,opacity: 0,zIndex: -1,width: "100%",transition: "all 0.4s linear"}); 188 $(tab_content).children(".active").css({position: "relative",opacity: 1,zIndex: 1,});
189 moreHref=$(tabTitle).children(".hover").data('href'); 190 $(tabMore).find("a").attr("href",moreHref) 191 $(tabTitle).children().bind(event,function(){ 192 index=$(this).index(); 193 $(this).addClass("hover").siblings().removeClass("hover"); 194 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 195 $(tab_content).children().css({position: "absolute",opacity: 0,zIndex: -1,}); 196 $(tab_content).children(".active").css({position: "relative",opacity: 1,zIndex: 1,}); 197 moreHref=$(tabTitle).children(".hover").data('href'); 198 $(tabMore).find("a").attr("href",moreHref); 199 return false; 200 }); 201} 202function tabsSlick1(tabTitle,tab_content,tabMore,event){ 203 var index,moreHref; 204 index=$(tabTitle).children(".hover").index(); 205 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 206 $(tab_content).css({"position":"relative","overflow":"hidden"}); 207 $(tab_content).children().css({overflow: "hidden",position: "absolute",top: 0,left: 0,zIndex: -1,width: "100%",transition: "all 0.4s linear"}); 208 $(tab_content).children(".active").css({position: "relative",zIndex: 1,}); 209 moreHref=$(tabTitle).children(".hover").data('href'); 210 $(tabMore).find("a").attr("href",moreHref) 211 $(tabTitle).children().bind(event,function(){ 212 index=$(this).index(); 213 $(this).addClass("hover").siblings().removeClass("hover"); 214 $(tab_content).children().eq(index).addClass("active").siblings().removeClass("active"); 215 $(tab_content).children().css({position: "absolute",zIndex: -1,}); 216 $(tab_content).children(".active").css({position: "relative",zIndex: 1,}); 217 moreHref=$(tabTitle).children(".hover").data('href'); 218 $(tabMore).find("a").attr("href",moreHref); 219 return false; 220 }); 221} 222function tabsURL(tabsURLClass){ 223 var title1Tab=$(tabsURLClass).find("dd") 224 title1Tab.hover(function(){ 225 var URL=$(this).find("a").attr("href") 226 $(this).parent().siblings("div").find("a").attr("href",URL) 227 }) 228} 229 230function footerMenu() { 231 $(function() { 232 var footerMenu = $(".footerMenu").width(); 233 var dd = $(".footerMenu dd"); 234 var ddlegth = dd.length; 235 dd.width(footerMenu / ddlegth); 236 }) 237} 238function replaceSpace(obj){ 239 $(obj).each(function() { 240 var text = $(this).html().replace(/ /g, " "); 241 $(this).html(text); 242 }); 243} 244function aykjAlert(option){ 245 layer.alert(option.text,{skin:"aykj-alert"},option.callBack) 246} 247// é¦é¡µæµ®çªå ³é 248function floatCloseL(obj){ 249 // $(".floatBoxL").hide() 250 $(obj).parents("dd").hide() 251} 252function floatCloseR(obj){ 253 // $(".floatBoxR").hide() 254 $(obj).parents("dd").hide() 255} 256/*éæ©æ¡*/ 257function stopPropagation(event){ 258 e=window.event||event; 259 if(document.all){e.cancelBubble=true;}else{e.stopPropagation();e.stopImmediatePropagation();} 260} 261/* select 䏿鿩 start */ 262function select(demo){ 263 $(demo).attr("val",0) 264 $("body").on('click',demo,function(event){ 265 var nowtext=$(this).find(".seljg").html().replace(/\s*/g,"") 266 $(this).find(".selTj a").each(function(index, element) { 267 var thishtml=$(this).html() 268 if(thishtml===nowtext){$(this).addClass("hover").siblings().removeClass("hover")}}); 269 var val=$(this).attr("val") 270 if(val==0){$(this).find(".selTj").show().parents(demo).attr("val",1)}else{$(this).find(".selTj").hide().parents(demo).attr("val",0)} 271 $(demo).not(this).attr("val",0) 272 $(demo).not(this).find(".selTj").hide() 273 //stopPropagation(event) 274 return false; 275 }) 276 $("body").on("click",".selTj a",function(){ 277 //$(".selTj a").click(function(){ 278 var text=$(this).html() 279 $(this).parents(demo).attr("val",0) 280 $(this).parent().hide().siblings(".seljg").html(text).siblings("input").attr("value",text) 281 //stopPropagation(event) 282 return false; 283 }) 284 $(document).click(function(){ 285 $(".selTj").hide() 286 $(demo).attr("val",0) 287 }) 288 } 289/* 290 *åä½å¤§å° 291*/ 292function artFontSize(objFT,obj){ 293 var fontSize = $(objFT) 294 var articleBox = $(obj) 295 fontSize.click(function() { 296 $(this).addClass("hover").siblings().removeClass("hover") 297 var fontHtml = $(this).html(); 298 if (fontHtml == "å°") { 299 articleBox.css({"font-size": "16px"}) 300 $(articleBox).children().css({"font-size":"16px"}) 301 $(articleBox).find("p span").css({"font-size":"16px"}) 302 } else if ((fontHtml == "ä¸")) { 303 articleBox.css({"font-size": "18px"}) 304 $(articleBox).children().css({"font-size":"18px"}) 305 $(articleBox).find("p span").css({"font-size":"18px"}) 306 } else if ((fontHtml == "大")) { 307 articleBox.css({"font-size": "20px"}) 308 $(articleBox).children().css({"font-size":"20px"}) 309 $(articleBox).find("p span").css({"font-size":"20px"}) 310 } 311 }) 312} 313$(function() { 314 artFontSize(".articleFont span",".articleBox") 315}); 316 317/* 徿å表左å³çé« */ 318function texth(pic, text) { 319 var picH = $(pic).height() 320 var textH = $(text).height() 321 if(picH>textH){ 322 $(text).height(picH) 323 }else{ 324 $(pic).height(textH) 325 } 326} 327 328//wow åä¸è¡ å ç´ å»¶è¿å è½½ 329function wowDelay(box,row,delayTime){ 330 $(box).children().each(function(index){ 331 for(var i = 0;i<row;i++){ 332 if(index%row==i){ 333 //console.log(index+'----'+index%row) 334 $(this).attr("data-wow-delay",i*delayTime+'s'); 335 }; 336 }; 337 });
338}; 339 340//å¾ççæ¯ä¾ç¼©æ¾ 341function scaleImg(){ 342 $(".scaleBox").each(function(){ 343 var thisw=$(this).outerWidth() 344 var thish=$(this).outerHeight() 345 $(this).find("img").jqthumb({ 346 classname : 'jqthumb', 347 source :"src", 348 width : thisw, 349 height : thish, 350 zoom : 1, 351 position : { y: '50%', x: '50%' }, 352 show : true, 353 method : 'native' 354 }); 355 }) 356} 357function clearImgStyle(){ 358 $(".articleBox img").each(function() { 359 $(this).removeAttr("style"); 360 $(this).removeAttr("width"); 361 $(this).removeAttr("height"); 362 $(this).parent().removeAttr("style"); 363 $(this).parent().css("padding-bottom","5px"); 364 }); 365 } 366function banner() { 367 var w = $(window).width(); 368 var h = $(window).height(); 369 var toph = $(".top").height(); 370 $(".indexBanner,.indexBanner .mySlide").width(w).height(h); 371} 372 373//æåæå 374function divColor(divName, start, end) { 375 $(divName).each(function() { 376 var str1 = $(this).text().trim().replace(/\s/g, "").substring(0, start); 377 var str2 = $(this).text().trim().replace(/\s/g, "").substring(start, end); 378 var str3 = $(this).text().trim().replace(/\s/g, "").substring(end); 379 var str = str1 + "<span>" + str2 + "</span>" + str3; 380 $(this).html(str); 381 }) 382} 383 384function checkbox(divClass){ 385 $(divClass).each(function(index, element) { 386 var type=$(this).attr("rel") 387 if(type=="radio"){ 388 //åé 389 $(this).addClass("onchoice") 390 } 391 }); 392 $(divClass).find("div.ChoiceBox").click(function(){ 393 var type=$(this).parents("dl").attr("rel") 394 if(type=="radio"){ 395 //åé 396 $(this).addClass("onchoice") 397 $(this).find("em").addClass("selected") 398 $(this).parent().siblings().find("em").removeClass("selected") 399 }else{ 400 //å¤é 401 var hassel=$(this).find("em").hasClass("selected") 402 if(hassel){ 403 $(this).find("em").removeClass("selected") 404 $(this).siblings("div.writeBox").find("input").val("") 405 $(this).siblings("div.writeBox").find("input").blur() 406 }else{ 407 $(this).find("em").addClass("selected") 408 $(this).siblings("div.writeBox").find("input").focus() 409 } 410 var dateNum=$(this).parents("dl").attr("date-num") 411 if(dateNum){ 412 var hasselLength=$(this).parents("dl").find("em.selected").length 413 if(hasselLength<=dateNum){ 414 $(this).parents("dl").find("div.writeBox input").blur() 415 }else{ 416 $(this).find("em").removeClass("selected") 417 alert("ä¸è½è¶ è¿"+dateNum+"个") 418 $(this).parents("dl").find("div.writeBox input").blur() 419 } 420 } 421 } 422 }) 423 //è¾å ¥æ¡ç¦ç¹å¤ç 424 $(divClass).each(function(index, element) { 425 $(this).find("div.writeBox input").focus(function(){ 426 var dateNum2=$(this).parents("dl").attr("date-num") 427 if(dateNum2){ 428 $(this).parent().siblings("div.ChoiceBox").find("em").addClass("selected") 429 var hassel2=$(this).parents("dl").find("em.selected").length 430 if(hassel2<=dateNum2){ 431 }else{ 432 alert("ä¸è½è¶ è¿"+dateNum2+"个") 433 $(this).blur() 434 $(this).parent().siblings("div.ChoiceBox").find("em").removeClass("selected") 435 } 436 }else{ 437 $(this).parent().siblings("div.ChoiceBox").find("em").addClass("selected") 438 } 439 }) 440 $(this).find("div.writeBox input").blur(function(){ 441 var val=$(this).attr("value") 442 $(this).parent().siblings("div.ChoiceBox").find("input").attr("value",val) 443 }) 444 }); 445} 446 447//è·åå¹´ææ¥ 448function timeprint() { 449 var week; var date; 450 var today = new Date() 451 var year = today.getYear() 452 if (year < 1900) 453 year = 1900 + year 454 var month = today.getMonth() + 1 455 var day = today.getDate() 456 var ss = today.getDay() 457 date = year + "å¹´" + month + "æ" + day + "æ¥ " 458 if (ss == 0) week = "æææ¥" 459 if (ss == 1) week = "ææä¸" 460 if (ss == 2) week = "ææäº" 461 if (ss == 3) week = "ææä¸" 462 if (ss == 4) week = "ææå" 463 if (ss == 5) week = "ææäº" 464 if (ss == 6) week = "ææå " 465 myclock = date + "" + week 466 467 if(typeof liveclock === "undefined"){ 468 return false 469 } 470 liveclock.innerHTML = myclock; 471 472 setTimeout("timeprint()", 5000) 473} 474 475//è·ååå 476function showCal(){ 477 var CalendarData=new Array(100); 478 var madd=new Array(12); 479 var tgString="ç²ä¹ä¸ä¸æå·±åºè¾å£¬ç¸"; 480 var dzString="åä¸å¯ å¯è¾°å·³åæªç³é æäº¥"; 481 var numString="ä¸äºä¸åäºå ä¸å «ä¹å"; 482 var monString="æ£äºä¸åäºå ä¸å «ä¹åå¬è "; 483 var weekString="æ¥ä¸äºä¸åäºå "; 484 var sx="é¼ çèå é¾è马ç¾ç´é¸¡ççª"; 485 var cYear,cMonth,cDay,TheDate; 486 CalendarData = new Array(0xA4B,0x5164B,0x6A5,0x6D4,0x415B5,0x2B6,0x957,0x2092F,0x497,0x60C96,0xD4A,0xEA5,0x50DA9,0x5AD,0x2B6,0x3126E, 0x92E,0x7192D,0xC95,0xD4A,0x61B4A,0xB55,0x56A,0x4155B, 0x25D,0x92D,0x2192B,0xA95,0x71695,0x6CA,0xB55,0x50AB5,0x4DA,0xA5B,0x30A57,0x52B,0x8152A,0xE95,0x6AA,0x615AA,0xAB5,0x4B6,0x414AE,0xA57,0x526,0x31
486D26,0xD95,0x70B55,0x56A,0x96D,0x5095D,0x4AD,0xA4D,0x41A4D,0xD25,0x81AA5,0xB54,0xB6A,0x612DA,0x95B,0x49B,0x41497,0xA4B,0xA164B, 0x6A5,0x6D4,0x615B4,0xAB6,0x957,0x5092F,0x497,0x64B, 0x30D4A,0xEA5,0x80D65,0x5AC,0xAB6,0x5126D,0x92E,0xC96,0x41A95,0xD4A,0xDA5,0x20B55,0x56A,0x7155B,0x25D,0x92D,0x5192B,0xA95,0xB4A,0x416AA,0xAD5,0x90AB5,0x4BA,0xA5B, 0x60A57,0x52B,0xA93,0x40E95); 487 madd[0]=0; 488 madd[1]=31; 489 madd[2]=59; 490 madd[3]=90; 491 madd[4]=120; 492 madd[5]=151; 493 madd[6]=181; 494 madd[7]=212; 495 madd[8]=243; 496 madd[9]=273; 497 madd[10]=304; 498 madd[11]=334; 499 500 function GetBit(m,n){ 501 return (m>>n)&1; 502 } 503 function e2c(){ 504 TheDate= (arguments.length!=3) ? new Date() : new Date(arguments[0],arguments[1],arguments[2]); 505 var total,m,n,k; 506 var isEnd=false; 507 var tmp=TheDate.getYear(); 508 if(tmp<1900){ 509 tmp+=1900; 510 } 511 total=(tmp-1921)*365+Math.floor((tmp-1921)/4)+madd[TheDate.getMonth()]+TheDate.getDate()-38; 512 513 if(TheDate.getYear()%4==0&&TheDate.getMonth()>1) { 514 total++; 515 } 516 for(m=0;;m++){ 517 k=(CalendarData[m]<0xfff)?11:12; 518 for(n=k;n>=0;n--){ 519 if(total<=29+GetBit(CalendarData[m],n)){ 520 isEnd=true; break; 521 } 522 total=total-29-GetBit(CalendarData[m],n); 523 } 524 if(isEnd) break; 525 } 526 cYear=1921 + m; 527 cMonth=k-n+1; 528 cDay=total; 529 if(k==12){ 530 if(cMonth==Math.floor(CalendarData[m]/0x10000)+1){ 531 cMonth=1-cMonth; 532 } 533 if(cMonth>Math.floor(CalendarData[m]/0x10000)+1){ 534 cMonth--; 535 } 536 } 537 } 538 539 function GetcDateString(){ 540 var tmp=""; 541 tmp+=tgString.charAt((cYear-4)%10); 542 tmp+=dzString.charAt((cYear-4)%12); 543 tmp+="("; 544 tmp+=sx.charAt((cYear-4)%12); 545 tmp+=")å¹´ "; 546 if(cMonth<1){ 547 tmp+="(é°)"; 548 tmp+=monString.charAt(-cMonth-1); 549 }else{ 550 tmp+=monString.charAt(cMonth-1); 551 } 552 tmp+="æ"; 553 tmp+=(cDay<11)?"å":((cDay<20)?"å":((cDay<30)?"廿":"ä¸å")); 554 if (cDay%10!=0||cDay==10){ 555 tmp+=numString.charAt((cDay-1)%10); 556 } 557 return tmp; 558 } 559 560 function GetLunarDay(solarYear,solarMonth,solarDay){ 561 //solarYear = solarYear<1900?(1900+solarYear):solarYear; 562 if(solarYear<1921 || solarYear>2020){ 563 return ""; 564 }else{ 565 solarMonth = (parseInt(solarMonth)>0) ? (solarMonth-1) : 11; 566 e2c(solarYear,solarMonth,solarDay); 567 return GetcDateString(); 568 } 569 } 570 571 var D=new Date(); 572 var yy=D.getFullYear(); 573 var mm=D.getMonth()+1; 574 var dd=D.getDate(); 575 var ww=D.getDay(); 576 var ss=parseInt(D.getTime() / 1000); 577 if (yy<100) yy="19"+yy; 578 if(typeof nliveclock === "undefined"){ 579 return false 580 } 581 nliveclock.innerHTML = GetLunarDay(yy,mm,dd) 582 setTimeout("showCal()", 5000) 583} 584 585//ç»å½å¼¹çª 586function loginWindow(){ 587 layer.closeAll() 588 layer.open({ 589 type: 1, 590 title:false, 591 skin: 'loginLayer', //æ ·å¼ç±»å 592 closeBtn: 0, //䏿¾ç¤ºå ³éæé® 593 shadeClose: false, //å¼å¯é®ç½©å ³é 594 content: $(".loginWindow"), 595 area: ['420px', ''], 596 }); 597} 598//æ¾åå¯ç 599function findWindow(){ 600 layer.closeAll() 601 layer.open({ 602 type: 1, 603 title:false, 604 skin: 'loginLayer', //æ ·å¼ç±»å 605 closeBtn: 0, //䏿¾ç¤ºå ³éæé® 606 shadeClose: false, //å¼å¯é®ç½©å ³é 607 content: $(".findWindow"), 608 area: ['420px', ''], 609 }); 610} 611function setOlder(){ 612 layer.msg('æ£å¨éé ä¸...', {}); 613} 614/* å¯¼èªææ */ 615(function(e) { 616 e.fn.menu = function(a) { 617 var b = $.extend({}, { 618 type: 0,//0--æ æ»å(é»è®¤)ï¼1--ææ»å 619 defaultIndex: 0, 620 height: 5,//æ»åé«åº¦ 621 background: "red",//æ»åèæ¯è² 622 bottom: 0,//æ»åè·ç¦»å¯¼èªåºé¨è·ç¦» 623 animateEase: "linear",//æ»åçè¿å¨è´å¡å°æ²çº¿ 624 time: 500,//æ»åçè¿å¨æ¶é´ 625 zIndex: -1, 626 margin: 0,//æ»åå·¦å³é´è· 627 average:false,//ddå¹³ååå¼å ³ 628 antComplete: !0,//æ»åå¨ç»å®æåè°å½æ°ï¼é»è®¤ï¼ 629 startFun: null,//æ»åè¿å ¥ååè°æ¹æ³ 630 endFun: null//æ»å离å¼ååè°æ¹æ³ 631 }, a); 632 a = b.type; 633 var c = b.height, 634 d = b.background, 635 f = b.bottom, 636 g = b.animateEase, 637 n = b.time, 638 w = b.zIndex, 639 v = b.margin, 640 vpj = b.average, 641 p = 0, 642 q = 0, 643 r = 0, 644 t = 0, 645 l = "", 646 h = this; 647 e(this); 648 var m = parseInt(b.defaultIndex), 649 x = b.antComplete, 650 current=null, 651 u = function() { 652 e.isFunction(b.startFun) && b.startFun(m,current) 653 }, 654 k = h.children();
655 switch (a) { 656 case 1: 657 h.parent().css({ 658 position: "relative", 659 "z-index": 9 660 }); 661 h.parent().append('<div class="menuIcon" style="position:absolute"><div></div></div>'); 662 h.siblings(".menuIcon").css({ 663 height: c, 664 bottom: f, 665 "z-index": w 666 }); 667 h.siblings(".menuIcon").find("div").css({ 668 height: c, 669 background: d, 670 marginLeft: v, 671 marginRight: v 672 }); 673 if(vpj){ 674 k.width(($(this).width())/(k.length)) 675 } 676 k.each(function(a) { 677 $(this).hasClass("hover") && (r = $(this).outerWidth(), t = $(this).position().left, l = $(this).index(), h.siblings(".menuIcon").stop(!0, !1).animate({ 678 width: r, 679 left: t 680 }, { 681 duration: n, 682 easing: g 683 })); 684 $(this).hover(function() { 685 current=$(this) 686 m = $(this).index(); 687 p = $(this).outerWidth(); 688 q = $(this).position().left; 689 switch (x) { 690 case !0: 691 h.siblings(".menuIcon").stop(!0, !1).animate({ 692 width: p, 693 left: q 694 }, n, g, u); 695 break; 696 case !1: 697 h.siblings(".menuIcon").stop(!0, !1).animate({ 698 width: p, 699 left: q 700 }, { 701 duration: n, 702 easing: g 703 }), u() 704 } 705 $(this).addClass("hover").siblings().removeClass("hover") 706 }, function() { 707 e.isFunction(b.endFun) && b.endFun(m,current) 708 }) 709 }); 710 k.hover(function() {}, function() { 711 h.siblings(".menuIcon").stop(!0, !1).animate({ 712 width: r, 713 left: t 714 }, { 715 duration: n, 716 easing: g 717 }); 718 "" === l ? k.removeClass("hover") : k.eq(l).addClass("hover").siblings().removeClass("hover") 719 }); 720 break; 721 case 0: 722 k.each(function(a) { 723 $(this).hasClass("hover") && (l = $(this).index()); 724 $(this).hover(function() { 725 current=$(this) 726 m = $(this).index(); 727 u(); 728 $(this).addClass("hover").siblings().removeClass("hover") 729 }, function() { 730 e.isFunction(b.endFun) && b.endFun(m,current) 731 }) 732 }), k.hover(function() {}, function() { 733 "" === l ? k.removeClass("hover") : k.eq(l).addClass("hover").siblings().removeClass("hover") 734 }) 735 } 736 } 737})(jQuery); 738jQuery.easing.jswing = jQuery.easing.swing, 739jQuery.extend(jQuery.easing, { 740 def: "easeOutQuad", 741 swing: function(a, b, c, d, e) { 742 return jQuery.easing[jQuery.easing.def](a, b, c, d, e) 743 }, 744 easeInQuad: function(a, b, c, d, e) { 745 return d * (b /= e) * b + c 746 }, 747 easeOutQuad: function(a, b, c, d, e) { 748 return - d * (b /= e) * (b - 2) + c 749 }, 750 easeInOutQuad: function(a, b, c, d, e) { 751 return 1 > (b /= e / 2) ? d / 2 * b * b + c: -d / 2 * (--b * (b - 2) - 1) + c 752 }, 753 easeInCubic: function(a, b, c, d, e) { 754 return d * (b /= e) * b * b + c 755 }, 756 easeOutCubic: function(a, b, c, d, e) { 757 return d * ((b = b / e - 1) * b * b + 1) + c 758 }, 759 easeInOutCubic: function(a, b, c, d, e) { 760 return 1 > (b /= e / 2) ? d / 2 * b * b * b + c: d / 2 * ((b -= 2) * b * b + 2) + c 761 }, 762 easeInQuart: function(a, b, c, d, e) { 763 return d * (b /= e) * b * b * b + c 764 }, 765 easeOutQuart: function(a, b, c, d, e) { 766 return - d * ((b = b / e - 1) * b * b * b - 1) + c 767 }, 768 easeInOutQuart: function(a, b, c, d, e) { 769 return 1 > (b /= e / 2) ? d / 2 * b * b * b * b + c: -d / 2 * ((b -= 2) * b * b * b - 2) + c 770 }, 771 easeInQuint: function(a, b, c, d, e) { 772 return d * (b /= e) * b * b * b * b + c 773 }, 774 easeOutQuint: function(a, b, c, d, e) { 775 return d * ((b = b / e - 1) * b * b * b * b + 1) + c 776 }, 777 easeInOutQuint: function(a, b, c, d, e) { 778 return 1 > (b /= e / 2) ? d / 2 * b * b * b * b * b + c: d / 2 * ((b -= 2) * b * b * b * b + 2) + c 779 }, 780 easeInSine: function(a, b, c, d, e) { 781 return - d * Math.cos(b / e * (Math.PI / 2)) + d + c 782 }, 783 easeOutSine: function(a, b, c, d, e) { 784 return d * Math.sin(b / e * (Math.PI / 2)) + c 785 }, 786 easeInOutSine: function(a, b, c, d, e) { 787 return - d / 2 * (Math.cos(Math.PI * b / e) - 1) + c 788 }, 789 easeInExpo: function(a, b, c, d, e) { 790 return 0 == b ? c: d * Math.pow(2, 10 * (b / e - 1)) + c 791 }, 792 easeOutExpo: function(a, b, c, d, e) { 793 return b == e ? c + d: d * ( - Math.pow(2, -10 * b / e) + 1) + c 794 }, 795 easeInOutExpo: function(a, b, c, d, e) { 796 return 0 == b ? c: b == e ? c + d: 1 > (b /= e / 2) ? d / 2 * Math.pow(2, 10 * (b - 1)) + c: d / 2 * ( - Math.pow(2, -10 * --b) + 2) + c 797 }, 798 easeInCirc: function(a, b, c, d, e) { 799 return - d * (Math.sqrt(1 - (b /= e) * b) - 1) + c 800 }, 801 easeOutCirc: function(a, b, c, d, e) { 802 return d * Math.sqrt(1 - (b = b / e - 1) * b) + c 803 }, 804 easeInOutCirc: function(a, b, c, d, e) { 805 return 1 > (b /= e / 2) ? -d / 2 * (Math.sqrt(1 - b * b) - 1) + c: d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c 806 }, 807 easeInElastic: function(a, b, c, d, e) { 808 var f = 1.70158, 809 g = 0, 810 h = d; 811 if (0 == b) return c; 812 if (1 == (b /= e)) return c + d; 813 if (g || (g = .3 * e), Math.abs(d) > h) { 814 h = d; 815 var f = g / 4 816 } else var f = g / (2 * Math.PI) * Math.asin(d / h); 817 return - (h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c 818 }, 819 easeOutElastic: function(a, b, c, d, e) { 820 var f = 1.70158, 821 g = 0, 822 h = d; 823 if (0 == b) return c; 824 if (1 == (b /= e)) return c + d; 825 if (g || (g = .3 * e), Math.abs(d) > h) { 826 h = d; 827 var f = g / 4 828 } else var f = g / (2 * Math.PI) * Math.asin(d / h); 829 return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c 830 }, 831 easeInOutElastic: function(a, b, c, d, e) { 832 var f = 1.70158, 833 g = 0, 834 h = d; 835 if (0 == b) return c; 836 if (2 == (b /= e / 2)) return c + d; 837 if (g || (g = e * .3 * 1.5), Math.abs(d) > h) { 838 h = d; 839 var f = g / 4 840 } else var f = g / (2 * Math.PI) * Math.asin(d / h); 841 return 1 > b ? -.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c: .5 * h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c 842 }, 843 easeInBack: function(a, b, c, d, e, f) { 844 return void 0 == f && (f = 1.70158), 845 d * (b /= e) * b * ((f + 1) * b - f) + c 846 }, 847 easeOutBack: function(a, b, c, d, e, f) { 848 return void 0 == f && (f = 1.70158), 849 d * ((b = b / e - 1) * b * ((f + 1) * b + f) + 1) + c 850 }, 851 easeInOutBack: function(a, b, c, d, e, f) { 852 return void 0 == f && (f = 1.70158), 853 1 > (b /= e / 2) ? d / 2 * b * b * (((f *= 1.525) + 1) * b - f) + c: d / 2 * ((b -= 2) * b * (((f *= 1.525) + 1) * b + f) + 2) + c 854 }, 855 easeInBounce: function(a, b, c, d, e) { 856 return d - jQuery.easing.easeOutBounce(a, e - b, 0, d, e) + c 857 }, 858 easeOutBounce: function(a, b, c, d, e) { 859 return 1 / 2.75 > (b /= e) ? d * 7.5625 * b * b + c: 2 / 2.75 > b ? d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c: 2.5 / 2.75 > b ? d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c: d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c 860 }, 861 easeInOutBounce: function(a, b, c, d, e) { 862 return e / 2 > b ? .5 * jQuery.easing.easeInBounce(a, 2 * b, 0, d, e) + c: .5 * jQuery.easing.easeOutBounce(a, 2 * b - e, 0, d, e) + .5 * d + c 863 } 864}); 865 866$(document).ready(function(){ 867 if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) { 868 new WOW().init(); 869 } 870 scaleImg(); 871 // ç»å½ 872 if ($(".loginWindow").size()>0) { 873 setTimeout(function(){ 874 loginWindow() 875 },100) 876 } 877 tabs(".loginTab",".loginCon","click"); 878 //ç«ç¾¤å¯¼èª 879 $(".top1R .topNav").hover(function(){ 880 $(".top1R .topNavCon").stop(true,true).slideDown() 881 },function(){
882 $(".top1R .topNavCon").stop(true,true).slideUp() 883 }) 884 $(".topLanguage").find("a").click(function(){ 885 $(this).addClass('hover'); 886 $(this).siblings("a").removeClass("hover"); 887 }) 888 889 //夿æ¯å¦æäºçº§åä¸çº§ 890 $(".leftNavDl1 dd").each(function(){ 891 if( $(this).children(".ejBox").length>0 ){ 892 $(this).find(".yj span").show(); 893 if($(this).children(".ejBox").find(".ejCon").hasClass("hover")){ 894 $(this).children(".ejBox").stop(true,true).slideDown() 895 $(this).addClass("active") 896 } 897 }else{ 898 $(this).find(".yj span").hide() 899 } 900 }) 901 $(".leftNavDl1 dd .ejCon").each(function(){ 902 if($(this).children(".sj").length>0){ 903 $(this).find(".ej span").show(); 904 if($(this).children(".sj").find("a").hasClass("hover")){ 905 $(this).parents(".ejBox").stop(true,true).slideDown() 906 $(this).children(".sj").stop(true,true).slideDown() 907 $(this).addClass("active") 908 } 909 }else{ 910 $(this).find(".ej span").hide() 911 } 912 }) 913 //左侧导èªä¸æ 914 $(".leftNavDl1 dd").each(function(){ 915 $(this).find(".yj span").click(function(){ 916 if($(this).parents("dd").hasClass("active")){ 917 $(this).parent().siblings(".ejBox").stop(true,true).slideUp() 918 $(this).parents("dd").removeClass("active") 919 }else{ 920 $(this).parents("dd").addClass("active") 921 $(this).parent().siblings(".ejBox").stop(true,true).slideDown() 922 $(this).parents("dd").siblings().find(".ejBox").stop(true,true).slideUp() 923 $(this).parents("dd").siblings().removeClass("active") 924 } 925 }) 926 }) 927 928 $(".leftNavDl1 dd .ejCon").each(function(){ 929 $(this).find(".ej span").click(function(){ 930 if($(this).parents(".ejCon").hasClass("active")){ 931 $(this).parent().siblings(".sj").stop(true,true).slideUp() 932 $(this).parents(".ejCon").removeClass("active") 933 }else{ 934 $(this).parents(".ejCon").addClass("active") 935 $(this).parent().siblings(".sj").stop(true,true).slideDown() 936 $(this).parents(".ejCon").siblings().find(".sj").stop(true,true).slideUp() 937 $(this).parents(".ejCon").siblings().removeClass("active") 938 } 939 }) 940 }) 941 942 // åºé¨å¯¼èªæ£ç´¢ 943 $(".footerNavDl dd").each(function(){ 944 $(this).click(function(){ 945 $(this).find(".ej").stop(true,true).slideDown() 946 }) 947 $(this).on('mouseleave',function () { 948 $(this).find(".ej").stop(true,true).slideUp() 949 }) 950 }) 951 952 // éè䏿å°å¾æ 953 $(".footerNavDl dd").each(function () { 954 if ($(this).children(".ej").length > 0) { 955 $(this).find(".yj i").show(); 956 } else { 957 $(this).find(".yj i").hide() 958 } 959 }) 960 961 962 // æä»¶æ£ç´¢ 963 laydate.render({ 964 elem: '#retrieveDate' , 965 range: true ,//æ range: '~' æ¥èªå®ä¹åå²å符 966 theme: '#2d66a5' 967 }); 968 969 970 // éè䏿å°å¾æ 971 $(".footerNavDl dd").each(function(){ 972 if( $(this).children(".ej").length>0 ){ 973 $(this).find(".yj i").show(); 974 }else{ 975 $(this).find(".yj i").hide() 976 } 977 }) 978 979 //é£çªè°ç¨ 980 var moveW = window.innerWidth || document.body.clientWidth 981 var moveH = window.innerHeight || document.body.clientHeight 982 var flutterW = $("#flutterBox1").width() 983 var flutterW1 = $("#flutterBox2").width() 984 var flutterH1 = $("#flutterBox2").height() 985 var moveW1 = moveW - flutterW 986 var moveW2 = moveW - flutterW1 987 move_obj("#flutterBox") 988 move_obj("#flutterBox1",'','',1,1,moveW1,300,20); 989 move_obj("#flutterBox2",'','',1,1,moveW1,moveH-flutterH1,20); 990 991 //ä¸é¢åçåéæ å¾js 992 if($(".columnImgHalveSwiper") && $(".columnImgHalveSwiper .swiper-slide").length>0){ 993 var columnImgHalveSwiper = new Swiper(".columnImgHalveSwiper .bd", { 994 spaceBetween: 0, 995 slidesPerView: 4, 996 speed:1000, 997 loop: true, 998 autoplay: { 999 delay: 3000, 1000 stopOnLastSlide: false, 1001 disableOnInteraction: false, 1002 pauseOnMouseEnter: true, 1003 }, 1004 navigation: { 1005 nextEl: ".columnImgHalveSwiper .next", 1006 prevEl: ".columnImgHalveSwiper .prev", 1007 }, 1008 pagination: { 1009 el: ".indexColumImgDot", 1010 clickable: true, 1011 }, 1012 }) 1013 if(columnImgHalveSwiper && columnImgHalveSwiper.el){ 1014 columnImgHalveSwiper.el.onmouseover = function(){ 1015 columnImgHalveSwiper.autoplay.stop(); 1016 } 1017 columnImgHalveSwiper.el.onmouseout = function(){ 1018 columnImgHalveSwiper.autoplay.start(); 1019 } 1020 } 1021 }else{ 1022 $(".columnImgHalveSwiper").find(".next").hide() 1023 $(".columnImgHalveSwiper").find(".prev").hide() 1024 } 1025 1026 // é®å·è°æ¥ 1027 if($(".questionDl")){ 1028 checkbox(".questionDl") 1029 } 1030 const $input = $('.aykj_beautify_input'); 1031 if ($input.length > 0 && typeof $.fn.cssSelect === 'function') { 1032 $input.cssSelect(); 1033 } else if ($input.length > 0) { 1034 console.warn('cssSelect æ¹æ³æªå®ä¹ï¼æ æ³ç¾åè¾å ¥æ¡'); 1035 } 1036 1037 // 2. å¤çåéæ¡ç¾å 1038 const $radio = $('.aykj_beautify_radio'); 1039 if ($radio.length > 0 && typeof $.fn.cssRadio === 'function') { 1040 $radio.cssRadio(); 1041 } else if ($radio.length > 0) { 1042 console.warn('cssRadio æ¹æ³æªå®ä¹ï¼æ æ³ç¾ååéæ¡'); 1043 } 1044 1045 // 3. å¤çå¤éæ¡ç¾å 1046 const $checkBox = $('.aykj_beautify_checkBox'); 1047 if ($checkBox.length > 0 && typeof $.fn.cssCheckBox === 'function') { 1048 $checkBox.cssCheckBox(); 1049 } else if ($checkBox.length > 0) { 1050 console.warn('cssCheckBox æ¹æ³æªå®ä¹ï¼æ æ³ç¾åå¤éæ¡'); 1051 } 1052 //è·³å¤é¾é»ææç¤º 1053 // var websiteName = $("#websiteName").val() 1054 // $("a").click(function(e){
1055 // e.preventDefault(); 1056 // var thisLink = $(this).attr("href"); 1057 // //&& this.href.toLowerCase().indexOf('www.aykj.wang') == -1 1058 // if(this.href.toLowerCase().indexOf('http')==0 && this.href.toLowerCase().indexOf('/aykj.wang')== -1 ){ 1059 // layer.confirm('æ¨è®¿é®ç龿¥å³å°ç¦»å¼â'+websiteName+'â鍿·ç½ç«ï¼æ¯å¦ç»§ç»ï¼', { 1060 // btn: ['ç»§ç»è®¿é®','åæ¶'], //æé® 1061 // title:'æç¤º', 1062 // icon:3 1063 // }, function(){ 1064 // window.open(thisLink) 1065 // layer.close(layer.index) 1066 // }); 1067 // } 1068 // 1069 // }) 1070 timeprint() 1071}) 1072 1073 1074
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.