source: DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/test/test-service.html @ 2716

Last change on this file since 2716 was 2716, checked in by olof, 11 years ago

first commit of extension

File size: 1.2 KB
Line 
1<!DOCTYPE html>
2<html>
3    <head>
4        <script src="../lib/jquery-1.9.1.js"></script>
5        <script src="../lib/jquery.xml2json.js"></script>
6        <script src="../annotation-service.js"></script>
7        <script src="../../hyperanchor.js"></script>
8        <script src="test-render-annotations.js"></script>
9        <script src="../conversion.utils.js"></script>
10    </head>
11    <body>
12        <div style="float:left;width:40%;">
13            <ul id="annotations"></ul>
14        </div>
15        <div style="float:left;width:40%;">
16            <p>
17                An example text about Douglas Adams; a writer and a cool dude.
18            </p>
19        </div>
20
21        <script>
22            // Enable Universal Browser Read
23         
24            //use remote backend via local proxy
25            var proxyURL = "http://localhost/annotation/annotator-service/test/proxy.php?url="+encodeURIComponent('http://pelle.ssd.gu.se:8080/exist/rest/db/annotation-framework/api/annotations.xql');
26            annotationFramework.setBackend(proxyURL);
27           
28            //get a specofic annotation
29            annotationFramework.getAnnotations({aid:'AID011'}, listAnnotations);
30        </script>
31    </body>
32</html>
Note: See TracBrowser for help on using the repository browser.