| 1520 | } | 1520 | } |
| 1521 | const dot = document.createElement('div'); | 1521 | const dot = document.createElement('div'); |
| 1522 | dot.id = 'sd_runpod_bar_dot'; | 1522 | dot.id = 'sd_runpod_bar_dot'; |
| 1523 | dot.classList.add('sd_runpod_bar_dot', 'sd_runpod_red', 'interactable'); | 1523 | dot.classList.add('sd_runpod_dot', 'sd_runpod_bar_dot', 'sd_runpod_red', 'interactable'); |
| 1524 | dot.title = 'RunPod pod'; | 1524 | dot.title = 'RunPod pod'; |
| 1525 | dot.tabIndex = 0; | 1525 | dot.tabIndex = 0; |
| 1526 | dot.addEventListener('click', () => runpodControl(runpodLastPhase === 'red' ? 'warmup' : 'shutdown')); | 1526 | dot.addEventListener('click', () => runpodControl(runpodLastPhase === 'red' ? 'warmup' : 'shutdown')); |