-
Notifications
You must be signed in to change notification settings - Fork 0
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
16 changed files
with
29 additions
and
29 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
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 |
---|---|---|
|
@@ -84,8 +84,8 @@ <h1 id="getting-started-with-annotorious">Getting Started with Annotorious</h1> | |
Austria</a>, by Nick Csakany/Wikimedia Commons. Public Domain. | ||
</p> | ||
</div> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected]/dist/annotorious-toolbar.min.js"></script> | ||
<style> | ||
#toolbar { | ||
|
@@ -169,10 +169,10 @@ <h2 id="include-via-script-tag">Include via Script Tag</h2> | |
</span></span></code></pre></div><h2 id="from-cdn">From CDN</h2> | ||
<p>Alternatively, you can grab script and stylesheet directly from the <a href="https://www.jsdelivr.com/package/npm/@recogito/annotorious">jsDelivr CDN</a>.</p> | ||
<div class="highlight"><pre tabindex="0" style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span><span style="color:#586e75"><!-- CSS stylesheet --></span> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">link</span> rel<span style="color:#719e07">=</span><span style="color:#2aa198">"stylesheet"</span> href<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css"</span>> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">link</span> rel<span style="color:#719e07">=</span><span style="color:#2aa198">"stylesheet"</span> href<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css"</span>> | ||
</span></span><span style="display:flex;"><span> | ||
</span></span><span style="display:flex;"><span><span style="color:#586e75"><!-- JS --></span> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">script</span> src<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.js"</span>></<span style="color:#268bd2">script</span>> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">script</span> src<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.js"</span>></<span style="color:#268bd2">script</span>> | ||
</span></span></code></pre></div><h2 id="using-npm">Using NPM</h2> | ||
<p>If you use npm, <code>npm install @recogito/annotorious</code> and then</p> | ||
<div class="highlight"><pre tabindex="0" style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-javascript" data-lang="javascript"><span style="display:flex;"><span><span style="color:#268bd2">import</span> { Annotorious } from <span style="color:#2aa198">'@recogito/annotorious'</span>; | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
@@ -105,8 +105,8 @@ <h1 id="getting-started-with-the-openseadragon-plugin">Getting Started with the | |
<div id="openseadragon"></div> | ||
</div> | ||
<script type="text/javascript" src="/js/openseadragon/openseadragon.4.0.0.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css"> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/openseadragon-annotorious.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].14/dist/annotorious.min.css"> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].14/dist/openseadragon-annotorious.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected]/dist/annotorious-toolbar.min.js"></script> | ||
<script> | ||
var sampleAnnotation = { | ||
|
@@ -164,10 +164,10 @@ <h1 id="getting-started-with-the-openseadragon-plugin">Getting Started with the | |
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">script</span> src<span style="color:#719e07">=</span><span style="color:#2aa198">"openseadragon-annotorious.min.js"</span>></<span style="color:#268bd2">script</span>> | ||
</span></span></code></pre></div><p>Alternatively, grab the files from CDN.</p> | ||
<div class="highlight"><pre tabindex="0" style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span><span style="color:#586e75"><!-- CSS stylesheet --></span> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">link</span> rel<span style="color:#719e07">=</span><span style="color:#2aa198">"stylesheet"</span> href<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css"</span>> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">link</span> rel<span style="color:#719e07">=</span><span style="color:#2aa198">"stylesheet"</span> href<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].14/dist/annotorious.min.css"</span>> | ||
</span></span><span style="display:flex;"><span> | ||
</span></span><span style="display:flex;"><span><span style="color:#586e75"><!-- JS --></span> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">script</span> src<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/openseadragon-annotorious.min.js"</span>></<span style="color:#268bd2">script</span>> | ||
</span></span><span style="display:flex;"><span><<span style="color:#268bd2">script</span> src<span style="color:#719e07">=</span><span style="color:#2aa198">"https://cdn.jsdelivr.net/npm/@recogito/[email protected].14/dist/openseadragon-annotorious.min.js"</span>></<span style="color:#268bd2">script</span>> | ||
</span></span></code></pre></div><blockquote> | ||
<p>Important! You <strong>must</strong> include the stylesheet in the <head> of your page. If you include it | ||
anywhere in your <body>, Annotorious will not work when switching OpenSeadragon to fullscreen mode.</p> | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
@@ -172,8 +172,8 @@ <h1 id="headless-mode-using-annotorious-without-the-editor-popup">Headless Mode: | |
Austria</a>, by Nick Csakany/Wikimedia Commons. Public Domain. | ||
</p> | ||
</div> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@recogito/[email protected]/dist/annotorious-toolbar.min.js"></script> | ||
<script> | ||
window.onload = function() { | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
<meta property="og:image" content="https://annotorious.github.io/images/annotorious-social-large.png" /> | ||
<meta property="og:type" content="object" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].10/dist/annotorious.min.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@recogito/[email protected].12/dist/annotorious.min.css" /> | ||
<script>if(!sessionStorage.getItem("_swa")&&document.referrer.indexOf(location.protocol+"//"+location.host)!== 0){fetch("https://counter.dev/track?"+new URLSearchParams({referrer:document.referrer,screen:screen.width+"x"+screen.height,user:"[email protected]",utcoffset:"1"}))};sessionStorage.setItem("_swa","1");</script> | ||
</head> | ||
|
||
|
Oops, something went wrong.