Fix contest time bug
This commit is contained in:
parent
126ed83ee5
commit
09e01d620e
4 changed files with 9 additions and 7 deletions
7
templates/contest/contest-datetime-js.html
Normal file
7
templates/contest/contest-datetime-js.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
|
$('.time-remaining').each(function () {
|
||||||
|
count_down($(this));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
|
@ -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('') }}&iso=
|
<a href="https://www.timeanddate.com/worldclock/fixedtime.html?msg={{ contest.name|urlquote('') }}&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">
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue