Files
jeopardy/templates/main_board.html
2024-08-13 14:38:31 +02:00

26 lines
744 B
HTML

<html>
<head>
<title>Jeopardy</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<table>
<tr>
{% for cat in categories: %}
<th>{{ cat }}</th>
{% endfor %}
</tr>
{% for i in range(1,7) %}
<tr>
{% for j in range(0,6): %}
<td>
{% if draw_cells[(i-1)*6+j] %}
<a href="/question?question={{ (i-1) * 6 + j }}&game_state={{ game_state }}">${{ i ** 4 + 2*(i ** 3) + 7*(i**2) + i * 33 + ((j+2)%3)**2 + j * 87 - (j+3)**2 - (j+2)**3 + i*((j + 2)%3) + 24 }}</a>
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</body>
</html>