Skip to content

Instantly share code, notes, and snippets.

@aeschylus
Created October 24, 2013 20:02
Show Gist options
  • Save aeschylus/7144007 to your computer and use it in GitHub Desktop.
Save aeschylus/7144007 to your computer and use it in GitHub Desktop.
A sample index displaying 6 institutions' IIIF endpoints in a single environment.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/mirador-combined.min.css">
<style>
body { padding: 0; margin: 0; overflow: hidden; font-size: 70%; }
#viewer { width:100%; height:100%; background: #333 url(images/debut_dark.png) left top repeat; position: fixed; }
</style>
</head>
<body>
<div id="viewer"></div>
<script src="mirador.js"></script>
<script>
$(function() {
Mirador({
id: 'viewer',
data:[
// Stanford
{ manifestUri: 'data/Walters/bd183mz0176/Manifest.json',
title: 'MS 530',
widgets: [
{ width: 500,
height: 400,
type: 'imageView'
}
]
},
// Yale
{ manifestUri: 'http://manifests.ydc2.yale.edu/manifest/BeineckeMS310.json',
title: 'Beinecke MS 310',
widgets: [
{ width: 500,
height: 400,
type: 'imageView'
}
]
},
// Oxford
{ manifestUri: 'http://iiif-dev.bodleian.ox.ac.uk/manifests/ms_kennicott_3.json',
title: 'MS. Kennicott 3',
widgets: [
{ width: 500,
height: 400,
type: 'thumbnailsView'
}
]
},
// VHMML
{ manifestUri: 'http://iiif.as.uky.edu/manifests/manifest.json',
title: 'test',
widgets: [
{ width: 500,
height: 400,
type: 'imageView'
}
]
},
// Biblissima (BNF)
{ manifestUri: 'http://demos.biblissima-condorcet.fr/sc/ark_12148_btv1b84473026/manifest.json',
title: 'MSS. Français 1728',
widgets: [
{ width: 500,
height: 400,
type: 'imageView'
}
]
},
// E-Codices
// { manifestUri: 'data/Ecodices/Manifest.json',
// title: '',
// widgets: [
// { width: 500,
// height: 400,
// type: 'imageView'
// }
// ]
// },
// Harvard
// { manifestUri: 'data/Harvard/Manifest.json',
// title: 'Harvar: Book of Hours',
// widgets: [
// { width: 500,
// height: 400,
// type: 'imageView'
// }
// ]
// },
// LANL
{ manifestUri: 'http://www.shared-canvas.org/impl/demo1d/res/manifest.json',
title: 'M804',
widgets: [
{ width: 500,
height: 400,
type: 'imageView'
}
]
}
]
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment