update extendedPlayerProfile text content

This commit is contained in:
Dawid Wysokiński 2020-07-12 12:25:39 +02:00
parent d86747b1b4
commit bff93e7d1c
2 changed files with 14 additions and 14 deletions

View File

@ -522,7 +522,7 @@ const renderPlayerServers = player => {
playerServers.id = 'playerServers';
playerServers.classList.add('vis');
playerServers.width = '100%';
playerServers.innerHTML = "\n <tbody>\n <tr>\n <th>\n Player's Servers\n </th>\n </tr>\n <tr>\n <td>\n </td>\n </tr>\n </tbody>\n ";
playerServers.innerHTML = "\n <tbody>\n <tr>\n <th>\n Player's servers\n </th>\n </tr>\n <tr>\n <td>\n </td>\n </tr>\n </tbody>\n ";
otherElementsContainer.prepend(playerServers);
}
@ -560,7 +560,7 @@ const renderTodaysStats = stats => {
const statIncreaseStyle = 'color: #000; background-color: #0f0';
const statDecreaseStyle = 'color: #000; background-color: #f00';
todaysStats.innerHTML = "\n <table width=\"100%\" class=\"vis\">\n <tbody>\n <tr>\n <th colspan=\"2\">\n Today's stats\n </th>\n </tr>\n <tr>\n <td>\n Points\n </td>\n <td style=\"".concat(stats.points > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.points).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank\n </td>\n <td style=\"").concat(stats.rank > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rank), "\n </td>\n </tr>\n <tr>\n <td>\n Villages\n </td>\n <td style=\"").concat(stats.villages > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.villages).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n ODA\n </td>\n <td style=\"").concat(stats.scoreAtt > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreAtt).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank (ODA)\n </td>\n <td style=\"").concat(stats.rankAtt > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankAtt), "\n </td>\n </tr>\n <tr>\n <td>\n ODD\n </td>\n <td style=\"").concat(stats.scoreDef > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreDef).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank (ODD)\n </td>\n <td style=\"").concat(stats.rankDef > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankDef), "\n </td>\n </tr>\n <tr>\n <td>\n ODS\n </td>\n <td style=\"").concat(stats.scoreSup > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreSup).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank (ODS)\n </td>\n <td style=\"").concat(stats.rankSup > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankSup), "\n </td>\n </tr>\n <tr>\n <td>\n OD\n </td>\n <td style=\"").concat(stats.scoreTotal > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreTotal).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank (OD)\n </td>\n <td style=\"").concat(stats.rankTotal > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankTotal), "\n </td>\n </tr>\n </tbody>\n </table>\n ");
todaysStats.innerHTML = "\n <table width=\"100%\" class=\"vis\">\n <tbody>\n <tr>\n <th colspan=\"2\">\n Today's stats\n </th>\n </tr>\n <tr>\n <td>\n Points:\n </td>\n <td style=\"".concat(stats.points > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.points).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank:\n </td>\n <td style=\"").concat(stats.rank > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rank), "\n </td>\n </tr>\n <tr>\n <td>\n Villages:\n </td>\n <td style=\"").concat(stats.villages > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.villages).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n ODA:\n </td>\n <td style=\"").concat(stats.scoreAtt > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreAtt).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank ODA:\n </td>\n <td style=\"").concat(stats.rankAtt > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankAtt), "\n </td>\n </tr>\n <tr>\n <td>\n ODD:\n </td>\n <td style=\"").concat(stats.scoreDef > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreDef).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank ODD:\n </td>\n <td style=\"").concat(stats.rankDef > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankDef), "\n </td>\n </tr>\n <tr>\n <td>\n ODS:\n </td>\n <td style=\"").concat(stats.scoreSup > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreSup).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank ODS:\n </td>\n <td style=\"").concat(stats.rankSup > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankSup), "\n </td>\n </tr>\n <tr>\n <td>\n OD:\n </td>\n <td style=\"").concat(stats.scoreTotal > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreTotal).toLocaleString(), "\n </td>\n </tr>\n <tr>\n <td>\n Rank OD:\n </td>\n <td style=\"").concat(stats.rankTotal > 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankTotal), "\n </td>\n </tr>\n </tbody>\n </table>\n ");
};
const renderInADayRanks = player => {

View File

@ -212,7 +212,7 @@ const renderPlayerServers = (player) => {
<tbody>
<tr>
<th>
Player's Servers
Player's servers
</th>
</tr>
<tr>
@ -304,7 +304,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Points
Points:
</td>
<td style="${
stats.points > 0 ? statIncreaseStyle : statDecreaseStyle
@ -314,7 +314,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Rank
Rank:
</td>
<td style="${
stats.rank > 0 ? statIncreaseStyle : statDecreaseStyle
@ -324,7 +324,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Villages
Villages:
</td>
<td style="${
stats.villages > 0 ? statIncreaseStyle : statDecreaseStyle
@ -334,7 +334,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
ODA
ODA:
</td>
<td style="${
stats.scoreAtt > 0 ? statIncreaseStyle : statDecreaseStyle
@ -344,7 +344,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Rank (ODA)
Rank ODA:
</td>
<td style="${
stats.rankAtt > 0 ? statIncreaseStyle : statDecreaseStyle
@ -354,7 +354,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
ODD
ODD:
</td>
<td style="${
stats.scoreDef > 0 ? statIncreaseStyle : statDecreaseStyle
@ -364,7 +364,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Rank (ODD)
Rank ODD:
</td>
<td style="${
stats.rankDef > 0 ? statIncreaseStyle : statDecreaseStyle
@ -374,7 +374,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
ODS
ODS:
</td>
<td style="${
stats.scoreSup > 0 ? statIncreaseStyle : statDecreaseStyle
@ -384,7 +384,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Rank (ODS)
Rank ODS:
</td>
<td style="${
stats.rankSup > 0 ? statIncreaseStyle : statDecreaseStyle
@ -394,7 +394,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
OD
OD:
</td>
<td style="${
stats.scoreTotal > 0 ? statIncreaseStyle : statDecreaseStyle
@ -404,7 +404,7 @@ const renderTodaysStats = (stats) => {
</tr>
<tr>
<td>
Rank (OD)
Rank OD:
</td>
<td style="${
stats.rankTotal > 0 ? statIncreaseStyle : statDecreaseStyle