(bg)
| 238 | document.documentElement.appendChild(panel); |
| 239 | |
| 240 | function btnStyle(bg) { |
| 241 | return { |
| 242 | background: bg || "#2a6df1", |
| 243 | color: "white", |
| 244 | border: "0", |
| 245 | padding: "6px 10px", |
| 246 | borderRadius: "6px", |
| 247 | cursor: "pointer", |
| 248 | font: "inherit", |
| 249 | }; |
| 250 | } |
| 251 | |
| 252 | const $log = panel.querySelector("#log"); |
| 253 | const $counts = panel.querySelector("#counts"); |