|
|
@ -18,7 +18,6 @@ module.exports = function initButtons (input) { |
|
|
|
container.appendChild(button) |
|
|
|
container.appendChild(button) |
|
|
|
|
|
|
|
|
|
|
|
button.addEventListener('click', e => { |
|
|
|
button.addEventListener('click', e => { |
|
|
|
console.log('button click', e) |
|
|
|
|
|
|
|
// might as well use the attribute ¯\_(ツ)_/¯
|
|
|
|
// might as well use the attribute ¯\_(ツ)_/¯
|
|
|
|
let index = +button.getAttribute('data-n') |
|
|
|
let index = +button.getAttribute('data-n') |
|
|
|
input.sendButton(index) |
|
|
|
input.sendButton(index) |
|
|
|