-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
207 lines (180 loc) · 8.43 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Exo+2:100,200" rel="stylesheet">
<link rel="stylesheet" href="main.css" type="text/css">
<script src="canvas-txt.js"></script>
<script src="force-graph.min.js"></script>
<script src="jquery-3.5.1.min.js"></script>
<script src="n3-bundle.js"></script>
<script src="rdf-studio.js"></script>
<script src="d3.v6.min.js"></script>
<script src="brick-studio.js" defer></script>
<title>Brick Studio</title>
</head>
<body class="container">
<div id="viewer" class="container editor-closed">
<div id="modal">
<div class="bg-image"></div>
<div>
<textarea type="text" id="config"></textarea>
</div>
<div id="configButton" onclick="javascript:toggleConfig()">
<img src="config.png" id="configButtonImage">
<div id="configCommand">EDIT</div>
</div>
<div class="bg-text" id="mainModal">
<div id="modals">
<div id="enterURL" class="show">
<h1 class="title">Brick Studio</h1>
<form class="fetchField" action="javascript:fetchURI()">
<input id="ttluri" type="text" list="TTL">
<datalist id="TTL">
<option value="https://raw.githubusercontent.com/BuildSysUniformMetadata/GroundTruth/master/building_instances/ebu3b_brick.ttl">EBU3B</option>
<option value="https://raw.githubusercontent.com/BuildSysUniformMetadata/GroundTruth/master/building_instances/soda_brick.ttl">SODA</option>
<option value="https://raw.githubusercontent.com/BuildSysUniformMetadata/GroundTruth/master/building_instances/ibm_b3.ttl">IBM_B3</option>
<option value="http://brickschema.org/ttl/ebu3b_brick.ttl">Updated EBU3B</option>
</datalist>
<button type="submit">GO!</button>
<div class=""> </div>
<div class="">OR</div>
<div class=""> </div>
<input type="file" id="file-input" >
<div class=""> </div>
<div class=""> </div>
<div class="">Notice: This website uses your browser's local storage to store and retrieve configuration (top-right).</div>
<div class=""> </div>
</form>
</div>
<div id="fetching">
<h1 class="title">Fetching...</h1>
</div>
<div id="parsing">
<h1 class="title">Parsing...</h1>
</div>
<div id="analyzing">
<h1 class="title">Analyzing...</h1>
</div>
<div id="reducing">
<h1 class="title">Reducing...</h1>
</div>
<div id="preprocessing">
<h1 class="title">Preprocessing...</h1>
</div>
</div>
</div>
</div>
<div id="title-viewer" class="title button">
VIEWER
</div>
<div id="zoom-in-button" class="button">
+
</div>
<div id="zoom-out-button" class="button">
-
</div>
<div id="toggle-editor-button" class="button">
Edit
</div>
<div id="viewer-settings">
<div class="viewer-setting container" id="nodeSizeSliderContainer">
<div class="viewer-key button"> Node Size </div>
<div class="viewer-value button" id="nodeSize"></div>
<div class="slidecontainer">
<input type="range" min="2" max="8" value="6" class="slider" id="nodeSizeSlider" step=0.1>
</div>
</div>
<div class="viewer-setting container">
<div class="viewer-key button"> Font Size </div>
<div class="viewer-value button" id="fontSize"></div>
<div class="slidecontainer">
<input type="range" min="0.5" max="4" value="1.2" class="slider" id="fontSizeSlider" step=0.1>
</div>
</div>
<div class="viewer-setting container">
<div class="viewer-key button"> Link Width </div>
<div class="viewer-value button" id="linkWidth"></div>
<div class="slidecontainer">
<input type="range" min="0.1" max="1" value="0.4" class="slider" id="linkWidthSlider" step=0.1>
</div>
</div>
<div class="viewer-setting container">
<div class="viewer-key button"> Constraint Layout </div>
<input class="tgl tgl-light" id="dag" type="checkbox">
<label class="tgl-btn" for="dag"></label>
</div>
<div class="viewer-setting container">
<div class="viewer-key button"> Dark Mode </div>
<input class="tgl tgl-light" id="darkMode" type="checkbox">
<label class="tgl-btn" for="darkMode"></label>
</div>
<div class="viewer-setting container">
<div class="viewer-key button"> Link Labels </div>
<input class="tgl tgl-light" id="linkLabels" type="checkbox">
<label class="tgl-btn" for="linkLabels"></label>
</div>
<div class="viewer-setting container">
<div class="viewer-key"> Search</div>
<div class="viewer-value button" id="searchBy">
<label class="radio-container">ID
<input type="radio" checked="checked" name="searchBy" value="id" onclick="javascript:search()">
<span class="checkmark"/>
</label>
<label class="radio-container">Type
<input type="radio" name="searchBy" value="type" onclick="javascript:search()">
<span class="checkmark"/>
</label>
</div>
<input type="search" id="search">
</div>
<div class="viewer-setting container">
<button class="green-button" id="rooElements" onclick="javascript:showParents()">Root Elements</button>
</div>
<div class="viewer-setting container">
<button class="green-button" onclick="javascript:expandAll()">Expand All</button>
</div>
<div class="viewer-setting container">
<button class="green-button" id="exportAnalysis">Export Analysis</button>
</div>
<div class="viewer-setting container">
<button class="green-button" id="download" onclick="javascript:downloadFile()">Download</button>
</div>
</div>
<div id="graph" class="canvas">
</div>
</div>
<div id="editor" class="container">
<div id="title-editor" class="title">
EDITOR
</div>
<div id="editor-sidebar" class="container">
<div class="node-details" class="container">
<div id="node-name" class="node-detail container">
<div class="key">
NAME
</div>
<div class="value">
<input type="search" class="value" id="nodeName" list="nodeNames">
<datalist id="nodeNames"></datalist>
</div>
</div>
<div id="node-type" class="node-detail">
<div class="key">
TYPE
</div>
<div class="value">
<input type="search" class="value" id="nodeType" list="nodeTypes">
<datalist id="nodeTypes"></datalist>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
$('#enterURL').show()
});
</script>
</body>
</html>