Fix some issues + last stand

Signed-off-by: Josef Fröhle <github@josef-froehle.de>
This commit is contained in:
2020-06-25 14:57:42 +02:00
parent 4a2526d691
commit 63024ffe8f
22 changed files with 1977 additions and 590 deletions

View File

@@ -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';