generated from NewcastleRSE/Standard-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (68 loc) · 2.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Import custom behaviours (OPTIONAL) before the converter -->
<script type="text/javascript" src="./dist/TeiConverter/exampleCustoms.js"></script>
<!-- Import converter -->
<script src="./dist/TeiConverter/tei-converter.umd.js"></script>
<script type="text/javascript">
addEventListener('drawBox', (event) => {
// console.log(event.detail);
});
addEventListener('placeHover', (event) => {
console.log(event.detail);
});
addEventListener('persHover', (event) => {
console.log(event.detail);
});
addEventListener('orgHover', (event) => {
console.log(event.detail);
});
addEventListener('noteHover', (event) => {
console.log(event.detail);
});
addEventListener('choiceHover', (event) => {
console.log(event.detail);
});
addEventListener('addHover', (event) => {
console.log(event.detail);
});
addEventListener('damageHover', (event) => {
console.log(event.detail);
});
addEventListener('delHover', (event) => {
console.log(event.detail);
});
addEventListener('gapHover', (event) => {
console.log(event.detail);
});
addEventListener('unclearHover', (event) => {
console.log(event.detail);
});
</script>
<!-- FOR DEV TESTING ONLY -- Gets the list of files in the repo, manages form options and submit -->
<script type="module" src="./devJS/ghAPI.js"></script>
<!-- -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TEI converter test</title>
</head>
<body>
<h1>TEI</h1>
<!-- FORM TO SELECT FROM DIFFERENT FILES IN THE REPO - DEV TESTING ONLY -->
<form id="fileSelectForm">
<label for="fileNameSelect">File: </label>
<select name="fileName" id="fileNameSelect">
</select>
<label for="pageRangeForm">Page range: </label>
<input type="text" name="pageRangeForm" id="pageRangeForm" placeholder="ex: 1-3. Leave empty for all pages"/>
<input type="submit" value="Convert"></input>
<button type="button" id="see-xml">See xml</button>
</form>
<!-- -->
<div style="width: 85%; margin-right: auto; margin-left: auto;" id="teiContainer">
<tei-converter
path="https://raw.githubusercontent.com/evolvinghands/EvolvingHandsNcl/main/GB-1-1-2-1-17-20.xml" configPath="dist/TeiConverter/TeiConverter.config.json" pageRange = ""/>
</div>
</body>
</html>