Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script>
const url = "http://ras.scta.info/annotations/lists?uri=http://a53d82a8-e97a-4604-a11a-2b990f3acb67"
const image = "http://free.iiifhosting.com/iiif/84aaf55263cb902349b1818df6f823c92e8a7c79b4346839a0ce4e22f039aaff"
@jeffreycwitt
jeffreycwitt / test-manifest-with-complicated-toc.json
Created March 6, 2019 20:49
test-manifest-with-complicated-toc.json
This file has been truncated, but you can view the full file.
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://scta.info/iiif/summahalensis/quaracchi1928/manifest",
"@type": "sc:Manifest",
"label": "summahalensis/quaracchi1928",
"description": "Manifest Description",
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"service": {
"@context": "http://iiif.io/api/search/1/context.json",
"@id": "http://localhost:8080/exist/apps/scta-app/iiif2/quaracchi1928/search",
@jeffreycwitt
jeffreycwitt / manifest-with-three-level-deep-toc.json
Created March 7, 2019 12:54
manifest-with-three-level-deep-toc.json
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://scta.info/iiif/wodehamordinatio/maz/manifest",
"@type": "sc:Manifest",
"label": "wodehamordinatio/maz",
"description": "Manifest Description",
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"service": {
"@context": "http://iiif.io/api/search/1/context.json",
"@id": "https://exist.scta.info/exist/apps/scta-app/iiif2/maz/search",
@jeffreycwitt
jeffreycwitt / gist:5821781dc5b854099e57ab6ccd3dc2e9
Last active April 29, 2021 14:53
medieval-world-jeopardy-2019-04-30
{
"questions": [
{
"category": "English Kings",
"value": 100,
"question": "He ruled Wessex",
"answer": "Who is King Alfred?"
},
{
"category": "English Kings",
for i in {1..144}
do y=$((i * 5))
echo "<img src=\"http://127.0.0.1:8182/iiif/2/demo.jpg/0,$y,724,5/full/0/default.jpg\"/><div class='break'></div>"
done > out.txt
# change 144 to indicate how many lines you want
# change 5 to indicate the interval that you want the "top" to move
# add the output to a basic html page
create something like this:
@jeffreycwitt
jeffreycwitt / manifest.json
Created May 23, 2019 18:37
sample manifest at upitt
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://a9afb4a7-3ef0-4e8c-b1d8-6fb30d9621a9",
"@type": "sc:Manifest",
"label": "This is my first manifest",
"metadata": [],
"description": [
{
"@value": "This is a grouping of photos I made at UPitt",
"@language": "en"
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://b75c8390-4630-49ce-b63c-d282ea652554",
"@type": "sc:Manifest",
"label": "Our Workshop Manifest",
"metadata": [],
"description": [
{
"@value": "[Click to edit description]",
"@language": "en"
This file has been truncated, but you can view the full file.
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://iiif.archivelab.org/iiif/bub_gb_5Q_a_itqo4EC/manifest.json",
"@type": "sc:Manifest",
"attribution": "The Internet Archive",
"label": "Summae quaestionum ordinariarum theologi recepto praeconio solennis Henrici a Gandauo, cum duplici repertorio, tomos prior posterior",
"logo": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcReMN4l9cgu_qb1OwflFeyfHcjp8aUfVNSJ9ynk2IfuHwW1I4mDSw",
"metadata": [
{
"label": "title",
@jeffreycwitt
jeffreycwitt / maz.json
Created February 11, 2020 01:59
maz manifest
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "https://scta.info/iiif/wodehamordinatio/maz/manifest",
"@type": "sc:Manifest",
"label": "wodehamordinatio/maz",
"description": "Manifest Description",
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"service": {
"@context": "http://iiif.io/api/search/1/context.json",
"@id": "https://exist.scta.info/exist/apps/scta-app/iiif2/maz/search",
@jeffreycwitt
jeffreycwitt / medievalWorldPart1Jeopardy.json
Last active February 27, 2024 11:26
medieval world part 1 jeopardy questions
{"questions": [
{
"category": "Dates with 7",
"value": 100,
"question": "On this date Charles Martel stopped an invading army.",
"answer": "What is 732?"
},
{
"category": "Dates with 7",
"value": 200,