Colorize all guesses if points are awarded
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 37s

This commit is contained in:
2024-02-19 23:44:14 +01:00
parent 7f82797066
commit 455637ca46
4 changed files with 22 additions and 11 deletions

View File

@ -96,6 +96,16 @@
{% if active_page == page %}</u>{% endif %}</a>
{% endmacro %}
{% macro pxx_guess_colorization(driver_abbr='', result=none) %}
{% if driver_abbr == result.pxx(0).abbr %}text-success fw-bold{% endif %}
{% if driver_abbr == result.pxx(1).abbr %}text-warning fw-bold{% endif %}
{% if driver_abbr == result.pxx(2).abbr %}text-danger fw-bold{% endif %}
{% if driver_abbr == result.pxx(3).abbr %}fw-bold{% endif %}
{% if driver_abbr == result.pxx(-1).abbr %}text-warning fw-bold{% endif %}
{% if driver_abbr == result.pxx(-2).abbr %}text-danger fw-bold{% endif %}
{% if driver_abbr == result.pxx(-3).abbr %}fw-bold{% endif %}
{% endmacro %}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">