()
| 2465 | return `<span class="px-2 py-1 rounded" style="background:${_WIFI_BAND_COLOR[b]}22;border:1px solid ${_WIFI_BAND_COLOR[b]}66"> |
| 2466 | <b style="color:${_WIFI_BAND_COLOR[b]}">${b} GHz</b> · ${s.ap_count} AP · |
| 2467 | <span style="color:${ratingColor[s.rating]}">${s.rating}</span> · best ch ${s.recommend.join(', ')}${wa}</span>`; |
| 2468 | }).join(''); |
| 2469 | if (d.noise_floor != null) chips += `<span class="px-2 py-1 rounded bg-slate-800 border border-slate-700">noise floor ${d.noise_floor} dBm</span>`; |
| 2470 | summ.innerHTML = chips || '<span class="text-gray-500">No APs heard.</span>'; |
| 2471 | wifiRenderChanges(); |
| 2472 | // Legend |
| 2473 | document.getElementById('wifi-legend').innerHTML = |
| 2474 | '<span>Signal:</span>' + |
| 2475 | [['#22c55e', 'strong'], ['#84cc16', 'good'], ['#eab308', 'fair'], ['#f97316', 'weak'], ['#ef4444', 'v.weak']] |
| 2476 | .map(([c, l]) => `<span class="flex items-center gap-1"><span style="width:10px;height:10px;background:${c};border-radius:2px;display:inline-block"></span>${l}</span>`).join('') + |
nothing calls this directly
no test coverage detected