-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (38 loc) · 1.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">
<head>
<title>My project</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/CETEIcean.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/CETEI.js"></script>
</head>
<body>
<div id="TEI"></div>
<!-- <script>
var CETEIcean = new CETEI()
CETEIcean.getHTML5("data/TB_1950.02.13-1950.02.28.xmlBlotius_Inventar_1576.xml", function(data) {
document.getElementById("TEI").appendChild(data)
})
</script> -->
<script>
var CETEIcean = new CETEI()
CETEIcean.addBehaviors({
"tei": {
"teiHeader": null,
/* kompliziertre Lösung */
"head": function(e) {
let s = document.createElement("span");
s.innerHTML = e.getAttribute("n") + " " + e.innerHTML;
}
/* einfachere Lösung, mit Link
"head": [ "\\\\<a href=\"http://www.tei-c.org\">" , "</a>//" ]
*/
}
})
CETEIcean.getHTML5("data/TB_1950.02.13-1950.02.28.xml", function(data) {
document.getElementById("TEI").appendChild(data)
})
</script>
</body>
</html>