-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (112 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
131 lines (112 loc) · 3.34 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
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>BlochSphere — Dissipative Reservoir</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: black;
font-family: 'Courier New', monospace;
color: #8899aa;
}
#ui {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 10;
display: flex;
flex-direction: column;
gap: 8px;
}
#stats {
position: fixed;
top: 20px;
left: 20px;
z-index: 10;
font-size: 12px;
line-height: 1.6;
opacity: 0.6;
}
#status {
position: fixed;
top: 20px;
right: 20px;
z-index: 10;
font-size: 12px;
opacity: 0.5;
}
.btn-row {
display: flex;
gap: 6px;
}
button {
background: rgba(30, 40, 50, 0.8);
border: 1px solid #334;
color: #8899aa;
padding: 6px 14px;
font-family: 'Courier New', monospace;
font-size: 12px;
cursor: pointer;
transition: all 0.2s;
}
button:hover {
background: rgba(50, 70, 90, 0.8);
border-color: #557;
}
button.active {
background: rgba(60, 90, 120, 0.8);
border-color: #79b;
color: #aaccee;
}
button.stimulus-a {
border-color: #e8a735;
}
button.stimulus-a:hover {
background: rgba(120, 80, 20, 0.4);
color: #e8a735;
}
button.stimulus-a.active {
background: rgba(180, 120, 20, 0.7);
border-color: #ffcc44;
color: #ffcc44;
box-shadow: 0 0 12px rgba(232, 167, 53, 0.4);
}
button.stimulus-b {
border-color: #35a7e8;
}
button.stimulus-b:hover {
background: rgba(20, 60, 120, 0.4);
color: #35a7e8;
}
button.stimulus-b.active {
background: rgba(20, 80, 180, 0.7);
border-color: #44bbff;
color: #44bbff;
box-shadow: 0 0 12px rgba(53, 167, 232, 0.4);
}
</style>
</head>
<body>
<div id="stats">
<div>weights: avg <span id="w-avg">—</span> max <span id="w-max">—</span></div>
<div>strong edges: <span id="w-strong">—</span></div>
<div>impulses: <span id="imp-count">—</span></div>
<div>graph: <span id="graph-status">building...</span></div>
</div>
<div id="status"></div>
<div id="ui">
<div class="btn-row">
<button class="stimulus-a" onclick="toggleStimulus('A')" id="btn-stim-a">stimulus A</button>
<button class="stimulus-b" onclick="toggleStimulus('B')" id="btn-stim-b">stimulus B</button>
</div>
<div class="btn-row">
<button onclick="resetWeights()">reset weights</button>
<button onclick="toggleWeightVis()" id="btn-vis">show paths</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="main.js"></script>
</body>
</html>