Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions e63334287a3deaa3/d06440218d1813a3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,9 @@ <h2>Can't read feedback</h2>
function fillGames(){
var sel=$('sGame'),cur=sel.value||'all';
sel.textContent='';opt(sel,'all','All games');
if(LB)LB.GAMES.forEach(function(g){opt(sel,g.d,g.n)});
sel.value=cur==='all'||(LB&&LB.BY[cur])?cur:'all';
// Archived games (gone: 1 in leaderboard.js) are left out of the menu and the Hours by game list; their time still counts in the totals.
if(LB)LB.GAMES.forEach(function(g){if(!g.gone)opt(sel,g.d,g.n)});
sel.value=cur==='all'||(LB&&LB.BY[cur]&&!LB.BY[cur].gone)?cur:'all';
}
// The day keys in a range ('1', '7', '30'), or null for all time.
function daysIn(range){if(range==='all')return null;var n=Math.max(1,Math.min(DAYS,+range||1)),set={};for(var i=0;i<n;i++)set[dayAgo(i)]=1;return set}
Expand Down Expand Up @@ -594,7 +595,7 @@ <h2>Can't read feedback</h2>
Object.keys(per).forEach(function(d){gs[d]=(gs[d]||0)+per[d];gp[d]=(gp[d]||0)+1});
total+=v;if(p.ga)google++;
});
var games=LB.GAMES.filter(function(g){return gs[g.d]>0}).map(function(g){return {d:g.d,n:g.n,s:gs[g.d],people:gp[g.d]}}).sort(function(a,b){return b.s-a.s||b.people-a.people});
var games=LB.GAMES.filter(function(g){return !g.gone&&gs[g.d]>0}).map(function(g){return {d:g.d,n:g.n,s:gs[g.d],people:gp[g.d]}}).sort(function(a,b){return b.s-a.s||b.people-a.people});
return {range:range,gv:gv,gOnly:gOnly,days:days,list:list,idle:idle,games:games,total:total,google:google};
}
var last=null;
Expand Down
Loading