`,n.home&&(i+=``);for(var l=0;l${n.tags[l].name}`;e+=`${n.pushed_at}
${n.contributor_count}
${n.publish_at}
${n[a.sort]&&n[a.sort]>1e3?`${(n[a.sort]/1e3).toFixed(1)}k`:(n[a.sort]||"--")} `,s=""}$(".project-list").html(e),a.count=t.count,a.offset=t.offset}),$(".paging-info").html((t=a.offset*a.count,n=(n=a.total-t)>30?t+30:t+n,`显示 ${t=!t&&t+1||t} - ${n},共 ${a.total} 条`)),function(){if(a.total<=30)for(var t=0;t<$(".paging-btn").length;t++)$(".paging-btn").eq(t).addClass("paging-disable");else if(0===a.offset)for(t=0;t<$(".paging-btn").length;t++)"first"===(n=$(".paging-btn").eq(t).data("paging"))||"previous"===n?$(".paging-btn").eq(t).addClass("paging-disable"):$(".paging-btn").eq(t).removeClass("paging-disable");else if(a.offset===parseInt(a.total/30))for(t=0;t<$(".paging-btn").length;t++)"next"===(n=$(".paging-btn").eq(t).data("paging"))||"last"===n?$(".paging-btn").eq(t).addClass("paging-disable"):$(".paging-btn").eq(t).removeClass("paging-disable");else{var n;for(t=0;t<$(".paging-btn").length;t++)$(".paging-btn").eq(t).removeClass("paging-disable")}$(window).scrollTop(0)}()}$(".sort-list").on("click","button",function(t){$(".sort-list").hide(),setTimeout(function(){$(".sort-list").css("display","")},200);var n=$(this).index();a.sort=["stars","daily","weekly","monthly","yearly"][n],a.sortName=["按总星标数","按今天的星标数","按本周的星标数","按这个月的星标数","按今年的星标数"][n],a.offset=0,s()}),$(".paging-btn").on("click",function(){if(!$(this).hasClass("paging-disable")){switch($(this).data("paging")){case"first":a.offset=0;break;case"previous":a.offset--;break;case"next":a.offset++;break;case"last":a.offset=parseInt(a.total/a.count)}s()}})});