Browse Source

added score column on leader boards

visualizer2
edoardoo 10 years ago
parent
commit
5ae919c9d7
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      public/scripts/leaderBoard.js
  2. +1
    -1
      public/style/style.less

+ 2
- 2
public/scripts/leaderBoard.js View File

@ -35,11 +35,11 @@ function populateBoard(){
for (var i = 0; i < settings.length; i++) {
for (var j = settings[i].rankings.length - 1; j >= 0; j--) {
if(settings[i].rankings[j].teamId == 235){
results += "<tr><td>"+i+"</td><td>"+settings[i].rankings[j].rank+"</td></tr>"
results += "<tr><td>"+i+"</td><td>"+settings[i].rankings[j].rank+"</td><td>"+settings[i].rankings[j].score+"</td></tr>"
}
};
};
var results = "<table><thead><th>Setting</th><th>Placement</th></thead>"+results+"</table>";
var results = "<table><thead><th>Setting</th><th>Placement</th><th>Score</th></thead>"+results+"</table>";
listBoard.innerHTML = results;


+ 1
- 1
public/style/style.less View File

@ -112,7 +112,7 @@ audio{
table, tr{
width: 100%;
td{
width: 50%;
width: 100%/3;
text-align: center;
}
}


Loading…
Cancel
Save