mirror of
https://github.com/ssyyhhrr/stewardle.git
synced 2025-11-17 14:23: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,
|
/*close the list of autocompleted values,
|
||||||
(or any other open lists of autocompleted values:*/
|
(or any other open lists of autocompleted values:*/
|
||||||
closeAllLists();
|
closeAllLists();
|
||||||
|
enter()
|
||||||
});
|
});
|
||||||
a.appendChild(b);
|
a.appendChild(b);
|
||||||
}
|
}
|
||||||
@@ -115,6 +116,11 @@ let drivers = []
|
|||||||
|
|
||||||
document.addEventListener("keyup", async function (event) {
|
document.addEventListener("keyup", async function (event) {
|
||||||
if (event.keyCode === 13) {
|
if (event.keyCode === 13) {
|
||||||
|
enter()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function enter() {
|
||||||
let value = document.getElementById("myInput").value
|
let value = document.getElementById("myInput").value
|
||||||
if (value != "") {
|
if (value != "") {
|
||||||
let potential = 0
|
let potential = 0
|
||||||
@@ -153,7 +159,6 @@ document.addEventListener("keyup", async function (event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
function shake() {
|
function shake() {
|
||||||
let element = document.getElementById("myInput")
|
let element = document.getElementById("myInput")
|
||||||
|
|||||||
Reference in New Issue
Block a user