Fix some issues + last stand
Signed-off-by: Josef Fröhle <github@josef-froehle.de>
This commit is contained in:
@@ -12,18 +12,22 @@ var toe = new Vue({
|
||||
matches: []
|
||||
},
|
||||
methods: {
|
||||
getEnemyTeam: function (team) {
|
||||
var titans = '';
|
||||
for (titan in team) titans += titan;
|
||||
findInTeam: function (team, seachTeam) {
|
||||
return seachTeam.every(function (v) {
|
||||
return team.includes(v)
|
||||
})
|
||||
},
|
||||
|
||||
getEnemyTeam: function (team) {
|
||||
var titans = [];
|
||||
for (titan in team) titans.push(titan);
|
||||
return titans;
|
||||
},
|
||||
|
||||
getSelectedTitans: function () {
|
||||
var titans = '';
|
||||
var titans = [];
|
||||
var selectedTeam = this.sortedSelectedTitans;
|
||||
for (titan in selectedTeam) titans += selectedTeam[titan];
|
||||
|
||||
for (titan in selectedTeam) titans.push(selectedTeam[titan])
|
||||
return titans;
|
||||
},
|
||||
|
||||
@@ -40,7 +44,7 @@ var toe = new Vue({
|
||||
humanDate: function (timestamp) {
|
||||
return new Date(timestamp * 1000).toLocaleString(undefined, { year: 'numeric', month: 'long', day: 'numeric' });
|
||||
},
|
||||
humanPlayer: function(id) {
|
||||
humanPlayer: function (id) {
|
||||
var player;
|
||||
|
||||
if (id == 7737454) player = 'Zero';
|
||||
|
||||
Reference in New Issue
Block a user