Adding nameTeam function
This commit is contained in:
parent
71c578aea4
commit
0b8a6e3c19
1 changed files with 12 additions and 1 deletions
|
@ -5,10 +5,21 @@ let entryTemplate =
|
||||||
'<span class="score-entry-points"></span>' +
|
'<span class="score-entry-points"></span>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
|
function nameTeam(team){
|
||||||
|
if (team==='gli')
|
||||||
|
return "Glissefondor";
|
||||||
|
else if (team==='pek')
|
||||||
|
return "Peksentard";
|
||||||
|
else if (team==='boo')
|
||||||
|
return "Boomsouffle";
|
||||||
|
else
|
||||||
|
return "Verredaigle";
|
||||||
|
|
||||||
|
}
|
||||||
function showScores(team) {
|
function showScores(team) {
|
||||||
console.log(team);
|
console.log(team);
|
||||||
$.alert({
|
$.alert({
|
||||||
title: team,
|
title: nameTeam(team),
|
||||||
theme: 'supervan',
|
theme: 'supervan',
|
||||||
content: function () {
|
content: function () {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
|
Loading…
Reference in a new issue