-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
110 lines (100 loc) · 2.32 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>demos</title>
<style>
* {
margin: 0;
padding: 0;
overflow: hidden;
}
html,
body {
width: 100%;
height: 100%;
}
aside {
position: absolute;
right: 2px;
bottom: 2px;
padding: 0.5em;
border: 1px solid gray;
background-color: white;
opacity: 0.5;
}
aside:hover {
opacity: 0.9;
}
form {
margin-bottom: 0.5em;
}
table,
table thead {
width: 100%;
border: 1px solid #cbcbcb;
empty-cells: show;
border-collapse: collapse;
border-spacing: 0;
}
table td,
table th {
border-left: 1px solid #cbcbcb;
}
table td {
text-align: right;
}
.container {
text-align: center;
height: 100%;
width: 100%;
}
canvas {
max-width: 100%;
max-height: 100%;
}
#drawing {
width: 700px;
height: 500px;
border: solid 2px orangered;
margin: auto;
}
</style>
</head>
<body>
<aside>
<form id="layout-props" class="layout-props">
<input name="dataSize" type="number" min="1" value="20" />
<select name="layoutType">
<option value="Standard">Standard</option>
<option value="RightLogical">Right Logical</option>
<option value="DownwardOrganizational"
>Downward Organizational</option
>
<option value="UpwardOrganizational">Upward Organizational</option>
<option value="LeftLogical">Left Logical</option>
</select>
</form>
<table>
<thead>
<tr>
<th>layout time(ms)</th>
<th>render time(ms)</th>
</tr>
</thead>
<tbody>
<tr>
<td id="layout-time">0</td>
<td id="render-time">0</td>
</tr>
</tbody>
</table>
</aside>
<div class="container" id="container">
<div id="drawing"></div>
</div>
<script src="./dist/js/mindtree.js"></script>
<!-- <script src="./dist/js/minddown.js"></script> -->
<script src="./example/example.js"></script>
</body>
</html>