diff --git a/index.html b/index.html index e8fc25c..f9b8be9 100644 --- a/index.html +++ b/index.html @@ -587,14 +587,14 @@ function renderBreweries(){ const brews=computeBrews(); const rated=brews.filter(b=>b.rated); - const lead={}; - ['overall','beer','svc','gl'].forEach(k=>{lead[k]=rated.length?Math.max.apply(null,rated.map(b=>b[k])):null}); + const lead={},low={}; + ['overall','beer','svc','gl'].forEach(k=>{lead[k]=rated.length?Math.max.apply(null,rated.map(b=>b[k])):null;low[k]=rated.length?Math.min.apply(null,rated.map(b=>b[k])):null}); const s=state.bsort; let rows=brews.filter(b=>state.stage==='all'||b.stage===state.stage); rows=sortRows(rows,s,b=>s.key==='name'?b.name:b[s.key],{pending:true}); const body=rows.map(b=>{ const open=state.open.has(b.id); - const cell=(k,extra)=>''+(b.rated?f2(b[k]):'\u2013')+''; + const cell=(k,extra)=>''+(b.rated?f2(b[k]):'\u2013')+''; return ''+ ''+(b.rated?b.rank:'\u2013')+''+ ''+ @@ -602,7 +602,7 @@ (open?''+detailHtml(b)+'':''); }).join(''); const stageNote=(state.stage==='all'||SCOPE.all) - ?'Tap a brewery to see each person\u2019s scores. Gold marks the best in each column.'+(SCOPE.all?' Every rating from every season counts, so a brewery\u2019s score is the average of all of them.':'') + ?'Tap a brewery to see each person\u2019s scores. Gold marks the best in each column, lilac the lowest.'+(SCOPE.all?' Every rating from every season counts, so a brewery\u2019s score is the average of all of them.':'') :'Stage '+state.stage+': '+STAGES.find(x=>x.id===state.stage).label+'. Ranks are overall, across all stages.'; return ''+ '

Overall is '+wtext()+' (GL).

'+