mirror of
https://github.com/ssyyhhrr/stewardle.git
synced 2025-11-17 06:13:40 -05:00
Click to Submit
This commit is contained in:
@@ -48,6 +48,7 @@ function autocomplete(inp, arr) {
|
||||
/*close the list of autocompleted values,
|
||||
(or any other open lists of autocompleted values:*/
|
||||
closeAllLists();
|
||||
enter()
|
||||
});
|
||||
a.appendChild(b);
|
||||
}
|
||||
@@ -115,6 +116,11 @@ let drivers = []
|
||||
|
||||
document.addEventListener("keyup", async function (event) {
|
||||
if (event.keyCode === 13) {
|
||||
enter()
|
||||
}
|
||||
});
|
||||
|
||||
function enter() {
|
||||
let value = document.getElementById("myInput").value
|
||||
if (value != "") {
|
||||
let potential = 0
|
||||
@@ -153,7 +159,6 @@ document.addEventListener("keyup", async function (event) {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function shake() {
|
||||
let element = document.getElementById("myInput")
|
||||
|
||||
Reference in New Issue
Block a user