diff --git a/public/assets/traffic-guide.js b/public/assets/traffic-guide.js index 17786c0..5df01b6 100644 --- a/public/assets/traffic-guide.js +++ b/public/assets/traffic-guide.js @@ -21,7 +21,8 @@ const rows = Object.keys(o.fit).sort((a, b) => ORDER.indexOf(o.fit[a][0]) - ORDER.indexOf(o.fit[b][0])); const good = rows.filter(f => o.fit[f][0] === 'best' || o.fit[f][0] === 'good'); // networks that sell at least one best/good format; strict-policy networks are left out for the opportunity offer - const nets = Object.keys(G.NETWORKS).filter(k => { const n = G.NETWORKS[k]; if (n.strict && o.key === 'opp') return false; if (n.adult === 'adult' && !['games', 'sweeps'].includes(o.key)) return false; // adult-only sites suit few offers return n.f.some(f => good.includes(f)); }) + // adult-only sites suit few offers + const nets = Object.keys(G.NETWORKS).filter(k => { const n = G.NETWORKS[k]; if (n.strict && o.key === 'opp') return false; if (n.adult === 'adult' && !['games', 'sweeps'].includes(o.key)) return false; return n.f.some(f => good.includes(f)); }) .map(k => ({ k, score: G.NETWORKS[k].f.reduce((s, f) => s + (o.fit[f] ? (o.fit[f][0] === 'best' ? 3 : o.fit[f][0] === 'good' ? 1 : 0) : 0), 0) })) .sort((a, b) => b.score - a.score || nameOf(a.k).localeCompare(nameOf(b.k))); $('result').innerHTML = '