Skip to content

Commit

Permalink
add manifest url input to examples.html (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmisson authored Dec 2, 2024
1 parent df3eec2 commit 647868f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<body>
<div class="testFixtureSelection">
<p>Select test fixture: </p>
<button class="testFixture" data-json="http://wellcomelibrary.org/iiif/b18035978/manifest">Manifest metadata</button>
<!-- <button class="testFixture" data-json="https://iiif.riksarkivet.se/arkis!C0000263/manifest">Canvas metadata</button> -->
<!-- <button class="testFixture" data-json="https://iiif.riksarkivet.se/arkis!F0001185/manifest">Merge source reference</button> -->
Expand All @@ -42,6 +43,12 @@
<button class="testFixture" data-json="https://norman.hrc.utexas.edu/notDM/objectManifest/p15878coll1v3/37">v3 rights, logo, required statement</button>
</div>

<div class="testInput">
<p>Or load from URL: </p>
<input type="text" id="inputIIIF" placeholder="Enter IIIF URL" />
<button id="loadIIIF">Load</button>
</div>

<div class="options">

<div class="metadataGroupOrder">
Expand Down Expand Up @@ -164,6 +171,13 @@
loadManifest($(this).data('json'));
});

$('#loadIIIF').click(function () {
var jsonUrl = $('#inputIIIF').val();
if (jsonUrl) {
loadManifest(jsonUrl);
}
});

});

</script>
Expand Down

0 comments on commit 647868f

Please sign in to comment.