-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappHTML.html
More file actions
121 lines (87 loc) · 2.56 KB
/
appHTML.html
File metadata and controls
121 lines (87 loc) · 2.56 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<script src="jquery.js"></script>
<script>
window.onload = function myFunction() {
var w = window.innerWidth * 0.85;
var h = window.innerHeight * 0.85;
document.getElementById("analysis").style.width = w + "px";
document.getElementById("analysis").style.height = h + "px";
document.getElementById("deps").style.width = w + "px";
document.getElementById("deps").style.height = h + "px";
document.getElementById("summary").style.width = w + "px";
document.getElementById("summary").style.height = h + "px";
}
function error(_this, status){
console.log(_this, status)
// do your work in error
_this.parentNode.removeChild(_this);
}
function autosizemyfriend(_this){
console.log(_this, id)
var w = window.innerWidth;
var h = window.innerHeight;
// do your work in error
//_this.style.width = w + "px";
}
</script>
</head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.collapsible {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.active, .collapsible:hover {
background-color: #555;
}
.content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
</style>
</head>
<body>
<body style="font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; padding: 4rem 2rem;"><figure style="margin-bottom: 6rem"><h2 style="margin: 0">Document Analysis Results</h2>
</body>
<button class="collapsible">Entity Analysis</button>
<div class="content">
<body>
<iframe id="analysis" seamless src="exportspacy.html" frameborder="0" scrolling="auto"></iframe>
</body>
</div>
<button class="collapsible">Sentence Dependency Analysis</button>
<div class="content">
<body>
<iframe id="deps" seamless src="depexports.html" frameborder="0" scrolling="auto"></iframe>
</body>
</div>
<body>
<iframe id="summary" seamless src="summaryhtml.html" frameborder="0" scrolling="auto"></iframe>
</body>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
</html>