2017-07-16 12:23:35 +00:00
|
|
|
{% extends 'program_base.html' %}
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2017-04-14 21:29:30 +00:00
|
|
|
{% load commonmark %}
|
2017-04-15 17:35:18 +00:00
|
|
|
{% load staticfiles %}
|
|
|
|
|
2017-07-23 09:31:22 +00:00
|
|
|
{% block extra_head %}
|
|
|
|
<noscript>
|
2017-07-27 21:21:16 +00:00
|
|
|
<meta http-equiv="refresh" content="0; url={% url "noscript_schedule_index" camp_slug=camp.slug %}" />
|
2017-07-23 09:31:22 +00:00
|
|
|
</noscript>
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-07-16 12:23:35 +00:00
|
|
|
{% block program_content %}
|
2017-04-20 23:34:22 +00:00
|
|
|
|
2017-07-23 09:31:22 +00:00
|
|
|
<noscript>
|
|
|
|
<div class="row">
|
|
|
|
<p>
|
|
|
|
No javascript? Don't worry, we have a HTML only version of the schedule! Redirecting you there now.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="{% url "noscript_schedule_index" camp_slug=camp.slug %}">
|
|
|
|
Click here if you are not redirected.
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</noscript>
|
|
|
|
|
2017-04-20 23:34:22 +00:00
|
|
|
<div id="schedule-container"></div>
|
|
|
|
|
2017-07-16 12:23:35 +00:00
|
|
|
<script src="{% static "js/elm_based_schedule.js" %}"></script>
|
2017-04-19 21:15:06 +00:00
|
|
|
|
2017-04-26 22:23:03 +00:00
|
|
|
<script>
|
2017-07-16 12:23:35 +00:00
|
|
|
var container = document.getElementById('schedule-container');
|
2017-07-17 09:25:57 +00:00
|
|
|
var elm_app = Elm.Main.embed(
|
2017-07-16 12:23:35 +00:00
|
|
|
container,
|
2017-04-26 22:23:03 +00:00
|
|
|
{ 'schedule_timeslot_length_minutes': Number('{{ schedule_timeslot_length_minutes }}')
|
|
|
|
, 'schedule_midnight_offset_hours': Number('{{ schedule_midnight_offset_hours }}')
|
2017-07-08 21:00:54 +00:00
|
|
|
, 'ics_button_href': "{% url 'ics_view' camp_slug=camp.slug %}"
|
2017-07-16 12:23:35 +00:00
|
|
|
, 'camp_slug': "{{ camp.slug }}"
|
2017-07-20 09:18:14 +00:00
|
|
|
, 'websocket_server': "ws://" + window.location.host + "/schedule/"
|
2017-04-26 22:23:03 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
2017-07-16 12:23:35 +00:00
|
|
|
{% endblock %}
|