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

18 lines
692 B
HTML

{% 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>
<link href="{% static 'css/mediafile_projector.css' %}" type="text/css" rel="stylesheet">
<div class="canvas-container">
<canvas id="presentation" class="{% if fullscreen %}fullscreen{% endif %}"></canvas>
</div>