1$(function () { 2 $(".search_screen h3").text("ææ¨æ³æ¾ç") 3 $(".wp-search .search-input input.search-title").attr("autocomplete", "off") 4 $(".wp-search .search-btn input.search-submit").attr("value", "æç´¢") 5 6$(".col_list ul li.col_column").mouseenter(function(){ 7$(this).addClass("hover").siblings().removeClass("hover") 8}) 9 10$(".nav li.menu-item>.sub-menu").before("<div class='subcol-container'></div>") 11 12 // ä¾§è¾¹æ 13 $(".menu-btn").click(function () { 14 $(this).toggleClass("arrow") 15 $(".main-asidecontainer").toggleClass("show") 16 }) 17 18 $(".first-col .first-colname").click(function () { 19 if ($(this).parent().hasClass("close")) { 20 $(".menu-btn").removeClass("arrow") 21 $(".main-asidecontainer").toggleClass("show") 22 return 23 } 24 var sublist = $(this).siblings("ul").html() 25 $(this).addClass("current").parent().siblings().find(".first-colname").removeClass("current") 26 $(".sec-col ul").html(sublist) 27 }) 28 $(".first-col .first-li:nth-child(1)>.first-colname").click() 29 30 31 32/* 33 $("body.list .opensearch").mouseenter(function () { 34 $(".search_screen").addClass("active") 35 $("body").addClass("showsearch") 36 }) 37*/ 38 39 $(".header .close").click(function () { 40 $(".search_screen").removeClass("active") 41 $("body").removeClass("showsearch") 42 }) 43 44 $("#footer .foot-left p:nth-child(3) span").append("<div class='more_tel'>æçå¨è¯¢çµè¯ï¼021-68130020ã68130021ã58137890ã68190788ã68191160ã58137880</div>") 45 46 // $(".nav .wp-menu .menu-item").hover(function(){ 47 // $(this).children("ul").stop().slideDown() 48 // },function(){ 49 // $(this).children("ul").stop().slideUp() 50 // }) 51 $(".returnTop").click(function () { 52 $("html, body").animate( 53 { 54 scrollTop: 0, 55 }, 56 "slow" 57 ); 58 }); 59 $(".search-submit").click(function (event) { 60 $(this).removeAttr("name"); 61 event.preventDefault(); 62 var val = $.trim($(this).parents("form").find(".search-title").val()); 63 if (val !== "") { 64 $(this).parents("form").submit(); 65 } else { 66 alert("请è¾å ¥å ³é®è¯"); 67 } 68 return false; 69 }); 70 71 if (window.innerWidth < 1000) { 72 $("#footer .foot-center .links").click(function () { 73 $(this).find(".news_list").slideToggle(); 74 $(this).toggleClass("arrow"); 75 }); 76 } 77 var imgItem = $(".main6 .bg img"); 78 imgItem.attr("src", $(".post-61 .news_list .links").eq(0).attr("img-src")); 79 $(".post-61 .news_list .links").click(function (e) { 80if(!$(this).hasClass("clicked")){ 81 $(this).addClass("clicked") 82 $(this).siblings().removeClass("clicked") 83} else{ 84var url=$(this).find("a").attr("href") 85window.open(url,"_blank") 86} 87 var depart=$.trim($(this).text()) 88 var url=$(this).find("a").attr("href") 89 $(this).addClass("active").siblings().removeClass("active"); 90 imgItem.attr("src", $(this).attr("img-src")); 91 $(".nav .i3 .sub-menu .i3-1 .sub-menu a.sub-link").each(function(){ 92 if($.trim($(this).text())==depart){ 93 var major=$(this).siblings().html(); 94 $(".post-61 .majorlist").html(major); 95 $(".post-61 .major>a").attr("href",url) 96 } 97 }) 98 }); 99 $(".post-61 .news_list .links").eq(1).click() 100 101 102 103 var colurl = "/_wp3services/generalQuery?_p=YXM9MSZwPTEmbT1OJg__&act=1&queryObj=columns"; 104 var articleUrl = "/_wp3services/generalQuery?queryObj=articles"; 105 var siteId = 9 106 //var htm1_2 = $(".post-41 .list2").html().replaceAll('style="display: none;"', '') 107 //var htm1_3 = $(".post-42 ul").html() 108 109 $(".nav li.menu-item").each(function () { 110 var colid = $(this).attr("colid") 111 var index = $(this).index() 112 var _this = $(this) 113 if (index == 0) { 114 var htm1_1=_this.children(".sub-menu").html(); 115 var subcol_href = $(this).find(".sub-menu li:nth-child(6) a").attr("href") 116 var subcol_text = $(this).find(".sub-menu li:nth-child(6) a").text() 117 var subhtml = `<li><a href="${subcol_href}"><div class="news_title">${subcol_text}</div></a></li>`; 118 119 $(this).find(".subcol-container").append(` 120 <div class="left"><div class="t"><ul></ul></div><div class="b"><ul></ul></div></div> 121 <div class="right"><ul></ul></div>`) 122 //$(this).find(".subcol-container .left .t ul").append(subhtml) 123 //$(this).find(".subcol-container .right ul").append(htm1_2) 124 //$(this).find(".subcol-container .left .b ul").append(htm1_3) 125 126 $(this).find(".subcol-container .left .t ul li").eq(4).append("ï¼
126") 127 $(this).find(".sub-menu>li:nth-child(5)>ul li").each(function () { 128 _this.find(".subcol-container .left .t ul li").eq(4).append($(this).html()) 129 }); 130 $(this).find(".subcol-container .left .t ul li").eq(4).append("ï¼") 131 $(this).find(".subcol-container .left .b ul li .title").each(function () { 132 $(this).text($(this).text().slice(0, 1)) 133 }) 134 loadContents(1, 10138, siteId, 10) 135 //var handle = "li.menu-item.i" + (index + 1) + " .subcol-container .left .t li"; 136 //var content = "li.menu-item.i" + (index + 1) + " .subcol-container .right li"; 137 // $(".nav").sudyTab({ 138 // handle: handle, 139 // content: content, 140 // trigger: "mouseenter", 141 // start: 1, 142 // autoPlay: { 143 // active: false, 144 // }, 145 // }); 146 } 147 if (index == 1) { 148 $(this).find(".subcol-container").append(`<div class="top"> 149 <div class="l"></div> 150 <div class="r"></div> 151 </div> 152 <div class="bot"> 153 <div class="l"></div> 154 <div class="r"><a class="sub-link" href="/_s9/zsxcc/list.psp" target="_self">å®£ä¼ å</a><div class="swiper"><div class="swiper-wrapper"></div></div></div> 155 </div>`) 156 var subcol1 = $(this).children(".sub-menu").children("li").eq(0).html(); 157 var subcol2 = $(this).children(".sub-menu").children("li").eq(1).html(); 158 var subcol3 = $(this).children(".sub-menu").children("li").eq(2).html(); 159 $(this).find(".subcol-container .top .l").append(subcol1) 160 $(this).find(".subcol-container .top .r").append(subcol2) 161 $(this).find(".subcol-container .bot .l").append(subcol3) 162 loadContents(1, 13552, siteId, 3) 163 //$(this).find(".subcol-container .bot .r").append(`<img src="/_upload/tpl/03/a9/937/template937/images/nav-2-img1.jpg"><img src="/_upload/tpl/03/a9/937/template937/images/nav-2-img2.jpg">`) 164 } 165 if (index == 2) { 166 var depart1 = $(this).children(".sub-menu").children("li:nth-child(1)").html(); 167 var depart2 = $(this).children(".sub-menu").children("li:nth-child(2)").html(); 168 $(this).find(".subcol-container").append(`<div class="top"> 169 <div class="l">${depart1}</div> 170 <div class="r">${depart2}</div> 171 </div> 172 <div class="bot none"> 173 <div class="toMajor"><div>ä¸ä¸</div><a href="" target="_blank">è¿å ¥å¦é¢ç½ç«</a></div> 174 <ul></ul> 175 </div>`) 176 $(this).find(".subcol-container .top .l ul .sub-link").click(function (e) { 177if(!$(this).hasClass("clicked")){ 178 $(this).addClass("clicked") 179 $(this).parents().siblings().children(".sub-link").removeClass("clicked") 180 e.preventDefault(); 181} 182 $(".nav li.menu-item.i3 .subcol-container .bot").show() 183 if ($(this).siblings("ul").length > 0) { 184 $(this).addClass("selected").parent().siblings().children(".sub-link").removeClass("selected") 185 var sub_major = $(this).siblings("ul").children().clone() 186 var major_href = $(this).attr("href") 187 $(".nav li.menu-item.i3 .subcol-container .bot ul").html(sub_major) 188 $(".nav li.menu-item.i3 .subcol-container .bot .toMajor a").attr("href", major_href) 189 } 190 191 }) 192 193 } 194 if (index == 3) { 195 var subcol1 = $(this).children(".sub-menu").children("li").eq(0).html(); 196 var subcol2 = ""; 197 $(this).children(".sub-menu").children("li").eq(0).siblings().each(function () { 198 subcol2 += $(this).html() 199 }) 200 $(this).find(".subcol-container").append(` 201 <div class="l">${subcol1}</div> 202 <div class="r"> 203 ${subcol2} 204 </div>`) 205 } 206 if (index == 4) { 207 var subcol = $(this).children(".sub-menu").html() 208 $(this).find(".subcol-container").append(` 209 <div class="left"><ul>${subcol}</ul></div> 210 <div class="right"> 211 <div class="title">æ°é»çç¹</div> 212 <div class="news_container"> 213 <div class="swiper"><div class="swiper-wrapper"></div></div>
214 <div class="swiper-controls"> 215 <a href="https://www.gench.edu.cn/jqyw/list.htm" target="_blank">æ¥çæ´å¤æ°é»</a> 216 <div class="swiper-pagination"></div> 217 </div> 218 </div> 219 </div>`) 220 loadContents(1, 10146, siteId, 3) 221 } 222 223 //columnTree(colid); 224 }) 225 226 227 columnTree(10324) 228 229 230 function loadContents(pageIndex, columnId, siteId, rows) { 231 //æåºåæ° 232 var orderData = [ 233 ]; 234 var returnInfos = JSON.stringify(returnData()); 235 var orders = JSON.stringify(orderData); 236 var conditions = JSON.stringify(conditData()); 237 238 $.ajax({ 239 url: articleUrl, 240 type: 'POST', 241 contentType: "application/x-www-form-urlencoded; charset=utf-8", 242 async: true, 243 dataType: 'json', 244 data: { 245 siteId: siteId, 246 columnId: columnId, 247 pageIndex: pageIndex, 248 rows: rows, 249 orders: orders, 250 returnInfos: returnInfos, 251 conditions: conditions 252 }, 253 success: function (result) { 254 var total = result.total; 255 if (total != 0) { 256 if (columnId == 10138) { 257 for (j = 0; j < result.data.length; j++) { 258 var art = result.data[j]; 259 var html1 = `<li class="news"> 260 <div class="news_imgs"> 261 <a href="${art.url}"><img src="${art.imgPath}" loading="lazy"> 262 <div class="news_text"> 263 <p class="line3">${art.summary}</p> 264 </div> 265 </a> 266 </div> 267 </li>`; 268 var html2=`<li class="news"><a href="${art.phColUrl}"><div class="news_title">${art.phColName}</div></a></li>` 269 $(".nav li.menu-item.i1 .subcol-container .left .t ul").append(html2) 270 $(".nav li.menu-item.i1 .subcol-container .right ul").append(html1); 271 } 272 var handle = "li.menu-item.i1 .subcol-container .left .t li"; 273 var content = "li.menu-item.i1 .subcol-container .right li"; 274 $(".nav").sudyTab({ 275 handle: handle, 276 content: content, 277 trigger: "mouseenter", 278 start: 1, 279 autoPlay: { 280 active: false, 281 }, 282 }); 283 } 284 if (columnId == 10146) { 285 for (j = 0; j < result.data.length; j++) { 286 var art = result.data[j]; 287 var html=`<div class="news swiper-slide"> 288 <div class="news_imgs"><a href="${art.url}" target="_blank" title="${art.title}"><img src="${art.imgPath}" width height></a></div> 289 <div class="news_title line2"><a href="${art.url}" target="_blank" title="${art.title}">${art.title}</a></div></div>` 290 291 $(".nav .i5 .subcol-container .right .swiper-wrapper").append(html) 292 } 293 new Swiper(".nav .i5 .news_container .swiper", { 294 autoplay: { 295 disableOnInteraction: false, 296 delay: 5000, 297 }, 298 pagination: { 299 el: ".nav .i5 .news_container .swiper-pagination", 300 clickable: true, 301 }, 302 }); 303 } 304 if (columnId == 13552) { 305 for (j = 0; j < result.data.length; j++) { 306 var art = result.data[j]; 307 var imgsrc=art.imgPath 308 var htm=`<div class="swiper-slide"><a href="${art.url}" target="_blank"><img src="${imgsrc}" alt=""></a></div>` 309 $(".nav li.menu-item.i2 .subcol-container .bot .r .swiper-wrapper").append(htm) 310 } 311 new Swiper(".nav li.menu-item.i2 .subcol-container .swiper", { 312 loop: true, 313 spaceBetween:40, 314 slidesPerView:2, 315 autoplay:true 316 }) 317 318 } 319 320 } 321 322 } 323 }); 324 } 325 326 327 328 function columnTree(columnId) { 329 330 var returnInfos = JSON.stringify(returnData()); 331 var conditions = JSON.stringify(conditData()); 332 $.ajax({
333 url: colurl, 334 type: 'POST', 335 contentType: "application/x-www-form-urlencoded; charset=utf-8", 336 async: true, 337 dataType: 'json', 338 data: { 339 siteId: siteId, 340 columnId: columnId, 341 returnInfos: returnInfos, 342 conditions: conditions, 343 scope: 4 //å½åä¸çå 344 }, 345 success: function (result) { 346 if (columnId == 10324) { 347 for (i = 0; i < result.data.length; i++) { 348 var col = result.data[i]; 349 var html = `<li class="links i${i + 1}"> 350 <a href="${col.url}" target="_self"> 351 <div class="icon"></div> 352 <div class="title">${col.name.slice(0, 1)}</div> 353 </a> 354 </li>`; 355 $(".nav li.menu-item.i1 .subcol-container .left .b ul").append(html) 356 } 357 } 358 } 359 }); 360 } 361 362 /*æ¥è¯¢æ¡ä»¶*/ 363 function conditData() { 364 var conditdata = [ 365 { field: "scope", value: 1, judge: "=" } 366 ]; 367 return conditdata; 368 } 369 //请æ±è¿ååæ° 370 function returnData() { 371 var returnInfosdata = [ 372 { field: "title", name: "title" }, { field: "summary", name: "summary" }, { field: "imgPath", name: "imgPath" }, 373 { field: "publishTime", pattern: [{ name: "d", value: "yyyy-MM-dd" }], name: "publishTime"},{field: "phColName", name: "phColName" }, 374 { field: "phColUrl", name: "phColUrl" }, 375 ]; 376 return returnInfosdata; 377 } 378 379 380 381}); 382 383fontSize(); 384$(window).resize(function () { 385 fontSize(); 386}); 387function fontSize() { 388 var size; 389 var winW = window.innerWidth; 390 $("body").removeClass("mobile"); 391 if (winW > 1024) { 392 size = Math.round(winW / 19.2); 393 } else if (winW <= 1024) { 394 $("body").addClass("mobile"); 395 size = 65; 396 } 397 398 $("html").css({ 399 "font-size": size + "px", 400 }); 401} 402 403//è·åx天åçæ¥æ 404function getDaysAgo(days) { 405 const date = new Date(); 406 date.setDate(date.getDate() - days); 407 var month = new Date(date).getMonth() < 9 ? '0' + (new Date(date).getMonth() * 1 + 1) : new Date(date).getMonth() * 1 + 1; 408 var day = new Date(date).getDate() < 10 ? '0' + new Date(date).getDate() : new Date(date).getDate() 409 return new Date(date).getFullYear() + "-" + month + "-" + day; 410}
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.