-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (52 loc) · 2.44 KB
/
index.html
File metadata and controls
59 lines (52 loc) · 2.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> <title>NANO-DAEMON MONITOR</title>
<style>
body { background-color: #000; color: #0f0; font-family: 'Courier New', monospace; padding: 20px; max-width: 800px; margin: auto; }
.box { border: 1px solid #0f0; padding: 15px; margin-bottom: 15px; box-shadow: 0 0 10px #030; }
h1 { text-shadow: 0 0 5px #0f0; text-align: center; font-size: 1.5em; }
#stability_bar { height: 10px; background-color: #111; width: 100%; border: 1px solid #0f0; margin-top: 10px; }
#stability_fill { height: 100%; background-color: #0f0; width: 0%; transition: width 0.8s; box-shadow: 0 0 15px #0f0; }
.label { color: #0a0; font-size: 0.8em; text-transform: uppercase; }
.value { font-size: 1.2em; display: block; margin-top: 5px; }
@media (max-width: 600px) {
body { padding: 10px; }
.box { padding: 10px; }
}
</style>
<meta http-equiv="refresh" content="1">
</head>
<body>
<h1>🧬 NANO-DAEMON: INF GROWING ORGANISM</h1>
<div class="box">
<span class="label">BIOLOGICAL STATUS</span>
<span class="value" id="status">EVOLVING</span>
</div>
<div class="box">
<span class="label">SYNAPTIC MASS (EXPERIENCE)</span>
<span class="value"><span id="count">0</span> QUANTA</span>
</div>
<div class="box">
<span class="label">COGNITIVE ENTROPY (INTELLIGENCE)</span>
<span class="value" id="neuron">0.0000</span>
<div class="label" style="margin-top:10px">SYNAPTIC PLASTICITY</div>
<div id="stability_bar"><div id="stability_fill"></div></div>
</div>
<div class="box">
<span class="label">LAST PERCEPTION</span>
<span class="value" style="font-size: 0.7em; color: #0c0;" id="last_file">None</span>
</div>
<script>
fetch('brain_state.json')
.then(response => response.json())
.then(data => {
document.getElementById('count').innerText = data.files_eaten;
document.getElementById('last_file').innerText = data.last_file;
document.getElementById('neuron').innerText = data.neuron_activity.toFixed(4);
let stab = data.brain_stability * 100;
document.getElementById('stability_fill').style.width = stab + '%';
});
</script>
</body>
</html>