summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorThomas Grothe <grothe.tr@gmail.com>2026-02-22 22:53:29 -0500
committerThomas Grothe <grothe.tr@gmail.com>2026-02-22 22:53:29 -0500
commitcb35c8e69f1645a298542c75d26c4dcb744f0c2c (patch)
tree042d296db2f932a60a5236a1939209147d7ec0ae /index.html
parentf3d75ecf1e6006b2ab669a37dd73a5c7b03c4739 (diff)
pretty neatHEADmain
Diffstat (limited to 'index.html')
-rwxr-xr-xindex.html61
1 files changed, 53 insertions, 8 deletions
diff --git a/index.html b/index.html
index 86429fb..b800c26 100755
--- a/index.html
+++ b/index.html
@@ -6,11 +6,10 @@
<title>Graph Visualizer</title>
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/main.css">
- <link rel="stylesheet" href="css/table.css">
<style>
#visualizer-container {
width: 100%;
- height: 500px;
+ height: max(500px, 60vh);
background: #1a1a2e;
border-radius: 8px;
overflow: hidden;
@@ -24,10 +23,54 @@
display: flex;
gap: 10px;
flex-wrap: wrap;
+ align-items: center;
}
.visualizer-controls button {
margin-bottom: 0;
}
+ .visualizer-controls button:disabled {
+ opacity: 0.4;
+ cursor: not-allowed;
+ }
+ .status-bar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 1rem;
+ }
+ #presence-count {
+ color: #888;
+ font-size: 0.9rem;
+ }
+ /* Toast notification styles */
+ #toast-container {
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
+ z-index: 10000;
+ display: flex;
+ flex-direction: column-reverse;
+ gap: 8px;
+ pointer-events: none;
+ }
+ .toast {
+ padding: 10px 18px;
+ border-radius: 6px;
+ color: #fff;
+ font-size: 0.85rem;
+ opacity: 0;
+ transform: translateX(40px);
+ transition: opacity 0.3s, transform 0.3s;
+ pointer-events: auto;
+ }
+ .toast-visible {
+ opacity: 1;
+ transform: translateX(0);
+ }
+ .toast-info { background: rgba(78,205,196,0.9); }
+ .toast-success { background: rgba(46,204,113,0.85); }
+ .toast-error { background: rgba(255,107,107,0.9); }
</style>
</head>
<body>
@@ -44,15 +87,20 @@
<div class="visualizer-controls">
<button id="btn-add-node">Add Node</button>
<button id="btn-add-edge">Add Random Edge</button>
+ <button id="btn-connect-selected" disabled>Connect Two Nodes</button>
+ <button id="btn-delete-selected" disabled>Delete Selected</button>
<button id="btn-reset">Reset Graph</button>
</div>
</section>
- <center>- - -</center>
+ <hr>
<section>
- <div id="server-status">Server status: Connecting...</div>
+ <div class="status-bar">
+ <div id="server-status">Server status: Connecting...</div>
+ <div id="presence-count"></div>
+ </div>
</section>
<footer>
- <p>Drag to rotate | Scroll to zoom | Click nodes to select</p>
+ <p>Drag to rotate | Scroll to zoom | Click nodes to select | Drag nodes to move | Delete key to remove | Select 2 nodes to connect</p>
</footer>
</main>
</body>
@@ -65,9 +113,6 @@
}
}
</script>
-<script type="text/javascript">
- window.env = {'thing': 123123};
-</script>
<script type="module" src="js/visualizer.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</html>