expe.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'base.html' %}
  2. {% load staticfiles %}
  3. {% block title %}
  4. Expe {{ expe_name }}
  5. {% endblock %}
  6. {% block content %}
  7. {% if request.session.expe_finished %}
  8. <h3>{{end_text}}</h3>
  9. <br />
  10. <p>You will be redirected in <span id="refreshTime">5</span> sec to home page</p>
  11. {% endif %}
  12. <!-- TODO : Load img from bitmap with javascript `loadImg.js` -->
  13. {% if not request.session.expe_finished %}
  14. {% if BASE != '' %}
  15. <img id="expeImg" src="/{{BASE}}/{{img_merged_path}}" data-img="{{request.session.img_merged}}"/>
  16. {% else %}
  17. <img id="expeImg" src="{{img_merged_path}}" data-img="{{request.session.img_merged}}"/>
  18. {% endif %}
  19. {% endif %}
  20. {% block javascripts %}
  21. <script type="text/javascript">
  22. // get access to django variables
  23. var BEGIN_EXPE = "{{request.session.expe_started}}"
  24. var END_EXPE = "{{request.session.expe_finished}}"
  25. </script>
  26. <script src="{% static "js/loadImg.js" %}"></script>
  27. <script src="{% static "js/keyEvents.js" %}"></script>
  28. {% endblock %}
  29. {% endblock %}