naprawa bledu, ktory blokal ponownie dodanie bramkarza

This commit is contained in:
unknown 2024-01-06 20:41:17 +01:00
parent 41380fbfcf
commit 3c9c2a6e9f
3 changed files with 6 additions and 11 deletions

View File

@ -38,8 +38,6 @@ const Hero = () => {
return Math.round(fY*68)/100 return Math.round(fY*68)/100
} }
function changePlayer(a){ function changePlayer(a){
document.getElementById("bbt1").style.background = "#99FFCC"; document.getElementById("bbt1").style.background = "#99FFCC";
@ -91,13 +89,16 @@ const Hero = () => {
list.removeChild(player) list.removeChild(player)
bojo.removeChild(ball) bojo.removeChild(ball)
if(possition == 1){ if(possition == 1){
number_of_goalkeepers = number_of_goalkeepers -1 number_of_goalkeepers = 0
}else if(possition == 2){ }else if(possition == 2){
number_of_defenders = number_of_defenders -1 ; number_of_defenders = number_of_defenders -1 ;
}else if (possition == 3){ }else if (possition == 3){
number_of_strikers = number_of_strikers -1 ; number_of_strikers = number_of_strikers -1 ;
}else if(possition == 0){
numer_od_shooters = 0
} }
} }
function addPlayer(possition, ball){ function addPlayer(possition, ball){
//Zmiana stylu w zaleznosci czy zawodnik jest obronca/napastnikiem iyp. //Zmiana stylu w zaleznosci czy zawodnik jest obronca/napastnikiem iyp.
var pName = "Strzelec" var pName = "Strzelec"
@ -182,8 +183,8 @@ const Hero = () => {
tekst.style.color = "white" tekst.style.color = "white"
posytion.style.color = "white" posytion.style.color = "white"
x = parseFloat(x) + 1 x = parseFloat(x) -2
y = parseFloat(y) + 1 y = parseFloat(y) -2
if(bojo.parentNode.querySelector(":hover")){ if(bojo.parentNode.querySelector(":hover")){
ball.style.left = x + "%" ball.style.left = x + "%"

View File

@ -22,15 +22,9 @@ def loc2locdistance(x1, y1, x2, y2):
# model Api # model Api
<<<<<<< HEAD
@app.route("/members")
def members():
return "dnjss"
=======
# @app.route("/members") # @app.route("/members")
# def members(): # def members():
# return{"members":["Member1","Member2","Member3"]} # return{"members":["Member1","Member2","Member3"]}
>>>>>>> 0b5e2681184a215a830217fb15fc4be882e06e8c
# zapytanie o regresje logistyczną na podstawie pozycji piłki # zapytanie o regresje logistyczną na podstawie pozycji piłki