123456789101112131415161718192021222324252627282930313233343536373839 |
- {% extends 'base.html' %}
- {% load staticfiles %}
- {% block title %}
- Expe {{ expe_name }}
- {% endblock %}
- {% block content %}
-
- {% if request.session.expe_finished %}
- <h3>{{end_text}}</h3>
- <br />
- <p>You will be redirected in <span id="refreshTime">5</span> sec to home page</p>
- {% endif %}
- <!-- TODO : Load img from bitmap with javascript `loadImg.js` -->
- {% if not request.session.expe_finished %}
- <img id="expeImg" src="/{{img_merged_path}}" data-img="{{request.session.img_merged}}"/>
- {% endif %}
- {% block javascripts %}
- <script type="text/javascript">
- // Utils informations
- var host = window.location.host
- var pathname = window.location.pathname
- var baseUrl = location.protocol + "//" + host
- var baseExpeUrl = location.protocol + "//" + host + pathname
- // get access to django variables
- var BEGIN_EXPE = "{{request.session.expe_started}}"
- var END_EXPE = "{{request.session.expe_finished}}"
- </script>
- <script src="{% static "js/loadImg.js" %}"></script>
- <script src="{% static "js/keyEvents.js" %}"></script>
- {% endblock %}
- {% endblock %}
|