-
Notifications
You must be signed in to change notification settings - Fork 0
/
synopsis.html
94 lines (92 loc) · 3.14 KB
/
synopsis.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
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/public/scdh.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Test</title>
<script type="module" src="/node_modules/anylogger-console/anylogger-console.js"></script>
<script type="module" src="/src/seed-app.ts"></script>
<script type="module" src="/src/seed-config.ts"></script>
<script type="module" src="/src/seed-config-text.ts"></script>
<script type="module" src="/src/seed-text-view.ts"></script>
<script type="module" src="/src/seed-state-scroll-position.ts"></script>
<script type="module" src="/src/seed-state-sync-others.ts"></script>
<script type="module" src="/src/seed-annotation-permanent.ts"></script>
<style type="text/css">
.synopsis {
height: 80vh;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.synopsis seed-text-view {
flex-grow: 1;
min-width: 20em;
margin: 2px;
}
</style>
</head>
<body>
<seed-app>
<seed-config
annotations-url="Annotationen.json"
ontology-urls="ontology.json"
regex-alignment="alignment.json"></seed-config>
<seed-config-text text-id="foo" text-url="LXX.tei.html"></seed-config-text>
<seed-config-text text-id="mt" text-url="MT.tei.html"></seed-config-text>
<seed-config-text text-id="tg" text-url="TG.tei.html"></seed-config-text>
<!-- whitespace between synopsis texts breaks margin and may break the line up -->
<div
class="synopsis"
><seed-text-view
id="LXX"
title="Septuaginta"
text-id="foo"
source="LXX.words.tei.xml"
annotations-per-segment-url="LXX.tei.xml.segments.json"
>
<seed-state-scroll-position slot="status"></seed-state-scroll-position>
<seed-state-sync-others slot="status"></seed-state-sync-others>
</seed-text-view
><seed-text-view
id="MT"
text-id="mt"
title="Masoreten"
source="MT.words.tei.xml"
annotations-per-segment-url="MT.tei.xml.segments.json"
>
<seed-state-scroll-position slot="status"></seed-state-scroll-position>
<seed-state-sync-others slot="status"></seed-state-sync-others>
</seed-text-view
><seed-text-view
id="TG"
text-id="tg"
title="Targum"
source="TG.words.tei.xml"
annotations-per-segment-url="TG.tei.xml.segments.json"
>
<seed-state-scroll-position slot="status"></seed-state-scroll-position>
<seed-state-sync-others slot="status"></seed-state-sync-others>
</seed-text-view
></div>
<div style="min-height:10px"> </div>
<seed-annotation-permanent
title="Annotation"
height="auto"
width="auto"
display="inline-block"
></seed-annotation-permanent>
</seed-app>
</body>
<script>
// Create IE + others compatible event handler
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventer = window[eventMethod];
var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
// Listen to message from child window
eventer(messageEvent,function(e) {
console.log("parent received message from " + e.origin + ": ", e.data);
},false);
</script>
</html>