small changes
This commit is contained in:
1 parent
d04fc53849
commit
46c2782e4e
3 files changed
+12
-16
No files matched your search
+2
-6
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user