1$(document).ready(function(){ 2 //è¿åé¡¶é¨ 3 $("#gototop").click(function(){ 4 $("html,body").animate({scrollTop :0}, 800);return false; 5 }); 6 $("#gotoinquiry").click(function(){ 7 $("html,body").animate({scrollTop:$("#inquiry").offset().top-70},800);return false; 8 }); 9 10 // æç´¢ 11 $("#search_btn").click(function(){ 12 $("#topsearch").slideToggle();$("html,body").animate({scrollTop :0}, 800); 13 }); 14 15 // åæ é¾æ¥ 16 $("#link_btn").click(function(){ 17 if ($(".link_list").css('display') == "none"){ 18 $("#link_btn").addClass("glyphicon-minus"); 19 }else{ 20 $("#link_btn").removeClass("glyphicon-minus"); 21 } 22 $(".link_list").slideToggle(); 23 }); 24 25 $("#tags_btn").click(function(){ 26 if ($(".tags_rows").css('display') == "none"){ 27 $("#tags_btn").addClass("glyphicon-minus"); 28 }else{ 29 $("#tags_btn").removeClass("glyphicon-minus"); 30 } 31 $(".tags_rows").slideToggle(); 32 }); 33 34 if($(window).width()>768){ 35 //é¼ æ åè¿å°±å±å¼åèå 36 $('ul.nav li.dropdown').hover(function() { 37 $(this).find('.dropdown-menu').stop(true, true).slideDown(); 38 }, function() { 39 $(this).find('.dropdown-menu').stop(true, true).slideUp(); 40 }); 41 } 42 43 //scrollTop 44 $(window).scroll(function(){ 45 var scrolls = $(window).scrollTop() 46 if (scrolls > 60) { 47 $("#top_nav").addClass("navbar-up"); 48 $(".flash").addClass("flash-up"); 49 }else{ 50 $("#top_nav").removeClass("navbar-up"); 51 $(".flash").removeClass("flash-up"); 52 } 53 }); 54 55});
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.