|
|
|
@ -58,9 +58,9 @@ |
|
|
|
|
|
|
|
|
|
var _ui2 = _interopRequireDefault(_ui); |
|
|
|
|
|
|
|
|
|
var _sorter = __webpack_require__(3); |
|
|
|
|
var _hotfixes = __webpack_require__(13); |
|
|
|
|
|
|
|
|
|
var _sorter2 = _interopRequireDefault(_sorter); |
|
|
|
|
var _hotfixes2 = _interopRequireDefault(_hotfixes); |
|
|
|
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
|
|
|
|
|
|
|
|
@ -166,6 +166,10 @@ |
|
|
|
|
main.json = JSON.parse(strData); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
patchErrors: function patchErrors() { |
|
|
|
|
main.json.tourneys['1934'] = _hotfixes2.default.patch1934(main.json.tourneys['1934']); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getState: function getState() { |
|
|
|
|
var params = window.location.href.split('?')[1]; |
|
|
|
|
|
|
|
|
@ -209,7 +213,7 @@ |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
main.fetch('worldcup.json').then(main.initJSON).then(main.initState).then(main.generateUI).then(main.updateUI); |
|
|
|
|
main.fetch('worldcup.json').then(main.initJSON).then(main.patchErrors).then(main.initState).then(main.generateUI).then(main.updateUI); |
|
|
|
|
|
|
|
|
|
/***/ }, |
|
|
|
|
/* 1 */ |
|
|
|
@ -247,17 +251,17 @@ |
|
|
|
|
var s1 = matrix[i1][i2] || 0; |
|
|
|
|
var s2 = matrix[i2][i1] || 0; |
|
|
|
|
|
|
|
|
|
if (g.sp1) { |
|
|
|
|
if (g.sp1 !== null) { |
|
|
|
|
s1 += g.sp1; |
|
|
|
|
} else if (g.se1) { |
|
|
|
|
} else if (g.se1 !== null) { |
|
|
|
|
s1 += g.se1; |
|
|
|
|
} else { |
|
|
|
|
s1 += g.s1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (g.sp2) { |
|
|
|
|
if (g.sp2 !== null) { |
|
|
|
|
s2 += g.sp2; |
|
|
|
|
} else if (g.se2) { |
|
|
|
|
} else if (g.se2 !== null) { |
|
|
|
|
s2 += g.se2; |
|
|
|
|
} else { |
|
|
|
|
s2 += g.s2; |
|
|
|
@ -509,13 +513,13 @@ |
|
|
|
|
var s1 = game.t1 === t1.tId ? game.s1 : game.s2; |
|
|
|
|
var s2 = game.t2 === t2.tId ? game.s2 : game.s1; |
|
|
|
|
|
|
|
|
|
if (game.sp1 && game.sp2) { |
|
|
|
|
if (game.sp1 !== null && game.sp2 !== null) { |
|
|
|
|
s1 = game.t1 === t1.tId ? game.sp1 : game.sp2; |
|
|
|
|
s2 = game.t2 === t2.tId ? game.sp2 : game.sp1; |
|
|
|
|
|
|
|
|
|
s1 += " (Penalties)"; |
|
|
|
|
s2 += " (Penalties)"; |
|
|
|
|
} else if (game.se1 && game.se2) { |
|
|
|
|
} else if (game.se1 !== null && game.se2 !== null) { |
|
|
|
|
s1 = game.t1 === t1.tId ? game.se1 : game.se2; |
|
|
|
|
s2 = game.t2 === t2.tId ? game.se2 : game.se1; |
|
|
|
|
|
|
|
|
@ -1042,5 +1046,81 @@ |
|
|
|
|
|
|
|
|
|
// removed by extract-text-webpack-plugin
|
|
|
|
|
|
|
|
|
|
/***/ }, |
|
|
|
|
/* 13 */ |
|
|
|
|
/***/ function(module, exports) { |
|
|
|
|
|
|
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
|
|
|
value: true |
|
|
|
|
}); |
|
|
|
|
var hotfixes = { |
|
|
|
|
patch1934: function patch1934(data) { |
|
|
|
|
data.games.forEach(function (g) { |
|
|
|
|
if (g.t1 === 149 && g.t2 === 2 && g.rId === 13) { |
|
|
|
|
g.s1 = 4; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 223 && g.t2 === 146 && g.rId === 13) { |
|
|
|
|
g.s1 = 2; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 134 && g.t2 === 223 && g.rId === 18) { |
|
|
|
|
g.s1 = 2; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 223 && g.t2 === 153 && g.rId === 14) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 223 && g.t2 === 127 && g.rId === 16) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 134 && g.t2 === 129 && g.rId === 14) { |
|
|
|
|
g.s1 = 1; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 134 && g.t2 === 191 && g.rId === 13) { |
|
|
|
|
g.s1 = 7; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 153 && g.t2 === 137 && g.rId === 13) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 129 && g.t2 === 211 && g.rId === 13) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 127 && g.t2 === 125 && g.rId === 13) { |
|
|
|
|
g.s1 = 5; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 124 && g.t2 === 131 && g.rId === 13) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 147 && g.t2 === 210 && g.rId === 13) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 127 && g.t2 === 124 && g.rId === 17) { |
|
|
|
|
g.s1 = 3; |
|
|
|
|
g.s2 = 2; |
|
|
|
|
} |
|
|
|
|
if (g.t1 === 124 && g.t2 === 149 && g.rId === 14) { |
|
|
|
|
g.s1 = 2; |
|
|
|
|
g.s2 = 1; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return data; |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
exports.default = hotfixes; |
|
|
|
|
|
|
|
|
|
/***/ } |
|
|
|
|
/******/ ]); |