diff --git a/includes/navigation.php b/includes/navigation.php index e3aef31..fc47d81 100644 --- a/includes/navigation.php +++ b/includes/navigation.php @@ -11,7 +11,6 @@ if ($host == 'dev.dtch.online') { 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..17642f1 100644 --- a/last_stats.php +++ b/last_stats.php @@ -135,8 +135,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi echo " $player_name - $ahd $winratio + $ahd $KD_H $humankills $KD_ALL 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