Skip to content
Snippets Groups Projects
Commit a2b0ba77 authored by leo's avatar leo
Browse files

~new frontend, javascript client

parent aa91f1e0
Branches develop/v3
No related tags found
No related merge requests found
class Team{
constructor (name="", logo_path="", side){
this.name = name;
this.logo_path = logo_path;
this.errors = 0;
this.points = 0;
constructor (side){
this.name = "";
this.logo_path = "";
this.points_element = document.getElementById("points_" + side);
this.errors_element = document.getElementById("fails_" + side);
this.name_element = document.getElementById("team_" + side);
this.logo_element = document.getElementById("logo_" + side);
}
......@@ -19,7 +15,7 @@ class Team{
}
this.errors_element.innerHTML = fails_string;
this.name_element.innerHTML = this.name;
this.logo_element.src = "../../static/"
}
parse_from_json(json){
......@@ -65,6 +61,9 @@ class Round{
this.question = null;
this.error_right = 0;
this.error_left = 0;
this.points_element = document.getElementById("points_" + side);
this.errors_element = document.getElementById("fails_" + side);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment