small changes

This commit is contained in:
2019-10-28 00:47:15 +01:00
parent d04fc53849
commit 46c2782e4e
3 changed files with 12 additions and 16 deletions

View File

@ -29,14 +29,10 @@ function getKey(action) {
return key
}
function loadButtons() {
document.open()
document.write(
actionLabel.map(action => `<div>${action.label}</div>
window.onload = function() {
document.getElementById("actions").innerHTML = actionLabel.map(action => `<div>${action.label}</div>
<button type="button" onclick="changeKey(this, '${action.name}')">${getKey(action.name)}</button>
`).join("\n")
)
document.close()
}
function changeKey(button, action) {