diff --git a/assets/html/game/sm5.html b/assets/html/game/sm5.html index a774a14..895e47e 100644 --- a/assets/html/game/sm5.html +++ b/assets/html/game/sm5.html @@ -78,16 +78,6 @@ max-width: 30%; } - @media screen and (max-width: 1200px) { - table tr td:nth-child(n+11) { - display: none; - } - - table tr th:nth-child(n+11) { - display: none; - } - } - @media screen and (max-width: 991px) { .userlist { background: none; @@ -106,14 +96,54 @@ table { table-layout: auto; + width: 100%; } - table tr td:nth-child(n+6) { - display: none; + tr:nth-child(even) > td:nth-child(1) { + background-color: #252525; } - - table tr th:nth-child(n+6) { - display: none; + + tr:nth-child(odd) > td:nth-child(1) { + background-color: #000000; + } + + tr:nth-child(even) > td:nth-child(2) { + background-color: #252525; + } + + tr:nth-child(odd) > td:nth-child(2) { + background-color: #000000; + } + + tr > th:nth-child(1) { + background-color: #000000; + } + + tr > th:nth-child(2) { + background-color: #000000; + } + + .fixed-column { + position: sticky; + z-index: 1; + left: 0px; + } + + .second-fixed-column { + position: sticky; + z-index: 1; + left: 75px; + } + + .outer-scrolling-table { + width: 100%; + } + + .inner-scrolling-table { + position: relative; + overflow: auto; + border: 1px solid black; + white-space: nowrap; } .team { @@ -130,6 +160,7 @@ .role { width: 75px; + min-width: 75px; } .desktop_notif { @@ -246,111 +277,119 @@
Role |
- Codename |
- {% if game.ranked %}
- Rating |
- {% endif %}
- Score |
- Lives |
- Shots |
- Accuracy |
- K/D |
- Missiled Other |
- Missiled |
- Shot Team |
- Missiled Team |
- Medic Hits |
- MVP Points |
- {% for entity in game.entity_starts %}
- {% if entity.type == "player" and entity.team.index == 0 %}
- {% set entity_end = get_entity_end(entity) %}
- {% set sm5_stats = get_sm5stats(entity) %}
-
- ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- {% if entity.entity_id.startswith("@") %} - | {{ entity.name }} |
- {% else %}
- {{ entity.name }} |
- {% endif %}
- {% if entity_end.current_rating_mu and game.ranked %}
- {{ (entity_end.current_rating_mu - 3 * entity_end.current_rating_sigma)|round(2) }} | +
Role |
+ Codename |
+ {% if game.ranked %}
+ Rating |
+ {% endif %}
+ Score |
+ Lives |
+ Shots |
+ Accuracy |
+ K/D |
+ Missiled Other |
+ Missiled |
+ Shot Team |
+ Missiled Team |
+ Medic Hits |
+ MVP Points |
+ {% for entity in game.entity_starts %}
+ {% if entity.type == "player" and entity.team.index == 0 %}
+ {% set entity_end = get_entity_end(entity) %}
+ {% set sm5_stats = get_sm5stats(entity) %}
+
+ ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ {% if entity.entity_id.startswith("@") %} + | {{ entity.name }} |
+ {% else %}
+ {{ entity.name }} |
+ {% endif %}
+ {% if entity_end.current_rating_mu and game.ranked %}
+ {{ (entity_end.current_rating_mu - 3 * entity_end.current_rating_sigma)|round(2) }} | + {% endif %} + {% if entity.entity_id.startswith("@") %} +{{ entity_end.score }} | + {% else %} +{{ entity_end.score }} | + {% endif %} +{{ sm5_stats.lives_left }} |
+ {{ sm5_stats.shots_left }} |
+ {{ sm5_stats.shots_fired and "%.2f" % (((sm5_stats.shots_hit/sm5_stats.shots_fired)*100)|round(2)) }}% |
+ {{ sm5_stats.times_zapped and "%.2f" % ((sm5_stats.shot_opponent/sm5_stats.times_zapped)|round(2)) }} |
+ {{ sm5_stats.missiled_opponent }} |
+ {{ sm5_stats.times_missiled }} |
+ {{ sm5_stats.shot_team }} |
+ {{ sm5_stats.missiled_team }} |
+ {{ sm5_stats.medic_hits }} |
+ {{ "%.2f" % (sm5_stats.mvp_points()|round(2)) }} |
+ {{ entity_end.score }} | - {% else %} -{{ entity_end.score }} | - {% endif %} -{{ sm5_stats.lives_left }} |
- {{ sm5_stats.shots_left }} |
- {{ sm5_stats.shots_fired and "%.2f" % (((sm5_stats.shots_hit/sm5_stats.shots_fired)*100)|round(2)) }}% |
- {{ sm5_stats.times_zapped and "%.2f" % ((sm5_stats.shot_opponent/sm5_stats.times_zapped)|round(2)) }} |
- {{ sm5_stats.missiled_opponent }} |
- {{ sm5_stats.times_missiled }} |
- {{ sm5_stats.shot_team }} |
- {{ sm5_stats.missiled_team }} |
- {{ sm5_stats.medic_hits }} |
- {{ "%.2f" % (sm5_stats.mvp_points()|round(2)) }} |
-
- {% endif %}
- {% endfor %}
-
Role |
- Codename |
- {% if game.ranked %}
- Rating |
- {% endif %}
- Score |
- Lives |
- Shots |
- Accuracy |
- K/D |
- Missiled Other |
- Missiled |
- Shot Team |
- Missiled Team |
- Medic Hits |
- MVP Points |
- {% for entity in game.entity_starts %}
- {% if entity.type == "player" and entity.team.index == 1 %}
- {% set entity_end = get_entity_end(entity) %}
- {% set sm5_stats = get_sm5stats(entity) %}
- ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- {% if entity.entity_id.startswith("@") %} - | {{ entity.name }} |
- {% else %}
- {{ entity.name }} |
- {% endif %}
- {% if entity_end.current_rating_mu and game.ranked %}
- {{ (entity_end.current_rating_mu - 3 * entity_end.current_rating_sigma)|round(2) }} | - {% endif %} - {% if entity.entity_id.startswith("@") %} -{{ entity_end.score }} | - {% else %} -{{ entity_end.score }} | +
Role |
+ Codename |
+ {% if game.ranked %}
+ Rating |
+ {% endif %}
+ Score |
+ Lives |
+ Shots |
+ Accuracy |
+ K/D |
+ Missiled Other |
+ Missiled |
+ Shot Team |
+ Missiled Team |
+ Medic Hits |
+ MVP Points |
+ {% for entity in game.entity_starts %}
+ {% if entity.type == "player" and entity.team.index == 1 %}
+ {% set entity_end = get_entity_end(entity) %}
+ {% set sm5_stats = get_sm5stats(entity) %}
+ ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ {% if entity.entity_id.startswith("@") %} + | {{ entity.name }} |
+ {% else %}
+ {{ entity.name }} |
+ {% endif %}
+ {% if entity_end.current_rating_mu and game.ranked %}
+ {{ (entity_end.current_rating_mu - 3 * entity_end.current_rating_sigma)|round(2) }} | + {% endif %} + {% if entity.entity_id.startswith("@") %} +{{ entity_end.score }} | + {% else %} +{{ entity_end.score }} | + {% endif %} +{{ sm5_stats.lives_left }} |
+ {{ sm5_stats.shots_left }} |
+ {{ sm5_stats.shots_fired and "%.2f" % (((sm5_stats.shots_hit/sm5_stats.shots_fired)*100)|round(2)) }}% |
+ {{ sm5_stats.times_zapped and "%.2f" % ((sm5_stats.shot_opponent/sm5_stats.times_zapped)|round(2)) }} |
+ {{ sm5_stats.missiled_opponent }} |
+ {{ sm5_stats.times_missiled }} |
+ {{ sm5_stats.shot_team }} |
+ {{ sm5_stats.missiled_team }} |
+ {{ sm5_stats.medic_hits }} |
+ {{ "%.2f" % (sm5_stats.mvp_points()|round(2)) }} |
+ {{ sm5_stats.lives_left }} |
- {{ sm5_stats.shots_left }} |
- {{ sm5_stats.shots_fired and "%.2f" % (((sm5_stats.shots_hit/sm5_stats.shots_fired)*100)|round(2)) }}% |
- {{ sm5_stats.times_zapped and "%.2f" % ((sm5_stats.shot_opponent/sm5_stats.times_zapped)|round(2)) }} |
- {{ sm5_stats.missiled_opponent }} |
- {{ sm5_stats.times_missiled }} |
- {{ sm5_stats.shot_team }} |
- {{ sm5_stats.missiled_team }} |
- {{ sm5_stats.medic_hits }} |
- {{ "%.2f" % (sm5_stats.mvp_points()|round(2)) }} |
-
- {% endif %}
- {% endfor %}
-