👀 Reading hidden code
A IIIF viewer in Pluto: version 2
👀 Reading hidden code
Enter a manifest URL:
👀 Reading hidden code
👀 Reading hidden code
👀 Reading hidden code
👀 Reading hidden code
Mechanics: use TIFY to browse image
👀 Reading hidden code
Prerequisites: we'll need the HypertextLiteral
package
👀 Reading hidden code
using HypertextLiteral
👀 Reading hidden code
Step 1: load the TIFY library and its accompanying CSS:
👀 Reading hidden code
@htl("""
<script src="https://cdn.jsdelivr.net/npm/tify@0.31.0/dist/tify.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tify@0.31.0/dist/tify.css">
</script>
""")
👀 Reading hidden code
Step 2: Instantiate a TIFY object:
👀 Reading hidden code
@htl("""
<script>
new Tify({
container: '#tify',
manifestUrl: $manifesturl,
})
</script>
""")
👀 Reading hidden code