mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 15:04:45 +00:00
bugfix 10, now with template literals
This commit is contained in:
parent
3ec4de4fb1
commit
b2bb2df3f0
@ -95,32 +95,32 @@ function changeTeam(teamNum) {
|
|||||||
if (mi['far-blue']['series-' + (j + 1).toString()] != null) {
|
if (mi['far-blue']['series-' + (j + 1).toString()] != null) {
|
||||||
fb.push(mi['far-blue']['series-' + (j + 1).toString()]);
|
fb.push(mi['far-blue']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
fb.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'far-blue')'>open</span>");
|
fb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-blue')'>open</span>`);
|
||||||
}
|
}
|
||||||
if (mi['mid-blue']['series-' + (j + 1).toString()] != null) {
|
if (mi['mid-blue']['series-' + (j + 1).toString()] != null) {
|
||||||
mb.push(mi['mid-blue']['series-' + (j + 1).toString()]);
|
mb.push(mi['mid-blue']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
mb.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'mid-blue')'>open</span>");
|
mb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-blue')'>open</span>`);
|
||||||
}
|
}
|
||||||
if (mi['near-blue']['series-' + (j + 1).toString()] != null) {
|
if (mi['near-blue']['series-' + (j + 1).toString()] != null) {
|
||||||
nb.push(mi['near-blue']['series-' + (j + 1).toString()]);
|
nb.push(mi['near-blue']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
nb.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'near-blue')'>open</span>");
|
nb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-blue')'>open</span>`);
|
||||||
}
|
}
|
||||||
if (mi['far-red']['series-' + (j + 1).toString()] != null) {
|
if (mi['far-red']['series-' + (j + 1).toString()] != null) {
|
||||||
fr.push(mi['far-red']['series-' + (j + 1).toString()]);
|
fr.push(mi['far-red']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
fr.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'far-red')'>open</span>");
|
fr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-red')'>open</span>`);
|
||||||
}
|
}
|
||||||
if (mi['mid-red']['series-' + (j + 1).toString()] != null) {
|
if (mi['mid-red']['series-' + (j + 1).toString()] != null) {
|
||||||
mr.push(mi['mid-red']['series-' + (j + 1).toString()]);
|
mr.push(mi['mid-red']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
mr.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'mid-red')'>open</span>");
|
mr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-red')'>open</span>`);
|
||||||
}
|
}
|
||||||
if (mi['near-red']['series-' + (j + 1).toString()] != null) {
|
if (mi['near-red']['series-' + (j + 1).toString()] != null) {
|
||||||
nr.push(mi['near-red']['series-' + (j + 1).toString()]);
|
nr.push(mi['near-red']['series-' + (j + 1).toString()]);
|
||||||
} else {
|
} else {
|
||||||
nr.push("<span onclick='addMatch(" + (i + 1).toString() + "," + (j + 1).toString() + ",'near-red')'>open</span>")
|
nr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-red')'>open</span>`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var outstr = "";
|
var outstr = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user