1/** 2 * @software [JiJinCMS] 3 * @author [䏿µ·éé¦ä¿¡æ¯ç§ææéå ¬å¸] 4 * @website [http://www.jijinweb.com] 5 * @email [[email protected]] 6 **/ 7 8function alerts(message){const popup=document.createElement("div");popup.className="message_box";popup.innerHTML=`<div class="message_box_bg"><div class="message_box_content"><div class="content_top"><div class="content_top_title">Information</div><div class="content_top_close"><div class="top_close_li top_close_left"></div><div class="top_close_li top_close_right"></div></div></div><div class="content_center"><p>${message}</p></div><div class="content_bottom"><div class="content_bottom_btns">OK</div></div></div></div>`;document.body.appendChild(popup);$(".message_box").fadeIn(100);setTimeout(function(){$(".message_box .message_box_bg").addClass("on")},100);$(".message_box .content_top_close").click(function(){$(".message_box .message_box_bg").removeClass("on");setTimeout(function(){$(".message_box").fadeOut(50)},80);setTimeout(function(){popup.parentNode.removeChild(popup)},100)});$(".message_box .content_bottom_btns").click(function(){$(".message_box .message_box_bg").removeClass("on");setTimeout(function(){$(".message_box").fadeOut(50)},80);setTimeout(function(){popup.parentNode.removeChild(popup)},100)})} 9 10function myajax(){try{return new XMLHttpRequest()}catch(e){try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){try{return new ActiveXObject('Msxm12.XMLHTTP')}catch(e){alert("Your browser version is too old, please change to a new browser")}}}} 11 12function downloadFile(fileurl,filename){var xhr=myajax();xhr.open('GET',fileurl,true);xhr.responseType='blob';xhr.onload=function(res){if(this.status===200){var type=xhr.getResponseHeader('Content-Type');var blob=new Blob([this.response],{type:type});if(typeof window.navigator.msSaveBlob!=='undefined'){window.navigator.msSaveBlob(blob,filename)}else{var URL=window.URL||window.webkitURL;var objectUrl=URL.createObjectURL(blob);if(filename){var a=document.createElement('a');if(typeof a.download==='undefined'){window.location=objectUrl}else{a.href=objectUrl;a.download=filename;document.body.appendChild(a);a.click();a.remove()}}else{window.location=objectUrl}}}};xhr.send(null)} 13 14 15 16 17$(document).ready(function($){ 18 function loadss(){ 19 var pageTitles = document.title; 20 $(".SourcePage").val(pageTitles); 21 } 22 loadss(); 23 $(window).resize(function($){loadss();}); 24 window.onload = function(){loadss();} 25 26 27 let regNull = /^\s*$/; 28 let regPhone = /^(1)[0-9]{10}$/; 29 let regEmail = /^([a-zA-Z0-9_\.-]+)@([\da-zA-Z\.-]+)\.([a-zA-Z\.]{2,6})$/; 30 31 $(".NewsDetails .NewsDetails_page .NewsDetails_page_list").each(function() { 32 if ($(this).text().indexOf("没æäº") !== -1) { 33 $(this).addClass("has_nothing"); 34 } 35 }); 36 37 38 var InterValObj; //timeråéï¼æ§å¶æ¶é´ 39 var count = 120; //é´é彿°ï¼1ç§æ§è¡ 40 var curCount;//å½åå©ä½ç§æ° 41 function sendMessage1() { 42 $(".btnSendCode1").addClass("disabled"); 43 curCount = count; 44 //设置buttonææï¼å¼å§è®¡æ¶ 45 $(".btnSendCode1").attr("disabled", "true"); 46 $(".btnSendCode1").css("cursor", "not-allowed"); 47 $(".btnSendCode1").css("color", "#999"); 48 $(".btnSendCode1").css("border-color", "#999"); 49 $(".btnSendCode1").text(curCount + " seconds to obtain again"); 50 InterValObj = window.setInterval(SetRemainTime1, 1000); //å¯å¨è®¡æ¶å¨ï¼1ç§æ§è¡ä¸æ¬¡ 51 } 52 //timerå¤ç彿° 53 function SetRemainTime1() { 54 if (curCount == 0) { 55 window.clearInterval(InterValObj);//åæ¢è®¡æ¶å¨ 56 57 $(".btnSendCode1").removeAttr("disabled");//å¯ç¨æé® 58 $(".btnSendCode1").css("cursor", "pointer"); 59 $(".btnSendCode1").css("color", "#e00031"); 60 $(".btnSendCode1").css("border-color", "#e00031"); 61 $(".btnSendCode1").text("Retrieve verification code again"); 62 code = ""; //æ¸ é¤éªè¯ç ã妿䏿¸ é¤ï¼è¿æ¶é´åï¼è¾å ¥æ¶å°çéªè¯ç ä¾ç¶ææ 63 $(".btnSendCode1").removeClass("disabled"); 64 } 65 else { 66 curCount--; 67 $(".btnSendCode1").text(curCount + " seconds to obtain again"); 68 } 69 } 70 71 function sendMessage2() { 72 $(".btnSendCode2").addClass("disabled"); 73 curCount = count; 74 //设置buttonææï¼å¼å§è®¡æ¶ 75 $(".btnSendCode2").attr("disabled", "true"); 76 $(".btnSendCode2").css("cursor", "not-allowed"); 77 $(".btnSendCode2").css("color", "#999"); 78 $(".btnSendCode2").css("border-color", "#999"); 79 $(".btnSendCode2").text(curCount + " seconds to obtain again"); 80 InterValObj = window.setInterval(SetRemainTime2, 1000);
80 //å¯å¨è®¡æ¶å¨ï¼1ç§æ§è¡ä¸æ¬¡ 81 } 82 //timerå¤ç彿° 83 function SetRemainTime2() { 84 if (curCount == 0) { 85 window.clearInterval(InterValObj);//åæ¢è®¡æ¶å¨ 86 $(".btnSendCode2").removeAttr("disabled");//å¯ç¨æé® 87 $(".btnSendCode2").css("cursor", "pointer"); 88 $(".btnSendCode2").css("color", "#e00031"); 89 $(".btnSendCode2").css("border-color", "#e00031"); 90 $(".btnSendCode2").text("Retrieve verification code again"); 91 code = ""; //æ¸ é¤éªè¯ç ã妿䏿¸ é¤ï¼è¿æ¶é´åï¼è¾å ¥æ¶å°çéªè¯ç ä¾ç¶ææ 92 $(".btnSendCode2").removeClass("disabled"); 93 } 94 else { 95 curCount--; 96 console.log(curCount); 97 $(".btnSendCode2").text(curCount + " seconds to obtain again"); 98 } 99 } 100 101 102 103 $(".btnSendCode1").click(function(){ 104 if(!$(this).hasClass("disabled")){ 105 if(regNull.test($(".PCWindow .CWindowBg_content_form .uemail").val())){ 106 $(".PCWindow .CWindowBg_content_form .uemail").val(""); 107 alerts('Please ensure that the required information is not empty.'); 108 return false; 109 }else{ 110 if(!regEmail.test($(".PCWindow .CWindowBg_content_form .uemail").val())){ 111 $(".PCWindow .CWindowBg_content_form .uemail").val(""); 112 alerts('E-mail format is incorrect.'); 113 return false; 114 }else{ 115 let to = $(".PCWindow .CWindowBg_content_form .uemail").val(); 116 $.ajax({ 117 url: "/index/SendEmail/send", // æå¡å¨èæ¬çURL 118 type: "POST", // 请æ±ç±»åï¼é常为"POST"æ"GET" 119 data: {"to":to}, 120 success: function(res) { 121 if(res == true){ 122 alerts("Send Success"); 123 sendMessage1(); 124 }else{ 125 alerts("Send Error"); 126 } 127 }, 128 }); 129 } 130 } 131 } 132 133 134 }); 135 $(".btnSendCode2").click(function(){ 136 if(!$(this).hasClass("disabled")){ 137 if(regNull.test($(".DCWindow .CWindowBg_content_form .uemail").val())){ 138 $(".DCWindow .CWindowBg_content_form .uemail").val(""); 139 alerts('Please ensure that the required information is not empty.'); 140 return false; 141 }else{ 142 if(!regEmail.test($(".DCWindow .CWindowBg_content_form .uemail").val())){ 143 $(".DCWindow .CWindowBg_content_form .uemail").val(""); 144 alerts('E-mail format is incorrect.'); 145 return false; 146 }else{ 147 let to = $(".DCWindow .CWindowBg_content_form .uemail").val(); 148 $.ajax({ 149 url: "/index/SendEmail/send", // æå¡å¨èæ¬çURL 150 type: "POST", // 请æ±ç±»åï¼é常为"POST"æ"GET" 151 data: {"to":to}, 152 success: function(res) { 153 if(res == true){ 154 alerts("Send Success"); 155 sendMessage2(); 156 }else{ 157 alerts("Send Error"); 158 } 159 }, 160 }); 161 } 162 } 163 } 164 165 }); 166 167 168 169 170 //å¯¼èªæç´¢æç¤º 171 $(".TopSearchForm .submit_btn").click(function(){ 172 if(regNull.test($(".TopSearchForm .keywords").val())){ 173 $(".TopSearchForm .keywords").val(""); 174 alerts("Search content cannot be empty"); 175 return false; 176 } 177 }); 178 //æç´¢é¡µé¢æç¤º 179 $(".SearchPageForm .submit_btn").click(function(){ 180 if(regNull.test($(".SearchPageForm .keywords").val())){ 181 $(".SearchPageForm .keywords").val(""); 182 alerts("Search content cannot be empty"); 183 return false; 184 } 185 }); 186 187 //éåä¸å¿æç´¢æç¤º 188 $(".LNewsSearch .submit_btn").click(function(){ 189 if(regNull.test($(".LNewsSearch .keywords").val())){ 190 $(".LNewsSearch .keywords").val(""); 191 alerts("Search content cannot be empty"); 192 return false;
193 } 194 }); 195 196 $(".DownSearchForm .submit_btn").click(function(){ 197 let dkws = "["+ $(".DownSearchForm .keywords").val() +"]"; 198 if(regNull.test($(".DownSearchForm .keywords").val())){ 199 $(".DownSearchForm .keywords").val(""); 200 alerts("Search content cannot be empty"); 201 return false; 202 }else{ 203 window.location.search = '?down=' + encodeURIComponent(dkws); 204 return false; 205 } 206 }); 207 208 $(".ApiSearchForm .submit_btn").click(function(){ 209 let akws = "["+ $(".ApiSearchForm .keywords").val() +"]"; 210 if(regNull.test($(".ApiSearchForm .keywords").val())){ 211 $(".ApiSearchForm .keywords").val(""); 212 alerts("Search content cannot be empty"); 213 return false; 214 }else{ 215 window.location.search = '?title=' + encodeURIComponent(akws); 216 return false; 217 } 218 }); 219 220 221 $('.ClickMoTop').click(function () { 222 $('html,body').animate({scrollTop:0 },800); 223 }); 224 225 226 227 228 229 230 //è§é¢ææ¾ 231 $(".click_video").click(function() { 232 var src = $(this).data("src"); 233 var imgsrc = $(this).find(".content_list_img img").attr("src"); 234 console.log(src); 235 console.log(imgsrc); 236 $(".content_list_video").show(); 237 $(".content_list_video .list_video_content video").prop("src",src); 238 $(".content_list_video .list_video_content video").trigger('play'); 239 }); 240 $(".fa-close").click(function(){ 241 $(".content_list_video").hide(); 242 $(".content_list_video .list_video_content video").trigger('pause'); 243 }); 244 245 246 247 248 249 //èç³»æä»¬ç¹å» 250 $(".ClickCWindow").click(function(){ 251 $(".PCWindow").show(); 252 }); 253 $(".PCWindow .CWindowBg_content_close").click(function(){ 254 $(".PCWindow .CWindowBg_content_form").removeAttr("furl"); 255 $(".PCWindow .CWindowBg_content_form").removeAttr("fname"); 256 $(".PCWindow .CWindowBg_content_form").removeAttr("vsrc"); 257 $(".PCWindow").hide(); 258 }); 259 260 261 $(".ClickDCWindow").click(function(){ 262 $(".DCWindow").show(); 263 }); 264 $(".DCWindow .CWindowBg_content_close").click(function(){ 265 $(".DCWindow .CWindowBg_content_form").removeAttr("furl"); 266 $(".DCWindow .CWindowBg_content_form").removeAttr("fname"); 267 $(".DCWindow .CWindowBg_content_form").removeAttr("vsrc"); 268 $(".DCWindow").hide(); 269 }); 270 271 272 273 $(".Down_File").click(function(){ 274 $(".PCWindow .CWindowBg_content_form").removeAttr("furl"); 275 $(".PCWindow .CWindowBg_content_form").removeAttr("fname"); 276 $(".PCWindow .CWindowBg_content_form").removeAttr("vsrc"); 277 $(".PCWindow").show(); 278 let fileurl = $(this).data("url"); 279 let fname = $(this).data("name"); 280 $(".PCWindow .CWindowBg_content_form").attr("furl",fileurl); 281 $(".PCWindow .CWindowBg_content_form").attr("fname",fname); 282 }); 283 $(".Watch_Video").click(function(){ 284 $(".PCWindow .CWindowBg_content_form").removeAttr("furl"); 285 $(".PCWindow .CWindowBg_content_form").removeAttr("fname"); 286 $(".PCWindow .CWindowBg_content_form").removeAttr("vsrc"); 287 $(".PCWindow").show(); 288 let videos = $(this).data("src"); 289 $(".PCWindow .CWindowBg_content_form").attr("vsrc",videos); 290 }); 291 292 293 294 295 296 297 $(".ClickEWindow").click(function(){ 298 $(".CWindow").hide(); 299 $(".EWindow .SWindow_content").show(); 300 setTimeout(function() { 301 $(".EWindow .SWindow_content").hide(); 302 }, 3000); 303 }); 304 305 306 //åçåºç¨äºå¹³å° 307 $(".Enterprise .EnterpriseList").mouseover(function(){ 308 var index = $(".Enterprise .EnterpriseList").index(this); 309 $(this).addClass("on").siblings().removeClass("on"); 310 $(".Enterprise .EnterpriseListBg").eq(index).addClass("on").siblings().removeClass("on"); 311 $(".Enterprise .EnterpriseDownList").eq(index).addClass("on").siblings().removeClass("on"); 312 }) 313 314 315 //DCE 社åºå¼æºææ¯æ´»å¨ 316 $(".PActivityWindowClick").click(function(){ 317 $(".PActivityWindow").addClass("on"); 318 }) 319 $(".PActivityWindow_content_close").click(function(){ 320 $(".PActivityWindow").removeClass("on"); 321 }) 322 323 324 //é¦é¡µå¤§äºè®° 325 $(".History .History_Nav .History_Nav_list").eq(0).addClass("on"); 326 $(".History .History_content .History_content_list").eq(0).addClass("on"); 327 $(".History .History_Nav .History_Nav_list").click(function(){ 328 var index = $(".History .History_Nav .History_Nav_list").index(this); 329 $(this).addClass("on").siblings().removeClass("on"); 330 $(".History .History_content .History_content_list").eq(index).addClass("on").siblings().removeClass("on"); 331 DevelopmentPathgallerySwiper.slideTo(index); 332 }) 333 334 335 336 337 //DCE 社åºå¼æºææ¯æ´»å¨ 338 $(".PActivity .PActivity_content .PActivity_content_left .content_left_txt .left_txt_list").eq(0).addClass("on"); 339 $(".PActivity .PActivity_content .PActivity_content_left .content_left_txt .left_txt_list").click(function(){ 340 var index = $(".PActivity .PActivity_content .PActivity_content_left .content_left_txt .left_txt_list").index(this); 341 $(this).addClass("on").siblings().removeClass("on"); 342 $(".History .History_content .History_content_list").eq(index).addClass("on").siblings().removeClass("on"); 343 PActivity.slideTo(index); 344 }) 345 var PActivity = new Swiper('.PActivity_content_right .swiper-container', { 346 spaceBetween: 0, 347 slidesPerView: 1, 348 slidesPerGroup: 1, 349 loop: false, 350 pagination: { 351 el: ".PActivity_content_right .swiper-pagination", 352 clickable: true, 353 }, 354 }) 355 PActivity.on('slideChange', function() { 356 var activeIndex = PActivity.activeIndex; 357 $('.left_txt_list').removeClass('on'); 358 $('.left_txt_list').eq(activeIndex).addClass('on'); 359 }); 360 361 362 363 364 //æç´¢ 365 $(".click_search").click(function(){ 366 $(".search").fadeIn(); 367 $("body").addClass("on"); 368 setTimeout(function(){ 369 $(".search .search_bg").addClass("on"); 370 },300); 371 372 }); 373 $(".search_close").click(function(){ 374 $(".search .search_bg").removeClass("on"); 375 $("body").removeClass("on"); 376 setTimeout(function(){ 377 $(".search").fadeOut(); 378 },100); 379 }); 380 381 382 //ç§»å¨ç«¯å å ¥æä»¬é«åº¦ 383 var width = $(window).width(); 384 if( width < 766 ){ 385 var divHeight = $(".ServiceNetwork .pc_all_content").height(); 386 console.log(divHeight); 387 $(".ServiceNetwork .ServiceNetwork_img").height(divHeight + 170) 388 }; 389 390 //ç§»å¨ç«¯å é¡µå¯¼èª 391 window.onload = function(){ 392 MoNav(); 393 }; 394 $(window).resize(function () { 395 MoNav(); 396 }); 397 MoNav(); 398 function MoNav(){ 399 var width = $(window).width(); 400 if( width < 766 ){ 401 var NavWidth = $(".DNav .DNav_list").width() + 58; 402 var NavSize = $(".DNav .DNav_list").length; 403 var AllWidth = NavWidth * NavSize 404 $(".DNav .DNav_scr").width(AllWidth) 405 if($(".DNav .DNav_list").eq(2).hasClass("on")){ 406 $(".DNav").scrollLeft(150); 407 } 408 if($(".DNav .DNav_list").eq(3).hasClass("on")){ 409 $(".DNav").scrollLeft(300); 410 } 411 if($(".DNav .DNav_list").eq(4).hasClass("on")){ 412 $(".DNav").scrollLeft(300); 413 } 414 if($(".DNav .DNav_list").eq(5).hasClass("on")){ 415 $(".DNav").scrollLeft(400); 416 } 417 if($(".DNav .DNav_list").eq(6).hasClass("on")){ 418 $(".DNav").scrollLeft(500); 419 } 420 }; 421 }; 422 423 424 //è§é¢ç¹å» 425 $(".click_video").click(function(){ 426 var src = $(this).data("src"); 427 var imgsrc = $(this).find(".content_list_img img").attr("src"); 428 $(".content_list_video .list_video_content video").prop("src",src); 429 $(".content_list_video .list_video_content video").trigger('play'); 430 $(".content_list_video").fadeIn(); 431 setTimeout(function(){ 432 $(".content_list_video").addClass("on"); 433 },300); 434 435 }); 436 $(".fa-close").click(function(){ 437 $(".content_list_video .list_video_content video").trigger('pause'); 438 $(".content_list_video").removeClass("on"); 439 setTimeout(function(){ 440 $(".content_list_video").fadeOut(); 441 },100);
442 }); 443 444 445 446 //wow 447 var wow = new WOW({ 448 boxClass: 'wow', 449 animateClass: 'animated', 450 offset: 50, 451 mobile: false, 452 live: true 453 }); 454 wow.init(); 455 456 457 //ææºç«¯å¯¼èª 458 var windoww = $(window).width(); 459 $('.sp_nav').click(function () { 460 if (!$(this).hasClass('sp_nav_se')) { 461 $(this).addClass('sp_nav_se'); 462 $(".m-header-nav").addClass("in") 463 $('.sjj_nav').slideDown(400); 464 } else { 465 $(this).removeClass('sp_nav_se'); 466 $('.sjj_nav').slideUp(400); 467 $(".m-header-nav").removeClass("in") 468 } 469 }); 470 $(".m-header-nav .sjj_nav ul li ul li a").click(function () { 471 $('.sjj_nav').slideUp(400); 472 $('.sp_nav').removeClass('sp_nav_se'); 473 }); 474 475 $('.sp_nav_xjb').click(function () { 476 $(this).parent().children('ul').slideToggle().parent().siblings().children('ul').slideUp(); 477 $(this).toggleClass('sjj_nav_i_se'); 478 $(this).parent().siblings().find('i').removeClass('sjj_nav_i_se'); 479 }); 480 $('.click_mo').click(function () { 481 $(this).parent().children('ul').slideToggle().parent().siblings().children('ul').slideUp(); 482 $(this).toggleClass('sjj_nav_i_se'); 483 $(this).parent().siblings().find('i').removeClass('sjj_nav_i_se'); 484 }); 485 $('.sp_nav_xjb').html('<svg t="1632712733358" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1350" ><path d="M511.5 789.9 80.6 359c-22.8-22.8-22.8-59.8 0-82.6 22.8-22.8 59.8-22.8 82.6 0l348.3 348.3 348.3-348.3c22.8-22.8 59.8-22.8 82.6 0 22.8 22.8 22.8 59.8 0 82.6L511.5 789.9 511.5 789.9zM511.5 789.9" p-id="1351"></path></svg>'); 486 $(window).on('scroll', function () { 487 var t = $(window).scrollTop(); 488 if (t > 10) { 489 $(".m-header-nav").addClass("on") 490 $(".Header").addClass("in") 491 } else { 492 $(".m-header-nav,.Header").removeClass("on") 493 $(".Header").removeClass("in") 494 } 495 }) 496 var t = $(window).scrollTop(); 497 if (t > 10) { 498 $(".m-header-nav").addClass("on") 499 $(".Header").addClass("in") 500 } else { 501 $(".m-header-nav,.Header").removeClass("on") 502 $(".Header").removeClass("in") 503 } 504 $(".m-header-nav .sp_btn .sp_btn_list .language").click(function(){ 505 $(".btn_list_down").slideToggle(); 506 }) 507 if (windoww < 767) { 508 //产åå¾çç¹å»æ¾å¤§ææ 509 // éåææç img æ ç¾ 510 $('.PSystem2 img,.Honor .Honor_content .Honor_content_list .content_list_li .list_li_img img').each(function() { 511 // è·åå½å img æ ç¾ç src 屿§å¼ 512 var imgUrl = $(this).attr('src'); 513 514 // å建 <a> æ ç¾ï¼å¹¶è®¾ç½®å ¶å±æ§ 515 var $a = $('<a data-fancybox="images"></a>').attr('href', imgUrl); 516 517 // å°å½å img æ ç¾å 裹å¨å建ç <a> æ ç¾å 518 $(this).wrap($a); 519 }); 520 } 521 522 523 524 525 526});
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.