-
Notifications
You must be signed in to change notification settings - Fork 0
/
viz.html
97 lines (82 loc) · 2.06 KB
/
viz.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Paradox and Infinity: Cayley Spheres</title>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: #000;
margin: 0px;
overflow: hidden;
}
#info, #path-display, #function-display, #x, #y, #z {
position: absolute;
color: #ffffff;
padding: 5px;
font-family: Monospace;
word-wrap: break-word;
font-size: 12px;
text-align: center;
z-index:100;
}
#x, #y, #z {
padding: 0px;
}
#info {
top: 10px; width: 100%;
}
#path-display {
top: 40px; width: 90%;
text-align: left;
margin-left: 5%;
margin-right: 5%;
}
#function-display {
top: 125px; width: 90%;
text-align: left;
margin-left: 5%;
margin-right: 5%;
}
#button {
position: absolute;
padding: 5px;
bottom: 8%;
width: 100%;
text-align: center;
}
a {
color: #d63031;
text-decoration: none;
}
a:hover {
color: #6EABC2;
}
</style>
</head>
<body>
<div id="info">
Source code for this demo is available at:
<a href="http://github.com/sydgibs"
target="_blank"
rel="noopener">
http://github.com/sydgibs </a>
</div>
<div id="path-display"></div>
<div id="function-display"></div>
<div id="button">
<button type="button" onclick="processArrow('ArrowLeft');">◀</button>
<button type="button" onclick="processArrow('ArrowDown');">▼</button>
<button type="button" onclick="processArrow('ArrowUp');">▲</button>
<button type="button" onclick="processArrow('ArrowRight');">▶</button>
<button type="button" onclick="reset();">Reset</button>
</div>
<div id="x">x</div>
<div id="y">y</div>
<div id="z">z</div>
<script src="./three.min.js"></script>
<script src="./Detector.js"></script>
<script src="./viz.js"></script>
</body>
</html>