1//tabÇл» 2function tabShow(oNav, oCon, sEvent) { 3 var oElem = oNav.children(); 4 oCon.hide().eq(0).show(); 5 oElem.each(function (index) { 6 $(this).bind(sEvent, function () { 7 $(this).addClass('active').siblings().removeClass('active'); 8 oCon.hide().eq(index).show(); 9 }) 10 }) 11} 12 13$(function () { 14 15 findIsLogin();//µÇ¼°´Å¥ÊÇ·ñÏÔʾ 16 loadDocPersonInfo(0);//²ÂÄãϲ»¶ 17 getChnlList();//Äã¹Ø×¢µÄ 18 getHotDoc(0);//ÈȵãÍÆ¼ö 19 getlllsDoc(0);//ä¯ÀÀÀúÊ· 20 getService();//·þÎñ 21 22 tabShow($('.intit1-1a h6'), $('.i1-qhc1'), 'mouseover'); 23 tabShow($('.cnxh-title2a h6'), $('.cnxh-bc1'), 'mouseover'); 24 tabShow($('.cnxh-title2b h6'), $('.cnb4-cs1'), 'mouseover'); 25 //tabShow($('.two-time>div'), $('.gzmove-lis1'), 'mouseover'); 26 tabShow($('.wjss1 ul'), $('.wjin-text'), 'click'); 27 // ·þÎñÇл» 28 $(".mode-list .mode-item").hover(function () { 29 $(this).addClass("active").siblings().removeClass("active"); 30 }); 31 //ËÑË÷ÏÂÀ 32 $('.wjss1-1').click(function () { 33 if ($('.wjss1 ul').css('display') == 'none') { 34 $('.wjss1 ul').slideDown(); 35 } else { 36 $('.wjss1 ul').hide(); 37 } 38 }) 39 $('.wjss1 ul li').click(function () { 40 $('.wjss1-1').text($(this).text()); 41 $('.wjss1 ul').hide(); 42 }) 43 // ½¹µãÂÖ²¥Í¼ 44 jQuery(".ibox1-1").slide({ mainCell: ".bd ul", effect: "fold", autoPlay: true, interTime: '5000' }); 45 jQuery(".shouyl").slide({ mainCell: ".bd ul", effect: "fold", autoPlay: true, interTime: '5000' }); 46 47 // רÌâÂÖ²¥ 48 jQuery(".ibox3-l-1").slide({ mainCell: ".bd ul", effect: "left", autoPlay: true, interTime: '5000' }); 49 // ¹«¿ª 50 jQuery(".sec3-3-1").slide({ mainCell: ".bd ul", effect: "left", autoPlay: true, interTime: '5000' }); 51 jQuery(".fwbk2").slide({ mainCell: ".bd ul", effect: "left", vis: 7, pnLoop: false }); 52 jQuery(".gzmoves-tab").slide({ mainCell: ".bd ul", effect: "left", vis: 5, pnLoop: false }); 53 //jQuery(".cnxh-inbox3").slide({mainCell:".bd ul",effect:"left",vis:9,pnLoop:false,autoPlay:false}); 54 jQuery(".cnxh-inbox6").slide({ mainCell: ".bd ul", effect: "left", autoPlay: true, interTime: '5000' }); 55 56 // Á´½Ó 57 $('.links-ul li').each(function () { 58 $(this).hover(function () { 59 $(this).find('.links-down').fadeIn(); 60 }, function () { 61 $(this).find('.links-down').fadeOut(); 62 }) 63 }) 64 $(".links-d-1").mCustomScrollbar({ 65 theme: "minimal" 66 }); 67 68 //²ÂÄãϲ»¶ 69 $('.cnlove img').click(function () { 70 $('.cnxh-main').css({ 'height': '670px', 'top': '0px', 'z-index': '99' }); 71 }) 72 $('.cnxh-home img').click(function () { 73 $('.cnxh-main').css({ 'height': '0', 'top': '0', 'z-index': '-1' }); 74 }) 75 76 //$('.fw-times').slick({dots: true,infinite: false,speed: 300,slidesToShow: 7,touchMove: false,slidesToScroll: 1}); 77 78 $('.slick-slide').hover(function(){ 79 $(this).addClass('active').siblings().removeClass('active'); 80 }) 81 82}) 83 84//²ÂÄãϲ»¶ 85function loadDocPersonInfo(start){ 86 var rums_localStorage_new = localStorage.getItem("rums_localStorage_new"); 87 $.ajax({ 88 type: "POST", 89 url: "/creatorCMS/personSite/getPersonLikeList.page", 90 //likeChnlÌîдÎÞÊý¾ÝʱĬÈÏÏÔʾµÄƵµÀID£¬Ó¢ÎĶººÅ¸ô¿ª 91 data:{"data":rums_localStorage_new,"start":start,"count":"5","siteId":"","likeChnl":"66,901,62,9"}, 92 dataType: "json", 93 success: function(data) { 94 $("#sylist").html(""); 95 var str = ""; 96 if((data.length == 0)&&start!=0){ 97 moreCount = 1; 98 loadDocPersonInfo(0); 99 return; 100 } 101 for(var i=0;i<data.length;i++){ 102 if(data[i]){ 103 str += "<li><a href=\""+data[i].url+"\" title=\""+data[i].title+"\" target=\"_blank\">"+data[i].title+"</a><span>["+dateFormatter(data[i].time).substr(5)+"]</span>"; 104 } 105 } 106 if(data.length<5||moreCount>=10){ 107 moreCount = 0; 108 } 109 $("#sylist").html(str); 110 } 111 }); 112 } 113 114 115 //»»Ò»Åú 116 var moreCount = 1; 117 function loadMoreDocVoteData(){ 118 var start = moreCount*6; 119 loadDocPersonInfo(start); 120 moreCount++; 121 } 122 123 124 //Äã¹Ø×¢µÄ 125 function getChnlList(){ 126 // ·ÖÒѹØ×¢ºÍδ¹Ø×¢Êý¾ÝÁ½ÖÖÇé¿ö 127 var rums_subscribeChnl_new = localStorage.getItem("rums_subscribeChnl_new"); 128 if(rums_subscribeChnl_new && rums_subscribeChnl_new != "" && rums_subscribeChnl_new.indexOf("[") != -1 ){ 129 rums_subscribeChnl_new = rums_subscribeChnl_new.replace("[",""); 130 } 131 if(rums_subscribeChnl_new && rums_subscribeChnl_new != "" && rums_subscribeChnl_new.indexOf("]") != -1 ){ 132 rums_subscribeChnl_new = rums_subscribeChnl_new.replace("]",""); 133 } 134 $.post("/creatorCMS/personSite/getGzChnlList.page?rums_subscribeChnl_new="+rums_subscribeChnl_new,{"titlecount":12,"count":4},function(data){ 135 if(data){ 136 data = $.parseJSON(data); 137 if(data.state){ 138 $("#guanzhu").css("display",""); 139 $("#unguanzhu").css("display","none"); 140 var gz_title = ""; 141 var gz_content = ""; 142 data = data.message; 143 data = $.parseJSON(data); 144 for(var i=0;i<data.length;i++){ 145 if(i==0){ 146 gz_title += "<div class=\"active\"><a href=\"javascript:void(0);\"><span>"+data[i].chnlName+"</span></a></div>"; 147 }else{ 148 gz_title += "<div><a href=\"javascript:void(0);\"><span>"+data[i].chnlName+"</span></a></div>"; 149 } 150 gz_content+= "<div class=\"slider three-time\" id=\"gz"+(i+1)+"\">"; 151 var t = data[i].data; 152 var v = t.length/4;//Ò³Êý
153 v = Math.ceil(v); 154 for(var k=0;k<v;k++){ 155 gz_content+= "<div>"; 156 gz_content+= "<ul class=\"gzmove-list1-ul\">"; 157 for(var j=k*3;j<3*(k+1);j++){ 158 if(t[j]){ 159 gz_content+= "<li><div class=\"time\">"; 160 gz_content+= "<span>"+t[j].titlecolor+"</span><em>"+t[j].author+"</em></div>"; 161 gz_content+= "<div class=\"text\">"; 162 gz_content+= "<span>"+t[j].subtitle+"</span>"; 163 gz_content+= "<a target=\"_blank\" href=\""+t[j].puburl+"\">"+t[j].rsscontent+"</a>"; 164 gz_content+= "</div>"; 165 gz_content+= "</li>"; 166 }else{ 167 gz_content+= "<li>"; 168 gz_content+= "</li>"; 169 } 170 } 171 gz_content+= "</ul>"; 172 gz_content+= "</div>"; 173 } 174 gz_content+= "</div>"; 175 } 176 $("#gz_title").append(gz_title); 177 $("#gz_content").append(gz_content); 178 $('.two-time').slick({dots: true,infinite: false,speed: 300,slidesToShow: 5,touchMove: false,slidesToScroll: 1,autoplay:false}); 179 tabShow($('#gz_title .slick-track'), $('#gz_content .slider'), 'mouseover'); 180 }else{ 181 $("#guanzhu").css("display","none"); 182 $("#unguanzhu").css("display",""); 183 $.post("/creatorCMS/personSite/getQrqwPersonChnlList.page?rums_subscribeChnl_new="+rums_subscribeChnl_new,{"count":"4"},function(data){ 184 data = $.parseJSON(data); 185 $("#djdzgz").html(""); 186 var str = ""; 187 for(var i=0;i<data.length;i++){ 188 str += "<li>"; 189 str += "<a>"; 190 if(data[i].url){ 191 str += "<img src=\""+data[i].url+"\">"; 192 }else{ 193 str += "<img src=\"http://www.yueyang.gov.cn/yys/images/mhfs200_22.png\">"; 194 } 195 str += "<i>"+data[i].name+"</i>"; 196 if(data[i].stype == 0){ 197 str += "<span title=\""+data[i].name+"\" onclick=\"setPersonSubscribeChnl("+data[i].channelId+")\">+ ¹Ø×¢</span>"; 198 }else{ 199 str += "<span style=\"background: #f4f5f5;color: #666;\" title=\""+data[i].name+"\" onclick=\"setPersonSubscribeChnl("+data[i].channelId+",1)\"> È¡Ïû¹Ø×¢</span>"; 200 } 201 str += "</a>"; 202 str += "</li>"; 203 } 204 $("#djdzgz").append(str); 205 }); 206 } 207 } 208 }); 209 } 210 211 //¶©ÔÄ 212 function setPersonSubscribeChnl(id,state){ 213 $.post("/creatorCMS/personSite/findIsLogin.page",function(data){ 214 if(data){ 215 data = $.parseJSON(data); 216 if(data.state){ 217 $.post("/creatorCMS/personSite/setPersonSubscribeChnlWeb.page",{"id":id,"state":state},function(data){ 218 data = $.parseJSON(data); 219 if(data.state){ 220 //location.reload(); 221 getChnlList();//ÖØÐ¼ÓÔØÒ»´Î 222 }else{ 223 alert(data.message); 224 } 225 }); 226 }else{ 227 unLoginSerSubChnl(id,state); 228 } 229 } 230 }); 231 } 232 233 234 235 236 237 function unLoginSerSubChnl(id,state){ 238 var rums_subscribeChnl_new = localStorage.getItem("rums_subscribeChnl_new"); 239 $.ajax({
240 type: "POST", 241 url: "/creatorCMS/personSite/setPersonSubscribeChnlWeb.page", 242 data:{"id":id,"state":state,"rums_subscribeChnl_new":rums_subscribeChnl_new}, 243 dataType: "json", 244 success: function(data) { 245 if(data.state){ 246 localStorage.setItem("rums_subscribeChnl_new",data.message); 247 //location.reload(); 248 getChnlList();//ÖØÐ¼ÓÔØÒ»´Î 249 } 250 } 251 }); 252 } 253 254 var ci = 0; 255 function getHotDoc(start){ 256 $.post("/creatorCMS/personSite/findHotDoc.page",{"start":start,"count":7,"siteId":"1"},function(data){ 257 if(data){ 258 data = $.parseJSON(data); 259 if((data.length == 0)&&(start!=0)){ 260 docCount = 1; 261 ci = 0; 262 getHotDoc(0); 263 return; 264 } 265 $("#hot_doc").html(""); 266 var str = ""; 267 for(var i=0;i<data.length;i++){ 268 str += "<li>"; 269 str += "<a target=\"_blank\" href=\""+data[i].url+"\"><i class=\"i"+(ci+1)+"\">"+(ci+1)+"</i>"+data[i].subtitle+"</a>"; 270 str += "<span>"+data[i].count+"</span>"; 271 str += "</li>"; 272 ci++; 273 } 274 if(data.length<7||docCount>=10){ 275 docCount = 0; 276 ci = 0; 277 } 278 $("#hot_doc").html(str); 279 } 280 }); 281 } 282 283 284 function getlllsDoc(start){ 285 var rums_localStorage_new = localStorage.getItem("rums_localStorage_new"); 286 $.ajax({
287 type: "POST", 288 url: "/creatorCMS/personSite/getlllsInfoList.page", 289 data:{"data":rums_localStorage_new,"start":start,"count":"5"}, 290 dataType: "json", 291 success: function(data) { 292 if(data){ 293 var str = ""; 294 if(data.state){ 295 data = data.message; 296 data = $.parseJSON(data); 297 lllsCount = data.start; 298 data = data.list; 299 if(data.length>0){ 300 for(var i=0;i<data.length;i++){ 301 if(data[i]){ 302 str += "<li><a style=\"width:60%\" target=\"_blank\" href=\""+data[i].puburl+"\">"+data[i].subtitle+"</a><span>"+data[i].author.substring(5)+"</span></li>"; 303 } 304 } 305 } 306 }else{ 307 //µÚÒ»´Î½øÀ´£¬Ä¬ÈÏÏÔʾµ±Ç°Ò³ 308 var url = window.location.href; 309 var title = document.title; 310 var myDate = new Date; 311 var mon = myDate.getMonth() + 1; //»ñÈ¡µ±Ç°Ô 312 mon = mon<10?"0"+mon:mon; 313 var date = myDate.getDate(); //»ñÈ¡µ±Ç°ÈÕ 314 date = date<10?"0"+date:date; 315 var h = myDate.getHours();//»ñÈ¡µ±Ç°Ð¡Ê±Êý(0-23) 316 var m = myDate.getMinutes();//»ñÈ¡µ±Ç°·ÖÖÓÊý(0-59) 317 var s = myDate.getSeconds();//»ñÈ¡µ±Ç°Ãë 318 var time = mon+"-"+date+" "+h+":"+m+":"+s; 319 str = "<li><a style=\"width:60%\" target=\"_blank\" href=\""+url+"\">" 320 +title+"</a><span>"+time+"</span></li>"; 321 } 322 $("#llls_doc").html(str); 323 } 324 } 325 }); 326 } 327 328 329 330 331 332 333 //»»Ò»Åú 334 var lllsCount = 1; 335 function loadlllsDocData(){ 336 var start = lllsCount; 337 getlllsDoc(start); 338 lllsCount++; 339 } 340 341 342 //»»Ò»Åú 343 var docCount = 1; 344 function loadHotDocData(){ 345 var start = docCount*7; 346 getHotDoc(start); 347 docCount++; 348 } 349 350 function getService(){ 351 //ÎҵķþÎñ 352 //$.post("/creatorCMS/personSite/getPersonSiteServiceListWeb.page",{"count":12,"siteId":"1"},function(data){ 353 //data = $.parseJSON(data); 354// var str = ""; 355// for(var i=0;i<data.length;i++){ 356// if(data[i]){ 357// if(data[i].img!=""){ 358// img = data[i].img; 359// }else{ 360// img = "images/mhfs58_03.png"; 361// } 362// str += "<div ><a target=\"_blank\" href=\""+data[i].url+"\"><img style=\"width: 54px;height: 54px;\" src=\""+img+"\"><span>"+data[i].title+"</span></a></div>"; 363// } 364// } 365// $("#myserviceLi").html(str); 366 // $('.one-time').slick({dots: true,infinite: false,speed: 300,slidesToShow: 8,touchMove: false,slidesToScroll: 1}); 367 368 //}); 369 } 370 371 372 function findIsLogin(){ 373 $.post("/creatorCMS/personSite/findIsLogin.page",function(data){ 374 if(data){ 375 data = $.parseJSON(data); 376 if(data.state){ 377 var message = $.parseJSON(data.message); 378 var str = ""; 379 str += "<span style=\"margin-left: 17px;\">"+message.userRealname+"£¬ÄúºÃ£¡</span>"; 380 str += "<a href=\"/webapp/czs/qrqw/logout.jsp\" style=\"float: right;margin-right: 10px;color: #6666ff;\">[Í˳ö]</a>"; 381 $("#loginBtn").html(str); 382 } 383 } 384 }); 385 }
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.