(tag, className, text)
| 40 | } |
| 41 | const $ = id => document.getElementById(id); |
| 42 | const el = (tag, className, text) => { |
| 43 | const node = document.createElement(tag); |
| 44 | if (className) node.className = className; |
| 45 | if (text !== undefined && text !== null) node.textContent = String(text); |
| 46 | return node; |
| 47 | }; |
| 48 | const button = (text, action, className = '') => { |
| 49 | const node = el('button', className, text); |
| 50 | node.type = 'button'; |
no outgoing calls
no test coverage detected