diff --git a/includes/navigation.php b/includes/navigation.php index e3aef31..0ceb42b 100644 --- a/includes/navigation.php +++ b/includes/navigation.php @@ -9,10 +9,9 @@ if ($host == 'dev.dtch.online') { Home diff --git a/includes/styles_mobile.css b/includes/styles_mobile.css index fafd40a..810ed63 100644 --- a/includes/styles_mobile.css +++ b/includes/styles_mobile.css @@ -28,8 +28,13 @@ body { font-size: 14px; } -th:nth-child(4), td:nth-child(4), th:nth-child(9), td:nth-child(9) { - display: none; +th:nth-child(1), td:nth-child(1), /* Player */ +th:nth-child(2), td:nth-child(2), /* winrato */ +th:nth-child(3), td:nth-child(3), /* win% */ +th:nth-child(4), td:nth-child(4), /* kdh% */ +th:nth-child(8), td:nth-child(8) /* matches */ +{ + display: table-cell; } header .banner { diff --git a/last_stats.php b/last_stats.php index b0d3865..14d7c3c 100644 --- a/last_stats.php +++ b/last_stats.php @@ -54,8 +54,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi echo ""; echo " - + @@ -135,8 +135,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi echo " - + diff --git a/topstats.php b/topstats.php index e5d9612..45c67f6 100644 --- a/topstats.php +++ b/topstats.php @@ -1,6 +1,6 @@ @@ -31,10 +31,10 @@ include './includes/header.php';
"; - // Displaying top 10 comparisons for each attribute + // Displaying top 20 comparisons for each attribute $attributes = ['wins','top10s','kills','dBNOs','damageDealt','headshotKills','roadKills','teamKills','roundMostKills']; foreach ($attributes as $attribute) { - echo "

Top 10 $attribute

"; + echo "

Top 20 $attribute

"; uasort($players_data[$selected_mode], function ($a, $b) use ($attribute) { $account_id_a = array_key_first($a); $account_id_b = array_key_first($b); @@ -45,7 +45,7 @@ include './includes/header.php'; echo ""; $count = 0; foreach ($players_data[$selected_mode] as $player_name => $player_details) { - if ($count++ >= 10) break; // Limit to top 10 players + if ($count++ >= 20) break; // Limit to top 20 players $account_id = array_key_first($player_details); echo ""; } diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index b592977..85b1ea7 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -227,8 +227,8 @@ function Get-MatchStatsPlayer { kills = $kills humankills = $humankills matches = $player_matches - KD_H = $humankills / ($deaths + $alives) # KD_Human calculated per match (kills / (deaths + alives)) - KD_ALL = $kills / ($deaths + $alives) # KD_ALL calculated per match (kills / (deaths + alives)) + KD_H = $humankills / $deaths + KD_ALL = $kills / $deaths winratio = $winratio wins = $player_wins dbno = $dbno
PlayerAHD Win %AHD K/D Human Human Kills K/D All
$player_name$ahd $winratio$ahd $KD_H $humankills $KD_ALL
Player$attribute
$player_name{$player_details[$account_id][$attribute]}