-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
(function ($) { | ||
|
||
$.config_1 = { | ||
"id" : "mirador_viewer_1", | ||
"saveSession" : false, | ||
"layout" : "1x1", | ||
"data" : [ | ||
{ "manifestUri": "http://dms-data.stanford.edu/data/manifests/Walters/qm670kv1873/manifest.json", "location": "Stanford University" } | ||
], | ||
"buildPath" : "/", | ||
"i18nPath" : "mirador/locales/", | ||
"imagesPath" : "mirador/images/", | ||
"logosPath" : "mirador/images/logos/", | ||
"mainMenuSettings" : { | ||
"show" : true, | ||
"buttons" : { | ||
"bookmark" : false, | ||
"fullScreenViewer": true, | ||
"options": false | ||
}, | ||
"userButtons" : [ | ||
], | ||
"userLogo" : { | ||
"label" : "Example 1", | ||
"attributes" : { "id" : "logo", "href" : "http://iiif.io", "target" : "_blank" } | ||
} | ||
}, | ||
"windowObjects" : [], | ||
"annotationLayer" : true, | ||
"annotationEndpoint" : { | ||
"name": "Local Storage", | ||
"module": "LocalStorageEndpoint" | ||
} | ||
}; | ||
|
||
})(MiradorExample); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
(function ($) { | ||
|
||
$.config_2 = { | ||
"id" : "mirador_viewer_2", | ||
"saveSession" : false, | ||
"layout" : "1x1", | ||
"data" : [ | ||
{ "manifestUri": "http://iiif.biblissima.fr/manifests/ark:/12148/btv1b10500687r/manifest.json", "location": 'BnF' } | ||
], | ||
"buildPath" : "/", | ||
"i18nPath" : "mirador/locales/", | ||
"imagesPath" : "mirador/images/", | ||
"logosPath" : "mirador/images/logos/", | ||
"mainMenuSettings" : { | ||
"show" : true, | ||
"buttons" : { | ||
"bookmark" : false, | ||
"fullScreenViewer": true, | ||
"options": false | ||
}, | ||
"userButtons" : [ | ||
], | ||
"userLogo" : { | ||
"label" : "Example 2", | ||
"attributes" : { "id" : "logo", "href" : "http://iiif.io", "target" : "_blank" } | ||
} | ||
}, | ||
"windowObjects" : [ | ||
{ | ||
"loadedManifest" : null, | ||
"viewType" : "ImageView", | ||
"displayLayout" : true, | ||
"bottomPanel" : true, | ||
"sidePanel" : true, | ||
"annotationLayer" : true | ||
} | ||
], | ||
"annotationLayer" : true, | ||
"annotationEndpoint" : { | ||
"name": "Local Storage", | ||
"module": "LocalStorageEndpoint" | ||
} | ||
}; | ||
|
||
})(MiradorExample); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.mirador_container { | ||
position: relative; | ||
display: inline-block; | ||
border: 5px solid green; | ||
margin: 10px; | ||
width: 45%; | ||
height: 500px; | ||
} | ||
|
||
.mirador_viewer { | ||
display: block !important; | ||
position: absolute !important; | ||
width: 100%; | ||
top: 0; | ||
bottom: 0; | ||
} | ||
|
||
h1 { | ||
margin-left: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
window.MiradorExample = {}; | ||
|
||
(function ($) { | ||
|
||
jQuery(document).ready(function () { | ||
Mirador($.config_1); | ||
Mirador($.config_2); | ||
}); | ||
|
||
})(MiradorExample); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<link rel="stylesheet" type="text/css" href="../../build/mirador/css/mirador-combined.css"/> | ||
<link rel="stylesheet" type="text/css" href="embedded.css"/> | ||
<script type="text/javascript" src="../../build/mirador/mirador.js"></script> | ||
<script type="text/javascript" src="embedded.js"></script> | ||
<script type="text/javascript" src="config-1.js"></script> | ||
<script type="text/javascript" src="config-2.js"></script> | ||
<title>Embedded Mirador Viewers</title> | ||
</head> | ||
<body> | ||
<h1>Mirador Embedded</h1> | ||
|
||
<div class="mirador_container"> | ||
<div id="mirador_viewer_1" class="mirador_viewer"></div> | ||
</div> | ||
<div class="mirador_container"> | ||
<div id="mirador_viewer_2" class="mirador_viewer"></div> | ||
</div> | ||
|
||
</body> | ||
</html> |