Skip to content

Commit

Permalink
fix: OpenSeadragon viewer initialization disambiguated in manuscript_…
Browse files Browse the repository at this point in the history
…musicscore.html
  • Loading branch information
hepplerj committed Aug 15, 2024
1 parent b01d7d1 commit 549de64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/manuscript_musicscore.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
homeFillsViewer: false,
visibilityRatio: 1,
});
viewer.addHandler('open', function () {
viewer1.addHandler('open', function () {
document.getElementById('loading-spinner').style.display = 'none';
document.getElementById('openseadragon_viewer').classList.remove('hidden');
});
Expand All @@ -66,7 +66,7 @@
<div id="viewer2" class="openseadragon">
<script type="text/javascript">
let second_page = encodeURI("{{ next_image_url }}");
let viewer = OpenSeadragon({
let viewer2 = OpenSeadragon({
id: "viewer2",
prefixUrl: "/static/openseadragon/images/",
tileSources: [
Expand All @@ -84,7 +84,7 @@
</div>

{% if previous_page %}
<a href="{% url 'manuscript_page' previous_page.id %}">
<a href="{% url 'manuscript_page' previous_page.slug %}">
<p>
&larr; Previous Page &middot; viewing page {{ manuscript_page.page_range }} ({{ manuscript_page.docside }})
</p>
Expand Down
2 changes: 1 addition & 1 deletion templates/manuscript_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
{# if page has forensic images, display them #}
{% if forensic_images %}
<hr class="mt-3 mb-3" />
<h3 class="mt-3 mb-3 text-3xl font-bold">Forensic Images</h3>
<h3 class="mt-3 mb-3 text-xl font-bold">Forensic Images</h3>
<div id="forensic-images" class="mt-4" x-data="{ open: false }">
{% with forensic_images|first as first_image %}
{% if first_image %}
Expand Down

0 comments on commit 549de64

Please sign in to comment.