From bff93e7d1c427b3ab1fce09b8ec5c6b5d7ca91f7 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sun, 12 Jul 2020 12:25:39 +0200 Subject: [PATCH] update extendedPlayerProfile text content --- dist/extendedPlayerProfile.js | 4 ++-- src/extendedPlayerProfile.js | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/extendedPlayerProfile.js b/dist/extendedPlayerProfile.js index 6aeb166..910d748 100644 --- a/dist/extendedPlayerProfile.js +++ b/dist/extendedPlayerProfile.js @@ -522,7 +522,7 @@ const renderPlayerServers = player => { playerServers.id = 'playerServers'; playerServers.classList.add('vis'); playerServers.width = '100%'; - playerServers.innerHTML = "\n \n \n \n Player's Servers\n \n \n \n \n \n \n \n "; + playerServers.innerHTML = "\n \n \n \n Player's servers\n \n \n \n \n \n \n \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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Today's stats\n
\n Points\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.points).toLocaleString(), "\n
\n Rank\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rank), "\n
\n Villages\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.villages).toLocaleString(), "\n
\n ODA\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreAtt).toLocaleString(), "\n
\n Rank (ODA)\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankAtt), "\n
\n ODD\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreDef).toLocaleString(), "\n
\n Rank (ODD)\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankDef), "\n
\n ODS\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreSup).toLocaleString(), "\n
\n Rank (ODS)\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankSup), "\n
\n OD\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreTotal).toLocaleString(), "\n
\n Rank (OD)\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankTotal), "\n
\n "); + todaysStats.innerHTML = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Today's stats\n
\n Points:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.points).toLocaleString(), "\n
\n Rank:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rank), "\n
\n Villages:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.villages).toLocaleString(), "\n
\n ODA:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreAtt).toLocaleString(), "\n
\n Rank ODA:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankAtt), "\n
\n ODD:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreDef).toLocaleString(), "\n
\n Rank ODD:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankDef), "\n
\n ODS:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreSup).toLocaleString(), "\n
\n Rank ODS:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankSup), "\n
\n OD:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.scoreTotal).toLocaleString(), "\n
\n Rank OD:\n 0 ? statIncreaseStyle : statDecreaseStyle, "\">\n ").concat(Math.abs(stats.rankTotal), "\n
\n "); }; const renderInADayRanks = player => { diff --git a/src/extendedPlayerProfile.js b/src/extendedPlayerProfile.js index b7af1b5..33956d2 100644 --- a/src/extendedPlayerProfile.js +++ b/src/extendedPlayerProfile.js @@ -212,7 +212,7 @@ const renderPlayerServers = (player) => { - Player's Servers + Player's servers @@ -304,7 +304,7 @@ const renderTodaysStats = (stats) => { - Points + Points: 0 ? statIncreaseStyle : statDecreaseStyle @@ -324,7 +324,7 @@ const renderTodaysStats = (stats) => { - Villages + Villages: 0 ? statIncreaseStyle : statDecreaseStyle @@ -344,7 +344,7 @@ const renderTodaysStats = (stats) => { - Rank (ODA) + Rank ODA: 0 ? statIncreaseStyle : statDecreaseStyle @@ -364,7 +364,7 @@ const renderTodaysStats = (stats) => { - Rank (ODD) + Rank ODD: 0 ? statIncreaseStyle : statDecreaseStyle @@ -384,7 +384,7 @@ const renderTodaysStats = (stats) => { - Rank (ODS) + Rank ODS: 0 ? statIncreaseStyle : statDecreaseStyle @@ -404,7 +404,7 @@ const renderTodaysStats = (stats) => { - Rank (OD) + Rank OD: