1// $(function() { 2var pcjs = function() { 3 function switchAd(element) { 4 for(var i = 0; i < element.length; i++) { 5 if(element.eq(i).css('display') == 'block') { 6 element.css('display', 'none'); 7 if(i == element.length - 1) { 8 element.eq(0).css('display', 'block'); 9 } else { 10 element.eq(i + 1).css('display', 'block'); 11 } 12 i = element.length; 13 } 14 } 15 } 16 var timer1 = setInterval(function() { 17 switchAd($('.switchad1 a')); 18 }, 2000); 19 var timer2 = setInterval(function() { 20 switchAd($('.switchad2 a')); 21 }, 2000); 22 var timer3 = setInterval(function() { 23 switchAd($('.switchad3 a')); 24 }, 2000); 25 var timer4 = setInterval(function() { 26 switchAd($('.switchad4 a')); 27 }, 2000); 28 $('.switchad1').on('mouseover', 'a', function() { 29 var _this = $(this); 30 clearInterval(timer1); 31 }); 32 $('.switchad1').on('mouseout', 'a', function() { 33 var _this = $(this); 34 timer1 = setInterval(function() { 35 switchAd($('.switchad1 a')); 36 }, 2000); 37 }); 38 $('.switchad2').on('mouseover', 'a', function() { 39 var _this = $(this); 40 clearInterval(timer2); 41 }); 42 $('.switchad2').on('mouseout', 'a', function() { 43 var _this = $(this); 44 timer2 = setInterval(function() { 45 switchAd($('.switchad2 a')); 46 }, 2000); 47 }); 48 $('.switchad3').on('mouseover', 'a', function() { 49 var _this = $(this); 50 clearInterval(timer3); 51 }); 52 $('.switchad3').on('mouseout', 'a', function() { 53 var _this = $(this); 54 55 timer3 = setInterval(function() { 56 switchAd($('.switchad3 a')); 57 }, 2000); 58 }); 59 $('.switchad4').on('mouseover', 'a', function() { 60 var _this = $(this); 61 clearInterval(timer4); 62 }); 63 $('.switchad4').on('mouseout', 'a', function() { 64 var _this = $(this); 65 timer4 = setInterval(function() { 66 switchAd($('.switchad4 a')); 67 }, 2000); 68 }); 69 $('.switch1').click(function(event) { 70 $(this).addClass('select'); 71 $(this).siblings().removeClass('select'); 72 $('.switch-con2').hide(); 73 $('.switch-con1').show(); 74 }); 75 $('.switch2').click(function(event) { 76 $(this).addClass('select'); 77 $(this).siblings().removeClass('select'); 78 $('.switch-con1').hide(); 79 $('.switch-con2').show(); 80 }); 81 $('.switch1').hover(function(event) { 82 $(this).addClass('select'); 83 $(this).siblings().removeClass('select'); 84 $('.switch-con2').hide(); 85 $('.switch-con1').show(); 86 }); 87 $('.switch2').hover(function(event) { 88 $(this).addClass('select'); 89 $(this).siblings().removeClass('select'); 90 $('.switch-con1').hide(); 91 $('.switch-con2').show(); 92 }); 93 textFill($('#schoolname'), '请è¾å ¥å¤§å¦åç§°'); 94 textFill($('#zyname'), '请è¾å ¥ä¸ä¸åç§°'); 95 function textFill(input, text) { 96 input.val(text); 97 var originalvalue = text; 98 input.focus(function() { 99 if($.trim(input.val()) == originalvalue) { 100 input.val(''); 101 } 102 }); 103 input.blur(function() { 104 if($.trim(input.val()) == '') { 105 input.val(originalvalue); 106 } 107 }); 108 } 109} 110var mobilejs = function(){ 111 // var head = document.getElementsByTagName('head')[0]; 112 // var link = document.createElement('link'); 113 // link.rel = 'stylesheet'; 114 // link.type = 'text/css'; 115 // link.href = '//www.eol.cn/e_css/list/2018/mlist.css'; 116 // link.id = 'mlistcss'; 117 // head.appendChild(link); 118 // var meta = document.createElement('meta'); 119 // meta.name = 'viewport'; 120 // meta.content = 'width=750, user-scalable=no'; 121 // head.appendChild(meta); 122 var cheight = document.documentElement.clientHeight; 123 $('.pagemore').css('height', cheight + 'px'); 124 $('.morenav').click(function(event) { 125 $('.pagemore').css('right', '0'); 126 $('html').css({ 'overflow': 'hidden', 'height': '100%' }); 127 $('body').css({ 'overflow': 'hidden', 'height': '100%' }); 128 }); 129 $('.back').click(function(event) { 130 $('.pagemore').css('right', '-750px'); 131 $('html').css({ 'overflow': 'auto', 'height': 'auto' }); 132 $('body').css({ 'overflow': 'hidden', 'height': 'auto' }); 133 }); 134 $('.zhuanti>.li').each(function(index, el) { 135 var hasimg = $(el).children('.img').find('img').length; 136 if(hasimg <= 0) { 137 $(el).children('.right').remove(); 138 $(el).addClass('noimg'); 139 } 140 }); 141 $('.libiao>.li').each(function(index, el) { 142 var hasimg = $(el).children('.img').find('img').length; 143 if(hasimg <= 0) { 144 $(el).children('.right').remove(); 145 $(el).addClass('noimg'); 146 } 147 }); 148 var page = 0; 149 var morebloo = true; 150 var getmore = function() { 151 // var url = '<trs_channel field="_recurl" UrlIsAbs="true"/>'; 152 var pindao = 'more'; 153 var num = 2721; 154 var ajaxurl = ""; 155 if(page == 0) { 156 ajaxurl = url + pindao + "_" + num + ".shtml" 157 } else { 158 ajaxurl = url + pindao + "_" + num + "_" + page + ".shtml" 159 } 160 $.ajax({ 161 url: ajaxurl, 162 async: false, 163 success: function(data) { 164 if(data.indexOf('<head>') > 0){ 165 morebloo = false;
166 $('.libiao').append('<div class="tisi">å·²ç»å°åºäº</div>'); 167 }else{ 168 $('.libiao').append(data); 169 $('.libiao>.li').each(function(index, el) { 170 var hasimg = $(el).children('.img').find('img').length; 171 if(hasimg <= 0) { 172 $(el).children('.right').remove(); 173 $(el).addClass('noimg'); 174 } 175 }); 176 page++; 177 } 178 }, 179 error: function() { 180 morebloo = false; 181 $('.libiao').append('<div class="tisi">å·²ç»å°åºäº</div>'); 182 } 183 }); 184 } 185 $(document).scroll(function(event) { 186 var st = $(this).scrollTop(); 187 if(st >= 75) { 188 $('.mnav').css({ 'position': 'fixed' }); 189 } else { 190 $('.mnav').css({ 'position': 'relative' }); 191 } 192 // var h = $(document.body).height(); //ç½é¡µææ¡£çé«åº¦ 193 // var c = $(document).scrollTop(); //æ»å¨æ¡è·ç¦»ç½é¡µé¡¶é¨çé«åº¦ 194 // var wh = $(window).height(); //页é¢å¯è§ååºåé«åº¦ 195 // if(Math.ceil(wh + c) >= h - 30 && morebloo) { 196 // getmore(); 197 // } 198 }); 199} 200 201var mpc = window.navigator.userAgent; 202if(/Mobile|iP(hone|ad)|Android|BlackBerry|IEMobile/.test(mpc)) { 203 mobilejs(); 204} else { 205 pcjs(); 206} 207// });
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.