1// JavaScript Document 2$(function(){ 3 4 $(".topbar_down .rightside").append($(".navbar .nav").clone()) 5 /*$(".nav li").hover(function(){ 6 $(this).addClass("cur").siblings().removeClass("cur"); 7 }); 8 $(".nav,.nav_menu").mouseover(function(){ 9 $(".nav_menu").addClass("nav_menu_on"); 10 }); 11 $(".nav").mouseover(function(){ 12 $(this).addClass("cur"); 13 }); 14 $(".nav,.nav_menu").mouseout(function(){ 15 $(".nav_menu").removeClass("nav_menu_on"); 16 }); 17 $(".nav,.nav_menu").mouseleave(function(){ 18 $(".nav li").removeClass("cur"); 19 });*/ 20 21 $(".nav li").mouseover(function(){ 22 $(this).addClass("cur"); 23 }).mouseout(function(){ 24 $(this).removeClass("cur"); 25 }); 26 27 28 29 /*è¿å顶鍿é®*/ 30 $('.top').click(function(){ 31 $('body,html').animate({'scrollTop':0},700); 32 $(this).addClass("top_show"); 33 }); 34 35 function externallinks() { 36 if (!document.getElementsByTagName) return; 37 var anchors = document.getElementsByTagName("a"); 38 for (var i=0; i<anchors.length; i++) { 39 var anchor = anchors[i]; 40 if (anchor.getAttribute("href") && 41 anchor.getAttribute("rel") == "external") 42 anchor.target = "_blank"; 43 } 44 } 45 window.onload = externallinks; 46 47 48 49 /*æ°çªå£å ³éæé®*/ 50 var close_btn = function(){ 51 $(".close_page").css({right:($(window).width()-980)/2-50}); 52 if($(window).width()<1000){ 53 $(".close_page").css({right:0}); 54 } 55 } 56 close_btn(); 57 $(window).resize(function(){ 58 close_btn(); 59 }); 60 61 $(".container_page").css({"min-height":$(window).height()-$(".header").height()-$(".footer").height()-2}); 62 if($(".container").height()<$(".container .rightside").height()){ 63 $(".container").css({"min-height":$(".container .rightside").height()-10}); 64 } 65 66 $(".container_newpage").css({"min-height":$(window).height()-60-$(".footer").height()}); 67 $(".container_news").css({"min-height":$(window).height()-$(".header").height()-$(".footer_news").height()}); 68 if($(window).width()>768){ 69 $(".leftside_news").css({"min-height":$(".rightside_news").height()-40}); 70 }else{ 71 $(".leftside_news").css({"min-height":'inherit'}); 72 $(".detail .edittext").css({"min-height":$(window).height()-$(".header").height()-$(".footer_news").height()-200}); 73 } 74 75 76 /*$(".nav .secnav").css({"top":-$(this).height()}); 77 $(".nav > li").hover(function(){ 78 $(this).children(".secnav").css({"top":145}); 79 },function(){ 80 $(this).children(".secnav").css({"top":-$(this).children(".secnav").height()}) 81 });*/ 82 83 var scroll=function(){ 84 $(window).scroll(function(){ 85 var scrollTop = $(this).scrollTop(); 86 87 88 89 //if(document.getElementsByClassName){ 90 91 /*if(scrollTop < 158){ 92 $(".container .rightside").css({'transform':'translate(0, 0px)'}); 93 $(".rightside_inter,.rightside_c").css({"margin-top":60}); 94 }else{ 95 if(scrollTop < ($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -59 )){ 96 $(".container .rightside").css({'transform':'translate(0, '+ (scrollTop-158)+'px)'}); 97 $(".rightside_inter,.rightside_c").css({"margin-top":0}); 98 } 99 }*/ 100 if(scrollTop < 158){ 101 $(".container .rightside").removeClass('rightside_fixed').css({'top':'60px'});; 102 $(".rightside_inter,.rightside_c").css({"margin-top":60}); 103 }else{ 104 if(scrollTop < ($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 )){ 105 $(".container .rightside").addClass('rightside_fixed').css({'top':'70px'}); 106 $(".rightside_inter,.rightside_c").css({"margin-top":0}); 107 }else{ 108 $(".container .rightside").css({'top':($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 - 158 + 60 )+'px'}); 109 $(".container .rightside").removeClass('rightside_fixed'); 110 } 111 } 112 113 114 115 116 if(scrollTop < 150){ 117 $(".header_down").removeClass('header_down_on'); 118 setTimeout(function(){ 119 if($(this).scrollTop() < 150){ 120 $(".header_down").css({'z-index':'-1'}); 121 } 122 },500) 123 }else{ 124 $(".header_down").addClass('header_down_on').css({'z-index':'1000'}); 125 } 126 127 //} 128 129 130 131 132 133 134 135 var scrollTop=getBodySrollTop(); 136 if(scrollTop>=160){ 137 $('.intro').addClass('intro_on'); 138 }else{ 139 $('.intro').removeClass('intro_on'); 140 } 141 142 if(scrollTop>=158){ 143 $('.top').addClass('top_show'); 144 } 145 else{ 146 $('.top').removeClass('top_show'); 147 } 148 149 if(scrollTop<280){ 150 $('.wrapper_page .bg_img_in').css('transform', 'translate(0, '+ -(scrollTop*0.05 )+'px)'); 151 } 152 153 154 155 156 if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE7.0") { 157 158 if(scrollTop < 158){ 159 $(".container .rightside").css({'top':'208px'});; 160 }else{ 161 if(scrollTop < ($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 )){ 162 $(".container .rightside").addClass('rightside_fixed').css({'top':'70px'}); 163 }else{ 164 $(".container .rightside").css({'top':($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 - 158 + 60 )+'px'}); 165 $(".container .rightside").removeClass('rightside_fixed'); 166 } 167 } 168 } 169 170 171 }); 172 } 173 scroll(); 174 175 176 if($(window).scrollTop() < 158){ 177 $(".container .rightside").removeClass('rightside_fixed').css({'top':'60px'});; 178 $(".rightside_inter,.rightside_c").css({"margin-top":60}); 179 }else{ 180 if($(window).scrollTop() < ($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 )){ 181 $(".container .rightside").addClass('rightside_fixed').css({'top':'70px'}); 182 $(".rightside_inter,.rightside_c").css({"margin-top":0}); 183 }else{ 184 $(".container .rightside").css({'top':($(document).outerHeight() - $('.footer').outerHeight() - $('.page_body .rightside').outerHeight() -60 - 158 + 60 )+'px'}); 185 $(".container .rightside").removeClass('rightside_fixed'); 186 } 187 } 188 189 190 function getBodySrollTop(){ 191 return document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; 192 } 193 194 195 /*ææºç*/ 196 //$(".header").height($("body").height()); 197 var i = 1; 198 var i2 = 1; 199 $(".menu_out_b,.menu_out_b2").click(function(){ 200 $(this).toggleClass("menu_btn_on"); 201 $('html,body').toggleClass("menu_body") 202 $(".header").toggleClass("header_mobile"); 203 $(".nav_out_news").toggleClass("nav_out_news_on"); 204 $(".container").toggleClass("container_on"); 205 if(i == 1){ 206 $('.menu_close').fadeIn(500); 207 $('html,body').addClass("menu_body").css({'height':$(window).height()}); 208 i = 2; 209 }else{ 210 $('.menu_close').fadeOut(500); 211 $('html,body').removeClass("menu_body").css({'height':'auto'}); 212 $(".header_mobile").addClass('header_mobile_on'); 213 i = 1; 214 } 215 $(".nav_out_news_on").height($(window).height()-60); 216 }); 217 218 219 /*$(".menu_btn_m").click(function(){ 220 $('html,body').addClass("menu_body").css({'height':$(window).height()}); 221 }); 222 223 $(".menu_close_m").click(function(){ 224 $(".header").toggleClass("header_mobile"); 225 $('html,body').removeClass("menu_body").css({'height':'auto'}); 226 }); 227 228 229 230 $(".menu_btn_m").click(function(){ 231 $(".header").addClass("header_mobile"); 232 $('body').css({"overflow-y":'hidden','max-height':$(window).height()}); 233 }); 234 $(".menu_close_m").click(function(){ 235 $(".header").removeClass("header_mobile"); 236 $('body').css({"overflow-y":'auto','max-height':'none'}); 237 });*/ 238 239 240 241 242 if($(window).width()<750){ 243 /*$(".nav li").mouseover(function(){ 244 $(this).removeClass("cur"); 245 });*/ 246 $(".nav > li").children('ul').addClass("secnav"); 247 /*$(".nav > li").on('click',function(){ 248 $(this).toggleClass("cur").find(".secnav").toggleClass("secnav_on"); 249 $(this).siblings().find(".secnav").removeClass("secnav_on"); 250 });*/ 251 var n = 1; 252 $(".nav_more,.nav li .t_1").on('click',function(){ 253 $(".nav > li").removeClass("active"); 254 if(n == 1){ 255 $(this).parent().addClass("cur").find(".secnav").addClass("secnav_on"); 256 n = 2; 257 }else{ 258 $(this).parent().removeClass("cur").find(".secnav").removeClass("secnav_on"); 259 n = 1; 260 } 261 //$(this).parent().siblings().removeClass("cur").find(".secnav").removeClass("secnav_on"); 262 }); 263 264 $(".nav li:nth-child(7) .t_1,.nav li:nth-child(9) .t_1,.nav li:nth-child(11) .t_1,.nav li:nth-child(17) .t_1").click(function(){ 265 return false; 266 }) 267 /*$(".secnav").on('click',function(){ 268 $(this).parent().addClass("cur"); 269 $(this).addClass("secnav_on"); 270 console.log(11); 271 });*/ 272 $("body,.wrapper").css({"min-height":$('.header').height()}); 273 $(".container").css("min-height",$(window).height()-$(".footer_mobile").height()-82); 274 $(".container_news").css({"min-height":$(window).height()-$(".title_page").height()-$(".footer_mobile").height()-65}); 275 $(".body_simple .wrapper").css({"min-height":$(window).height()-72}); 276 } 277 278 $(".title,.title_coo").click(function(){ 279 $(this).toggleClass("title_on").siblings(".title,.title_coo").removeClass("title_on"); 280 $(this).next(".hide_cont").toggleClass('item_on').siblings(".hide_cont").removeClass("item_on"); 281 $(this).next("ul").toggleClass('item_on'); 282 $(this).next(".journal_list").toggleClass('item_on').siblings(".journal_list").removeClass("item_on"); 283 $(this).next(".journal_list").toggleClass('item_on'); 284 $(this).parent().siblings().children('.college_list3 ul,.content-box2 .hide_cont,.college_list ul').removeClass("item_on");
285 $(this).parent().siblings().children('.college_list3 .title,.content-box2 .title_coo,.college_item .title').removeClass("title_on"); 286 $(this).parents(".coo_item").siblings().find('.hide_cont').removeClass("item_on"); 287 $(this).parents(".coo_item").siblings().find('.title_coo,.title').removeClass("title_on"); 288 $(this).next('.leader_out').toggleClass('item_on'); 289 }); 290$(".nav li a").each(function(){ 291 if($(this).text()==$(".page_body .title_page").text()){ 292 $(this).parents("li").addClass("active") 293 } 294 if($(this).text()=="é¢ç³»é¨é¨"){ 295 $(this).siblings(".secnav,.nav_more").remove() 296 } 297}) 298});
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.