File size: 897 Bytes
a35e5e0
7fe0a1c
 
 
 
 
 
 
a35e5e0
 
7fe0a1c
 
 
 
 
 
 
 
 
 
 
a35e5e0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head><title>Sovereign Logic Map</title>
<style>
body { background: #000; color: #0f0; font-family: monospace; }
#graph-container { display: flex; flex-direction: column; padding: 20px; }
.node { border: 1px solid #0f0; margin: 5px; padding: 10px; }
</style>
</head>
<body>
<div id="graph-container"></div>
<input id="inputBox" placeholder="Query the sovereign core..." style="width:100%"/>
<script>
document.getElementById('inputBox').addEventListener('keydown', async e=>{
  if(e.key!=='Enter') return;
  const res = await fetch('/ripple', {method:'POST', body:JSON.stringify({text:e.target.value})});
  const data = await res.json();
  const container = document.getElementById('graph-container');
  container.innerHTML = data.steps.map(s => `<div class="node">[${s.operation}] Conf: ${s.confidence.toFixed(2)} - ${s.text}</div>`).join('');
});
</script>
</body>
</html>