1/** 2 * 页é¢readyæ¹æ³ 3 */ 4$(document).ready(function() { 5 6 backToTop(); 7 search(); 8}); 9 10/** 11 * åå°é¡¶é¨ 12 */ 13function backToTop() { 14 $("[data-toggle='tooltip']").tooltip(); 15 var st = $(".page-scrollTop"); 16 var $window = $(window); 17 var topOffset; 18 //æ»é¡µé¢ææ¾ç¤ºè¿åé¡¶é¨ 19 $window.scroll(function() { 20 var currnetTopOffset = $window.scrollTop(); 21 if (currnetTopOffset > 0 && topOffset > currnetTopOffset) { 22 st.fadeIn(500); 23 } else { 24 st.fadeOut(500); 25 } 26 topOffset = currnetTopOffset; 27 }); 28 29 //ç¹å»åå°é¡¶é¨ 30 st.click(function() { 31 $("body").animate({ 32 scrollTop: "0" 33 }, 500); 34 }); 35 36 37} 38 39function search(){ 40// (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){ 41// (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t); 42// e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.appendChild(s); 43// })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st'); 44// 45// _st('install','','2.0.0'); 46 47// (function(){ 48// document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E')); 49// var bdcs = document.createElement('script'); 50// bdcs.type = 'text/javascript'; 51// bdcs.async = true; 52// bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=17140189356250418058' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000); 53// var s = document.getElementsByTagName('script')[0]; 54// s.parentNode.insertBefore(bdcs, s);} 55// )(); 56} 57 58 59 60 61
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.