Modal Tabelle hinzugefügt

This commit is contained in:
R40fendt
2025-05-15 13:49:02 +02:00
parent 8406078468
commit 7984162cff
4 changed files with 57 additions and 23 deletions

View File

@@ -4,22 +4,21 @@ class User {
public kuerzel: string;
public points: number;
public id: number;
public hatgetippt: boolean;
constructor (username: string, kuerzel: string, points: number, id: number) {
this.username = username;
this.kuerzel = kuerzel;
this.points=points;
this.id=id;
}
hatgetippt():boolean{
let hatgetippt=false;
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+id),{
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+this.id),{
async: false,
success(response:string){
hatgetippt=response=="true";
success(response:boolean){
hatgetippt=response;
}
})
this.hatgetippt=hatgetippt;
});
return hatgetippt;
}
}