(text, danger)
| 761 | writeRow.className = 'btn-row'; |
| 762 | |
| 763 | function makeBtn(text, danger) { |
| 764 | const b = document.createElement('button'); |
| 765 | b.textContent = text; |
| 766 | |
| 767 | if (danger) { |
| 768 | b.className = 'danger'; |
| 769 | } else { |
| 770 | b.style.color = accent; |
| 771 | b.style.borderColor = accent + '66'; |
| 772 | b.style.background = '#ffffff'; |
| 773 | } |
| 774 | |
| 775 | return b; |
| 776 | } |
| 777 | |
| 778 | const cmdMap = [ |
| 779 | ['string', 'SET_STRING'], |