fix: add level 6 and 7 to LEVEL_NAMES, LEVEL_ICONS and stats bar rows
This commit is contained in:
@@ -861,8 +861,8 @@ const MTN_COLORS = {
|
|||||||
"Pallars Jussà":"#D4851F","Alt Urgell":"#E09828","Cerdanya":"#E8A82E",
|
"Pallars Jussà":"#D4851F","Alt Urgell":"#E09828","Cerdanya":"#E8A82E",
|
||||||
"Ripollès":"#C86820","Garrotxa":"#B05818","Berguedà":"#D07B25","Solsonès":"#E8B835",
|
"Ripollès":"#C86820","Garrotxa":"#B05818","Berguedà":"#D07B25","Solsonès":"#E8B835",
|
||||||
};
|
};
|
||||||
const LEVEL_ICONS = {1:'👀',2:'🧩',3:'🔗',4:'✏️',5:'🗺️'};
|
const LEVEL_ICONS = {1:'👀',2:'🧩',3:'🔗',4:'✏️',5:'🗺️',6:'🔮',7:'💰'};
|
||||||
const LEVEL_NAMES = {1:'Descobreix',2:'Tria',3:'Uneix',4:'Escriu',5:'El Mapa'};
|
const LEVEL_NAMES = {1:'Descobreix',2:'Tria',3:'Uneix',4:'Escriu',5:'El Mapa',6:'Mapa Cec',7:'Milionari'};
|
||||||
|
|
||||||
/* ══════════════════════════════════════════════════════
|
/* ══════════════════════════════════════════════════════
|
||||||
ESTAT
|
ESTAT
|
||||||
@@ -1102,7 +1102,7 @@ async function loadStats() {
|
|||||||
</div>`;
|
</div>`;
|
||||||
}).join('') || '<div style="color:#aaa;font-size:.85rem;text-align:center;padding:12px;">Cap sessió registrada</div>';
|
}).join('') || '<div style="color:#aaa;font-size:.85rem;text-align:center;padding:12px;">Cap sessió registrada</div>';
|
||||||
|
|
||||||
const barRows = [1,2,3,4,5].map(lvl => {
|
const barRows = [1,2,3,4,5,6,7].map(lvl => {
|
||||||
const s = ls[lvl];
|
const s = ls[lvl];
|
||||||
const pct = s?.bestPct ?? null;
|
const pct = s?.bestPct ?? null;
|
||||||
const color = pct===null ? '#ddd' : pct>=80 ? '#4DBD6E' : pct>=50 ? '#F4A535' : '#F05C5C';
|
const color = pct===null ? '#ddd' : pct>=80 ? '#4DBD6E' : pct>=50 ? '#F4A535' : '#F05C5C';
|
||||||
|
|||||||
Reference in New Issue
Block a user