OpenSlides/openslides/mediafile/templates/mediafile/presentation_slide.html

16 lines
625 B
HTML

{% load i18n %}
{% load static %}
<script src="{% static 'javascript/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 'javascript/pdf.worker.js' %}";
</script>
<script src="{% static 'javascript/pdf_presenter.js' %}" type="text/javascript"></script>
<div class="canvas-container">
<canvas id="presentation" class="{% if fullscreen %}fullscreen{% endif %}"></canvas>
</div>