-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (63 loc) · 2.41 KB
/
index.html
File metadata and controls
69 lines (63 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Leiden Algorithm — Interactive Guide</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Top Navigation -->
<nav id="top-nav">
<div class="nav-left">
<span class="logo">Leiden Algorithm</span>
</div>
<div class="step-indicators" id="step-indicators"></div>
<div class="nav-right">
<button id="btn-prev" class="nav-btn" disabled>← Prev</button>
<span id="step-counter">1 / 8</span>
<button id="btn-next" class="nav-btn">Next →</button>
</div>
</nav>
<!-- Main Layout -->
<div id="app">
<!-- Content Panel -->
<div id="content-panel">
<div id="step-content"></div>
</div>
<!-- Graph Panel -->
<div id="graph-panel">
<svg id="graph-svg"></svg>
<div id="graph-tooltip" class="tooltip"></div>
<div id="interactive-controls" class="hidden"></div>
</div>
<!-- Chat Sidebar -->
<div id="chat-panel">
<div class="chat-header">
<span>Ask about this step</span>
<button id="chat-toggle" class="chat-toggle-btn" title="Toggle chat">×</button>
</div>
<div id="chat-messages">
<div class="chat-msg bot">
<div class="msg-content">Hi! I can answer questions about the Leiden algorithm. Try asking about the current step, or questions like <em>"what if the algorithm chose a different node?"</em></div>
</div>
</div>
<div class="chat-input-area">
<input type="text" id="chat-input" placeholder="Ask a question..." autocomplete="off">
<button id="chat-send">Send</button>
</div>
</div>
</div>
<!-- Mobile chat toggle -->
<button id="chat-fab" class="chat-fab" title="Open chat">💬</button>
<script src="js/steps.js"></script>
<script src="js/graph.js"></script>
<script src="js/interactive.js"></script>
<script src="js/chat.js"></script>
<script src="js/main.js"></script>
</body>
</html>