Fix contest time bug

This commit is contained in:
cuom1999 2023-11-26 18:05:19 -06:00
parent 126ed83ee5
commit 09e01d620e
4 changed files with 9 additions and 7 deletions

View file

@ -0,0 +1,7 @@
<script type="text/javascript">
$(document).ready(function () {
$('.time-remaining').each(function () {
count_down($(this));
});
});
</script>

View file

@ -1,10 +1,3 @@
<script type="text/javascript">
$(document).ready(function () {
$('.time-remaining').each(function () {
count_down($(this));
});
});
</script>
<div id="banner"> <div id="banner">
<a href="https://www.timeanddate.com/worldclock/fixedtime.html?msg={{ contest.name|urlquote('') }}&amp;iso= <a href="https://www.timeanddate.com/worldclock/fixedtime.html?msg={{ contest.name|urlquote('') }}&amp;iso=
{{- contest.start_time|utc|date('Y-m-d\TH:i:s') }}" class="date"> {{- contest.start_time|utc|date('Y-m-d\TH:i:s') }}" class="date">

View file

@ -14,6 +14,7 @@
{% include "contest/media-js.html" %} {% include "contest/media-js.html" %}
{% include "comments/media-js.html" %} {% include "comments/media-js.html" %}
{% include "actionbar/media-js.html" %} {% include "actionbar/media-js.html" %}
{% include "contest/contest-datetime-js.html" %}
{% endblock %} {% endblock %}
{% block two_col_media %} {% block two_col_media %}

View file

@ -9,6 +9,7 @@
{% endblock %} {% endblock %}
{% block users_js_media %} {% block users_js_media %}
{% include "contest/contest-datetime-js.html" %}
{% if can_edit %} {% if can_edit %}
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {