scroll play to center of view when searched

This commit is contained in:
Insugeny_athq
2019-06-13 22:38:12 +02:00
parent c9f6cccc0a
commit 60d483b4f7
3 changed files with 17 additions and 10 deletions

View File

@@ -29,18 +29,12 @@
{% for player in playerList %}
{% set count = loop.index + start %}
{% if count % 2 == 0 %}
<div
{% if searchName == player.name %}
style="background: yellow;"
{% endif %}
class=line-even>{{ player.getLineHTML(count) }}
<div class="line-even {% if searchName == player.name %}targetPlayer{% endif %}">
{{ player.getLineHTML(count) }}
</div>
{% else %}
<div
{% if searchName == player.name %}
style="background: yellow;"
{% endif %}
class=line-odd>{{ player.getLineHTML(count) }}
<div class="line-odd {% if searchName == player.name %}targetPlayer{% endif %}">
{{ player.getLineHTML(count) }}
</div>
{% endif %}
{% endfor %}