Defense: sync admin/student timers from server every 10s; toasts with ready reason; live eye counter

This commit is contained in:
2026-10-02 01:21:32 +03:00
parent fba4e013e5
commit b94538cb7e
13 changed files with 371 additions and 45 deletions

View File

@@ -94,7 +94,7 @@
</form>
</th:block>
<div th:if="${defense != null and defense.status == 'started'}">
<p class="text-sm defense-timer" th:data-seconds="${defense.secondsLeft}"></p>
<p class="text-sm defense-timer" th:attr="data-seconds=${defense.secondsLeft},data-lab=${lab.id}"></p>
<h3 class="group-title">Ваше индивидуальное задание</h3>
<div class="md-body" th:utext="${defense.assignmentHtml}"></div>
<form class="mt-4" th:action="'/student/defenses/' + ${defense.id} + '/finish?labId=' + ${lab.id}" method="post">