{% load i18n %}
{% load static %}

<script src="{% static 'js/pdf.js' %}" type="text/javascript"></script>
<script type="text/javascript">
    projector['pdf_url'] = '{{ pdf.mediafile.url }}';
    projector['pdf_page_num'] = {{ page_num }};
    projector['pdf_fullscreen'] = {% if fullscreen %}true{% else %}false{% endif %};
    PDFJS.workerSrc = "{% static 'js/pdf.worker.js' %}";
</script>
<script src="{% static 'js/pdf_presenter.js' %}" type="text/javascript"></script>

<div class="canvas-container">
  <canvas id="presentation" class="{% if fullscreen %}fullscreen{% endif %}"></canvas>
</div>
