12
This commit is contained in:
parent
f31650e855
commit
0874bdf3c2
@ -5,7 +5,7 @@ let typeE = document.getElementById("selType");
|
|||||||
let opE = document.getElementById("selOp");
|
let opE = document.getElementById("selOp");
|
||||||
let resultInput = document.getElementById("res");
|
let resultInput = document.getElementById("res");
|
||||||
function aba(cmd,type,wd,wd2){
|
function aba(cmd,type,wd,wd2){
|
||||||
fetch(`http://192.168.56.101:8080/${cmd}${type}?x=${wd}&y=${wd2}`)
|
fetch(`http://192.168.56.102:8080/${cmd}${type}?x=${wd}&y=${wd2}`)
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(res => resultInput.value = res);
|
.then(res => resultInput.value = res);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user