';
- ag.s.forEach((s, j) => {
- const best = s === mx;
- const cur = j === ag.c;
- const ifLow = hmModels[j].if < 75;
- let marks = '';
- if (best) marks += 'โ ';
- if (ifLow) marks += 'โ ';
- h += '
' + s + marks + '
';
- });
- h += '
';
- });
- t.innerHTML = h + '';
-}`;
-
- html = html.substring(0, heatmapStart.index) + newHeatmap + html.substring(endIdx);
- }
+ // ---------- Heatmap: original renderHeatmap() in index.html is correct ----------
// ---------- Replace renderRecommendations function ----------
const recStartPattern = /function renderRecommendations\(\)\s*\{/;