(color: string)
| 49 | ].join(";"); |
| 50 | |
| 51 | const dot = (color: string): HTMLElement => { |
| 52 | const d = document.createElement("span"); |
| 53 | d.style.cssText = `width:11px;height:11px;border-radius:50%;flex:none;background:${color}`; |
| 54 | return d; |
| 55 | }; |
| 56 | const lights = document.createElement("span"); |
| 57 | lights.style.cssText = "display:inline-flex;gap:6px;margin-right:4px"; |
| 58 | lights.append(dot("#ff5f57"), dot("#febc2e"), dot("#28c840")); |