formatting

This commit is contained in:
raven 2022-12-22 00:03:10 -05:00
parent de53661ff2
commit a549671e70
1 changed files with 178 additions and 180 deletions

View File

@ -53,7 +53,7 @@
console.log(e)
e = e || window.event;
// Handle
if (e.key == "w" || e.code == "Numpad8") {
fetch(rootURL + "/up")
.then(function (response) {
@ -64,7 +64,6 @@
})
}
// Handle
if (e.key == "a" || e.code == "Numpad4") {
fetch(rootURL + "/left")
.then(function (response) {
@ -74,7 +73,7 @@
if (data == 1) return console.log("Command: LEFT - SENT!")
})
}
// Handle
if (e.key == "s" || e.key == "2") {
fetch(rootURL + "/down")
.then(function (response) {
@ -84,8 +83,7 @@
if (data == 1) return console.log("Command: DOWN - SENT!")
})
}
// Handle
// Handle
if (e.key == "d" || e.code == "Numpad6") {
fetch(rootURL + "/right")
.then(function (response) {
@ -105,6 +103,7 @@
if (data == 1) return console.log("Command: ENTER - SENT!")
})
}
if (e.key == "x" || e.code == "NumpadDecimal") {
fetch(rootURL + "/back")
.then(function (response) {
@ -146,7 +145,6 @@
}
if (e.key == "m" || e.code == "Numpad0") {
fetch(rootURL + "/mute")
.then(function (response) {