forked from paulbroyles/tei-workshop-letter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (24 loc) · 844 Bytes
/
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
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="build/CETEIcean.css" media="screen" charset="utf-8">
</head>
<body>
<div id="TEI">
Sadly, this page will not work in Internet Explorer and some older browsers. We suggest you use a newer version of Chrome or Firefox.
</div>
<script src="build/CETEI.js"></script>
<script>
var CETEIcean = new CETEI();
CETEIcean.getHTML5('xml/index.xml', function(data) {
document.getElementById("TEI").innerHTML = "";
document.getElementById("TEI").appendChild(data);
CETEIcean.addStyle(document, data);
});
// Alternatively, use then()
// (new CETEI).getHTML5('testTEI.xml').then(function(data){
// document.getElementById("TEI").appendChild(data);
// });
</script>
</body>
</html>