bornhack-website/src/program/templates/schedule_overview.html

26 lines
719 B
HTML
Raw Normal View History

{% extends 'program_base.html' %}
{% load commonmark %}
{% load staticfiles %}
{% block program_content %}
2017-04-20 23:34:22 +00:00
<div id="schedule-container"></div>
<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>
var container = document.getElementById('schedule-container');
var elm_app = Elm.Main.embed(
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 %}"
, '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>
{% endblock %}