Skip to content

Instantly share code, notes, and snippets.

@HadrienGardeur
Last active December 6, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HadrienGardeur/174b69574687cdda2c59b618532731ef to your computer and use it in GitHub Desktop.
Save HadrienGardeur/174b69574687cdda2c59b618532731ef to your computer and use it in GitHub Desktop.
RWPM with the ability to switch between FXL, normal HTML and IIIF
<p><a id="page1" href="page1.html" />This is the text of the reflowable view</p>
{
"links": [
{
"rel": "self",
"href": "fixed.json",
"type": "application/webpub+json"
},
{
"rel": "alternate",
"href": "reflowable.json",
"type": "application/webpub+json",
"properties": {"layout": "reflowable"}
},
{
"rel": "alternate",
"href": "fixed.epub",
"type": "application/epub+zip"
}
],
"readingOrder": [
{
"href": "page1.html",
"type": "text/html",
"properties": {"layout": "fixed"},
"alternate": [
{
"href": "chapter1.html#page1",
"type": "text/html"
},
{
"href": "page1.webp/info.json",
"type": "application/ld+json;profile=\"http://iiif.io/api/image/3/context.json\""
}
]
},
{
"href": "page2.html",
"type": "text/html",
"properties": {"layout": "fixed"},
"alternate": [
{
"href": "chapter1.html#page2",
"type": "text/html"
},
{
"href": "page2.webp/info.json",
"type": "application/ld+json;profile=\"http://iiif.io/api/image/3/context.json\""
}
]
}
]
}
{
"links": [
{
"rel": "self",
"href": "reflowable.json",
"type": "application/webpub+json"
},
{
"rel": "alternate",
"href": "fixed.json",
"type": "application/webpub+json",
"properties": {"layout": "fixed"}
},
{
"rel": "alternate",
"href": "reflowable.epub",
"type": "application/epub+zip"
}
],
"readingOrder": [
{
"href": "chapter1.html",
"type": "text/html"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment