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)=>'
Overall is '+wtext()+' (GL).
'+