1var a_on=true,go_top=$("#gotop"),isf=0;; 2window.onscroll=function(){ 3 var sTop=document.documentElement.scrollTop+document.body.scrollTop; 4 if(sTop>600){ 5 if(a_on){ 6 go_top.removeClass('hid'); 7 a_on=false; 8 } 9 }else{ 10 if(!a_on){ 11 go_top.addClass('hid'); 12 a_on=true; 13 } 14 } 15} 16$("#pages").delegate("a","click",function(e){ 17 e.stopPropagation(); 18 e.preventDefault(); 19 var p=$(this).attr("data-id"); 20 var ion=$(this).hasClass("on"); 21 if(!ion){ 22 page=p; 23 loadGoods(0); 24 var jv=linkurl.indexOf('?')!=-1?'&':'?' 25 window.history.pushState(null,null,linkurl+''+jv+'p='+p); 26 $(this).addClass("on").siblings().removeClass("on"); 27 } 28}); 29window.addEventListener("popstate",function(e){ 30var ft=getfilter(); 31var ln=0; 32if(ft['p']){ 33page=ft['p']; 34var ln=page-1; 35} 36$("#pages").children().eq(ln).addClass("on").siblings().removeClass("on"); 37loadGoods(); 38}); 39function getfilter() { 40var url = location.search; 41var theRequest = new Object(); 42if (url.indexOf("?")!= -1) { 43var str = url.substr(1); 44strs = str.split("&"); 45for(var i = 0; i < strs.length; i ++) { 46var na=strs[i].split("="); 47var va=na[0]; 48var ca=na[1]; 49theRequest[va]=unescape(ca); 50} 51} 52return theRequest; 53} 54function loadGoods(build_page){ 55 if(page>total||isf==1){ 56 return; 57 } 58 isf = 1; 59 loading(); 60 $.ajax({ 61 url:'blog.php', 62 data:{act:act,cat_id:cat_id,uid:uid,is_ajax:1,p:page}, 63 async:false, 64 dataType:"JSON", 65 success:function (c){ 66 loading_hide(); 67 $("#blg_list").html(c.list); 68 isf = 0; 69 var ct=$("#blg_list").offset().top; 70 //window.scrollTo(0,ct); 71 $('html,body').stop().animate({scrollTop:ct+'px'},600); 72 },error:function(e){ 73 isf = 0; 74 loading_hide(); 75 },timeout:function(e){ 76 isf = 0; 77 loading_hide(); 78 }, 79 }); 80}
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.