Compare commits

...

2 commits

Author SHA1 Message Date
Ronan
0a1ef77adc positive when score=0 2021-08-10 11:23:09 +02:00
Ronan
8010278359 Fixed info in log 2021-08-10 11:18:44 +02:00

View file

@ -12,7 +12,6 @@ function nameTeam(team){
return "Boomiflore";
}
function showScores(team) {
console.log(team);
$.alert({
title: "<span id='title_" + team + "'>" + nameTeam(team) + "</span>",
content: function () {
@ -31,7 +30,7 @@ function showScores(team) {
$entry.attr('id', 'entry_' + i);
$entry.find('.score-entry-text').text(data[i]['text']);
$entry.find('.score-entry-points').text(data[i]['points']);
if (parseInt(data[i]['points']) > 0)
if (parseInt(data[i]['points']) >= 0)
$entry.addClass('positive');
else
$entry.addClass('negative');