dlibrary/dlibrary/templates/viewer.html

52 lines
2.6 KiB
HTML
Raw Normal View History

2024-01-22 07:01:41 -05:00
{% extends 'base.html' %}
{% from 'utils.html' import index, root with context %}
2024-01-22 07:01:41 -05:00
{% block head %}
<link rel="stylesheet" type="text/css" href="{{ root() }}/static/viewer.css">
2024-01-22 07:01:41 -05:00
<script>
const WORK_ID = "{{ work['id'] }}";
const INDEX = "{{ index() }}";
2024-02-11 17:13:10 -05:00
const IMAGES = [
{% for filename in images %}
"{{ root() }}/images/{{ work['id'] }}/{{ filename }}",
{% endfor %}
];
2024-01-22 07:01:41 -05:00
</script>
<script src="{{ root() }}/static/viewer.js"></script>
2024-01-22 07:01:41 -05:00
{% endblock %}
{% block body %}
<div id="progress"></div>
2024-01-26 13:40:16 -05:00
<div id="page-num">
<table>
<tr><td id="current-page"></td></tr>
<tr><td id="total-pages">{{ images | length }}</td></tr>
</table>
</div>
2024-01-22 07:01:41 -05:00
<div id="duration"></div>
2024-01-23 15:32:55 -05:00
<div id="controls">
2024-01-23 17:35:33 -05:00
<div id="tap-left" class="tap">
<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80' height='140' viewBox='-10 -70 80 140'>
<path d='M 60 -60 L 0 0 L 60 60' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
</svg>
</div>
<div id="tap-right" class="tap">
<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='80' height='140' viewBox='-10 -70 80 140'>
<path d='M 0 -60 L 60 0 L 0 60' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
</svg>
</div>
<div id="tap-back" class="tap">
<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='140' height='80' viewBox='-70 -10 140 80'>
<path d='M -60 60 L 0 0 L 60 60' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
</svg>
</div>
<div id="tap-restart" class="tap">
<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='140' height='140' viewBox='-70 -70 140 140'>
<path d='M 54.16 9.55 A 55 55 0 1 1 54.16 -9.55' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
<path d='M 54.16 -9.55 l 9.39 -17.66' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
<path d='M 54.16 -9.55 l -17.66 -9.39' fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='10'/>
</svg>
</div>
2024-01-23 15:32:55 -05:00
</div>
2024-02-11 17:13:10 -05:00
<div class="image-container" id="current-image"></div>
<div class="image-container" id="preload-images"></div>
2024-01-22 07:01:41 -05:00
{% endblock %}