implement basic queries from api

This commit is contained in:
Yannik Schmidt
2021-07-25 03:04:24 +02:00
parent 02be6031a2
commit bcb460bc24
3 changed files with 129 additions and 16 deletions

View File

@@ -16,6 +16,20 @@ var checkPlayerFunc = function checkPlayer() {
})
}
var checkPlayerApiFunc = function checkPlayer() {
if(this.value == ""){
return
}
url = "/player-api?id=" + this.value
fetch(url).then(r => {
if(r.status == 200){
this.style.background = "#74bb74"
}else{
//this.style.background = "#d25252"
}
})
}
var fastPosChangedFunc = function fastPosChanged() {
accepted = [ "top", "jungle", "mid", "sup" , "bot" ]