()
| 28 | |
| 29 | class Settings { |
| 30 | constructor() { |
| 31 | this.div = document.createElement('div'); |
| 32 | this.div.classList.toggle('settings'); |
| 33 | this.holder = document.createElement('div'); |
| 34 | this.holder.classList.toggle('holder'); |
| 35 | this.div.appendChild(this.holder); |
| 36 | const ok = document.createElement('a'); |
| 37 | ok.textContent = '[apply]' |
| 38 | this.div.appendChild(ok); |
| 39 | } |
| 40 | |
| 41 | add(name, type, init, callback, elem_type='input') { |
| 42 | let label = document.createElement('label'); |
nothing calls this directly
no outgoing calls
no test coverage detected