-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (60 loc) · 2.46 KB
/
index.html
File metadata and controls
63 lines (60 loc) · 2.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<style> body { margin: 0px; } </style>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>3d Networks</title>
<script src="jquery-3.6.0.js"></script>
<script src="//unpkg.com/three"></script>
<script src="//unpkg.com/three-spritetext"></script>
<script src="//unpkg.com/3d-force-graph"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="sidebar">
<div class="links">
<ul>
<li style="padding-right: 1em;"><button class="toggle-data-btn" onClick="toggleData()">Reload</button></li>
<li><button class="modal-btn" style="margin-right: 0.5em;">Load data</button></li>
<li><input type="checkbox" id ="my-checkbox" onclick="isChecked()">Node labels</li>
<label for="q_x" style="padding-left: 1em; padding-right: 0.3em;">Cube</label>
<li><input type="text" id = "q_x" name="q_x"></li>
<label for="esfera" style="padding-left: 1em; padding-right: 0.3em;">Sphere</label>
<li><input type="text" id = "esfera" name = "esfera"></li>
<li><input type="button" id = "esborra" value="Delete last object" style="margin-left: 0.5em; margin-right: 0.5em;"></li>
<li><input type="button" id = "esquerra" value="↶"></li>
<li><input type="button" id = "amunt" value="↑"></li>
<li><input type="button" id = "avall" value="↓"></li>
<li><input type="button" id = "dreta" value="↷"></li>
</ul>
</div>
</div>
<div id="3d-graph"></div>
<div class="graph-data">
<div class="modal-bg">
<div class="modal">
<h2>Load Data</h2>
<p>Please load a .json file with the following syntax:</p>
<div class="syntax">{
"nodes":[
{"id":1, "group":1 , "y":10,"x":0, "z": 40},
{"id":2, "group":2 , "y":20,"x":0, "z": 0},
...
],
"links":[
{"source":1, "target":2},
...
]
}</div>
<input type="file"/>
<p>Once you've loaded your data, close this window <br>
and click the "Reload" button to show your graph.</p>
<span class="modal-close">X</span>
</div>
</div>
</div>
<script src="index.js"></script>
<script src="codi.js"></script>
</body>
</html>