Skip to content

Instantly share code, notes, and snippets.

@camillevilla
Created June 6, 2019 21:00
Show Gist options
  • Save camillevilla/a1c06b2433391621f2aa6b07a04214a7 to your computer and use it in GitHub Desktop.
Save camillevilla/a1c06b2433391621f2aa6b07a04214a7 to your computer and use it in GitHub Desktop.
A Mirador 2 instance configured to show Collection tree browser
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="mirador/css/mirador-combined.css">
<title>Mirador Viewer</title>
<style type="text/css">
#viewer {
width: 100%;
height: 100%;
position: fixed;
}
</style>
</head>
<body>
<div id="viewer"></div>
<script src="mirador/mirador.min.js"></script>
<script type="text/javascript">
$(function() {
myMiradorInstance = Mirador({
id: "viewer",
layout: "1x1",
buildPath: "mirador/",
data: [
{ "collectionUri": "https://gist.githubusercontent.com/camillevilla/77ee00333aafa602e4a8ed8f54ee4be1/raw/b80c96c603e38abe191146b4d2acee1e75d8e927/marcie.json",
{ manifestUri: "http://media.nga.gov/public/manifests/nga_highlights.json", location: "National Gallery of Art"}
],
manifestsPanel: {
name: "Collection tree browser",
module: "CollectionTreeManifestsPanel"
},
windowObjects: [],
annotationEndpoint: {
name:"Local Storage",
module: "LocalStorageEndpoint" }
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment