1function goTop(){������� 2 $(window).scroll(function(e) {������� 3 if($(window).scrollTop()>100)������� 4 $(".gotop").fadeIn(350).css("display","block");������� 5 else������� 6 $(".gotop").fadeOut(350).css("display","none");������� 7 });������� 8 ������� 9 $(".gotop").click(function(e) {������� 10 $('body,html').animate({scrollTop:0},500);������� 11 return false;������� 12 }); ������� 13};������� 14������� 15������� 16//è¶ åºèåæå ������� 17$.fn.menuMore = function(){������� 18������� 19 var tempWidth = 0,������� 20 menuWidth = $(this).find('.menuOoverallWidth').outerWidth(true) - $(this).find('.menuMore').outerWidth(true),������� 21 maxWidth = $(this).find('.menuOoverallWidth').outerWidth(true);������� 22������� 23������� 24 var $moreItems = $(this).find('.sf-menu > li').not('.menuMore').filter(function() {������� 25������� 26 tempWidth += $(this).outerWidth(true);������� 27 if (tempWidth >= menuWidth) return true;������� 28 else return false;������� 29������� 30 });������� 31������� 32 ������� 33 if ($moreItems.length > 0 && tempWidth > maxWidth) {������� 34 $(this).find('.menuMore').show().find('ul').append($moreItems);������� 35 } else {������� 36 $(this).find('.menuMore').hide();������� 37 }������� 38������� 39};������� 40������� 41������� 42$(document).ready(function() { ������� 43 //åºé¨åºå®åºåå ä½������� 44 if( $(".fixed-bottom").is(":visible") ){������� 45 $("#wrapper").css( "paddingBottom",$(".fixed-bottom").height() );������� 46 }else{������� 47 }������� 48 ������� 49 ������� 50 //è¿åé¡¶é¨������� 51 goTop();������� 52 ������� 53 //å 容å è½½åçè¿å¨ææ������� 54 dataAnimate(); ������� 55 ������� 56 ������� 57 // å¤è¯è¨������� 58 $('.language ul.sf-menu').superfish({ ������� 59 delay: 500,������� 60 animation: {opacity:'fast',height:'show'},������� 61 speed: 'fast',������� 62 autoArrows: true,������� 63 dropShadows: false������� 64 });������� 65 ������� 66 // 导èªèå������� 67 $('.main-nav ul.sf-menu').superfish({ ������� 68 delay: 500,������� 69 animation: {opacity:'fast',height:'show'},������� 70 speed: 'fast',������� 71 autoArrows: true,������� 72 dropShadows: false������� 73 }).supposition();������� 74 $('.main-nav ul.sf-menu > li').last().addClass('last').end().hover(function(){ $(this).addClass('nav-hover'); },function(){ $(this).removeClass('nav-hover'); });������� 75������� 76 ������� 77 ������� 78 //èå卿忢页颿æ������� 79 $(".main-nav li a, .logo a").click(function(){ ������� 80 if( $(this).attr("target") != "_blank"){������� 81 if( $(this).attr("href") != "javascript:;" && $(this).attr("href") != "#" )������� 82 return openwork($(this).attr("href"));������� 83 ������� 84 }������� 85 });������� 86 function openwork(url){������� 87 $("#wrapper").css({'-webkit-animation':"bounceIn 0.5s .25s ease both",'-moz-animation':'bounceIn 1s .25s ease both','animation':'bounceIn 0.5s .25s ease both'});������� 88 $("body").append("<div class='page-cover'></div>").css("position","relative"); ������� 89 $(".page-cover").delay(600).animate({"height":$(document).height()},800,null,function(){������� 90 location.href = url;������� 91 });������� 92 return false������� 93 };������� 94 ������� 95 ������� 96 ������� 97 //tab ������� 98 $(".tabs-nav").tabs(" > .tabs-panes > div");������� 99 ������� 100 //scrollable in tab������� 101 $(".tabs-nav > li > a").click(function(){������� 102 var _tabIndex = $(this).parents(".tabs-nav").find("li").index($(this).parent());������� 103 ������� 104 if( $(this).parents(".tabs-default").find(".tab-box").eq(_tabIndex).find(".scrollable-default").length > 0 ){������� 105 $(".scrollable-default").carouFredSel({������� 106 width : '100%',������� 107 infinite : false,������� 108 circular : false,������� 109 auto : { pauseOnHover: true, timeoutDuration:3500 },������� 110 swipe : { onTouch:true, onMouse:true },������� 111 prev : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},������� 112 next : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }}������� 113 });������� 114 $(".scrollable-default").parents(".scrollable").css("overflow","visible");������� 115 } ������� 116 ������� 117 if( $(this).parents(".tabs-default").find(".tab-box").eq(_tabIndex).find(".full-scrollable-default").length > 0 ){������� 118 $(".full-scrollable-default").carouFredSel({������� 119 infinite : false,������� 120 circular : false,������� 121 auto : false,������� 122 swipe : { onTouch:true, onMouse:true },������� 123 responsive : true,������� 124 items : {������� 125 visible : {������� 126 min : 2,������� 127 max : 8������� 128 }������� 129 },������� 130 prev : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},������� 131 next : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }} ������� 132 });������� 133 ������� 134 //éç½®é«åº¦������� 135 /*$(".full-scrollable-default").parents('.caroufredsel_wrapper').css({������� 136 'height': ($(".full-scrollable-default").find('li').outerHeight()) + 'px'������� 137 });*/������� 138 }������� 139������� 140 if( $(this).parents(".tabs-default").find(".tab-box").eq(_tabIndex).find(".pgwSlideshow-gallery").length > 0 ){������� 141������� 142 $('.pgwSlideshow-gallery ').find(".ps-next").click();������� 143 ������� 144 }������� 145 ������� 146 ������� 147 }); ������� 148 ������� 149 // accordion������� 150 $(".accordion").tabs(".accordion .accordion-pane", {tabs: '.accordion-handle', effect: 'slide',initialIndex: 0}); ������� 151 $.tools.tabs.addEffect("slide", function(tabIndex, done) {������� 152 this.getPanes().slideUp("fast").eq(tabIndex).slideDown("fast");������� 153 done.call();������� 154 });������� 155������� 156 // tab-round ������� 157 $('.tab-round > .tabs-nav > li > a').click(function(){������� 158 $(this).nextAll('.line-v').addClass('line-v-c');������� 159 $(this).parent('li').siblings('li').find('.line-v').removeClass('line-v-c');������� 160 });������� 161 ������� 162 ������� 163 ������� 164 //å¾åºåæ¢������� 165 $('.pgwSlideshow-gallery').pgwSlideshow({������� 166 mainClassName : 'pgwSlideshow-gallery pgwSlideshow'������� 167 });������� 168 $('.pgwSlideshow-gallery-simple').pgwSlideshow({������� 169 mainClassName : 'pgwSlideshow-gallery-simple pgwSlideshow',������� 170 displayList : false ������� 171 }); ������� 172 $('.pgwSlideshow-gallery-zoom').pgwSlideshow({������� 173 mainClassName : 'pgwSlideshow-gallery-zoom pgwSlideshow',������� 174 displayControls : false ������� 175 });������� 176 ������� 177 ������� 178 //table ������� 179 //$(".qhd-content table tbody>tr:odd").addClass("odd-row");������� 180 //$(".qhd-content table tbody>tr:even").addClass("even-row");������� 181 $(".qhd-content table tbody>tr").hover(function(){ ������� 182 $(this).addClass("trhover");������� 183 },function(){������� 184 $(this).removeClass("trhover");������� 185 });������� 186 ������� 187 //å¢å ååºå¼è¡¨æ ¼å¤å±div������� 188 $(".qhd-content table").each(function(){������� 189 if( !$(this).parent().hasClass("table-responsive") ){������� 190 $(this).wrap("<div class='table-responsive'></div>");������� 191 }������� 192 });������� 193 ������� 194 ������� 195 //左峿¬æµ®������� 196 $(".fixed-left").fixed({halfTop : true});������� 197 $(".fixed-right").fixed({halfTop : true}); ������� 198 //������� 199 $(".service-close-btn").click(function(){������� 200 var serviceMax = $(this).parents(".service-max"),������� 201 serviceMin = serviceMax.next(".service-min"); ������� 202 serviceMin.show();������� 203 serviceMax.hide();������� 204 }); ������� 205 $(".service-open-btn").click(function(){�������
206 var serviceMax = $(this).prev(".service-max"),������� 207 fixedELement = $(this).parents(".fixed"); ������� 208 $(this).hide();������� 209 serviceMax.show();������� 210 });������� 211 ������� 212 ������� 213 //徿 -åç§°-åå龿¥������� 214 $(".link-fixed-side > ul > li").each(function(){������� 215 $(this).hover(function(){������� 216 $(this).addClass("active").find(".link-summary").show(); ������� 217 },function(){������� 218 $(this).removeClass("active").find(".link-summary").hide();������� 219 });������� 220 ������� 221 if( $(this).find('a').attr('href').indexOf("#popup") != -1 ){������� 222 $(this).find('a').addClass('popup-show-btn');������� 223 }������� 224 ������� 225 });������� 226 //å¼¹çªè§é¢������� 227 $('.fancybox-video-play').fancybox({������� 228 'autoScale' : false,������� 229 'transitionIn' : 'elastic',������� 230 'transitionOut' : 'elastic',������� 231 'hideOnOverlayClick': false,������� 232 'centerOnScroll' : true,������� 233 'overlayColor' : '#000',������� 234 'padding' : '5'������� 235 });������� 236������� 237 ������� 238 //å¼¹åºçªå£åºå������� 239 $("a").each(function(){ ������� 240 if( typeof($(this).attr('href'))!="undefined" && $(this).attr('href').indexOf("#popup") != -1 ){������� 241 $(this).addClass('popup-show-btn');������� 242 }������� 243 });������� 244 $('.popup-show-btn').click(function(){������� 245 $('.popup').show();������� 246 $('.popup-overlay').height($(document).height());������� 247 $('.popup-content').css({marginLeft:-($('.popup-content').outerWidth()/2), marginTop:-($('.popup-content').outerHeight()/2)});������� 248 $('.popup-close-btn').click(function(){������� 249 $(this).parents('.popup').hide(); ������� 250 });������� 251 ������� 252 return false;������� 253 ������� 254 }); ������� 255 ������� 256 ������� 257 ������� 258 ������� 259 //设置弹çªè§é¢ç宽度������� 260 var touchWindowWidth = $(window).width();������� 261 if( touchWindowWidth < 1000 ){������� 262 $('.article-detail-fancybox').css("width", touchWindowWidth-80);������� 263 }������� 264 ������� 265 ������� 266 //ç§»å¨ç«¯ JS ������� 267 var isMobile = device.mobile(),������� 268 isTable = device.tablet(),������� 269 isiPhone = device.iphone(),������� 270 isiPad = device.ipad(); ������� 271 if(isMobile || isTable || isiPhone || isiPad){������� 272 //ç§»é¤æ°çªå£æå¼������� 273 $('a').not('[data-mobile-target="_blank"]').removeAttr('target');������� 274 }������� 275 ������� 276 ������� 277 ������� 278});������� 279������� 280$(window).load(function() {������� 281 //scrollable-default������� 282 $(".scrollable-default").carouFredSel({������� 283 width : '100%',������� 284 infinite : false,������� 285 //circular : false,������� 286 auto : { pauseOnHover: true, timeoutDuration:3500 },������� 287 swipe : { onTouch:true, onMouse:true },������� 288 prev : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},������� 289 next : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }}������� 290 });������� 291 $(".scrollable-default").parents(".scrollable").css("overflow","visible");������� 292 ������� 293 //full-scrollable-default������� 294 $(".full-scrollable-default").carouFredSel({������� 295 infinite : false,������� 296 circular : false,������� 297 auto : false,������� 298 swipe : { onTouch:true, onMouse:true },������� 299 responsive : true,������� 300 items : {������� 301 visible : {������� 302 min : 2,������� 303 max : 8������� 304 }������� 305 },������� 306 prev : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-prev"); }},������� 307 next : { button:function() { return $(this).parent().next('.carousel-direction').find(".carousel-next"); }} ������� 308 }); ������� 309 //éç½®é«åº¦������� 310 $(".full-scrollable-default").parents('.caroufredsel_wrapper').css({������� 311 'height': ($(".full-scrollable-default").find('li').outerHeight()) + 'px'������� 312 });������� 313������� 314 //ä¸è§åå¤å������� 315 if ($('.izotope-container').length) { ������� 316 $('.izotope-container').isotope({������� 317 itemSelector: '.izotope-item',������� 318 layoutMode: 'masonry',������� 319 masonry: { columnWidth: '.grid-sizer' }������� 320 }); ������� 321 };������� 322 ������� 323 ������� 324});������� 325������� 326$(window).bind("load resize", function() {������� 327 ������� 328 var postList = $(".post-list"); ������� 329 postList.each(function(){������� 330 var postImg = $(this).find(".post-img");������� 331 var postTextBox = $(this).find(".post-text-box"); ������� 332 var postText = $(this).find(".post-text");������� 333 var postTextSummary = $(this).find(".post-text-summary");������� 334 var postMaxHeight = postImg.eq(0).height();������� 335 var summaryMaxHeight = 0; ������� 336 ������� 337 postImg.each(function(){������� 338 postMaxHeight = $(this).height() > postMaxHeight ? $(this).height() : postMaxHeight;������� 339 }).find("img").height( postMaxHeight );������� 340 ������� 341 postTextBox.each(function(){������� 342 $(this).height( postMaxHeight - parseInt($(this).css("paddingTop")) - parseInt($(this).css("paddingBottom")) );������� 343 });������� 344 ������� 345 postTextSummary.each(function(){������� 346 summaryMaxHeight = postMaxHeight - $(this).prev("h2").height() - parseInt($(this).prev("h2").css("marginBottom")) - parseInt($(this).parent(".post-text").css("paddingBottom"))*2 - $(this).next(".post-text-detail").height() - 10;������� 347 if( $(this).height() > summaryMaxHeight ){������� 348 $(this).height( summaryMaxHeight );������� 349 }������� 350 }); ������� 351 ������� 352 //ä¸å - ç¹æ®å¤ç第äºå������� 353 if( $(this).hasClass("post-list-3col") ){������� 354 $(this).find(".post-list-item-spec").find(".post-img").css("top", postMaxHeight);������� 355 $(this).find(".post-list-item-spec").find(".post-text-box").css("top", -postMaxHeight);������� 356 } ������� 357 ������� 358 });������� 359 ������� 360});������� 361�������
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.