Click to Submit

This commit is contained in:
ssyyhhrr
2022-06-24 14:32:34 +01:00
parent 08b0526875
commit 7fe25379a1

View File

@@ -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
@@ -152,8 +158,7 @@ document.addEventListener("keyup", async function (event) {
shake()
}
}
}
});
}
function shake() {
let element = document.getElementById("myInput")