-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (70 loc) · 2.76 KB
/
Copy pathindex.html
File metadata and controls
70 lines (70 loc) · 2.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AlgoBuddy — NeetCode Roadmap Visualizer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Interactive 60 FPS NeetCode 150 & LeetCode Roadmap Algorithm Visualizer built with Rust and egui.">
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="0"/>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: #181818;
color: #dcdcdc;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
#the_canvas_id {
width: 100%;
height: 100%;
display: block;
}
.loading-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
pointer-events: none;
user-select: none;
}
.spinner {
border: 4px solid rgba(255, 255, 255, 0.1);
width: 48px;
height: 48px;
border-radius: 50%;
border-left-color: #569cd6;
animation: spin 1s linear infinite;
margin: 0 auto 16px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<script>
window.addEventListener('error', function(e) {
var loading = document.getElementById('loading_text');
if (loading) {
loading.style.pointerEvents = 'auto';
loading.innerHTML = '<div style="color:#ef4444; font-family:sans-serif; padding:20px; background:#262626; border-radius:8px; max-width:500px; margin:auto; border:1px solid #7f1d1d;">' +
'<h3 style="margin-top:0">⚠️ WebAssembly Load Error</h3>' +
'<p style="font-family:monospace; font-size:13px; background:#171717; padding:10px; border-radius:4px; text-align:left;">' + (e.message || e) + '</p>' +
'<p style="color:#a3a3a3; font-size:12px;">Please check developer console (F12) for details.</p>' +
'</div>';
}
});
</script>
</head>
<body>
<canvas id="the_canvas_id"></canvas>
<div id="loading_text" class="loading-container">
<div class="spinner"></div>
<h2 style="margin: 0; font-size: 20px; color: #569cd6;">Loading AlgoBuddy...</h2>
<p style="margin-top: 8px; font-size: 14px; color: #a0a0a0;">Initial WebAssembly engine load</p>
</div>
</body>
</html>