-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathroadmap.html
More file actions
241 lines (230 loc) Β· 8.58 KB
/
Copy pathroadmap.html
File metadata and controls
241 lines (230 loc) Β· 8.58 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Roadmap β DevRoadmaps</title>
<meta
name="description"
content="Interactive developer roadmap with progress tracking, community tips, and free curated resources on DevRoadmaps."
/>
<meta property="og:title" content="Roadmap β DevRoadmaps" />
<meta
property="og:description"
content="Interactive developer roadmap with progress tracking, community tips, and free curated resources."
/>
<meta
property="og:url"
content="https://rudra496.github.io/devroadmaps/roadmap.html"
/>
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Roadmap β DevRoadmaps" />
<meta name="twitter:creator" content="@rudra496" />
<link
rel="canonical"
href="https://rudra496.github.io/devroadmaps/roadmap.html"
/>
<link rel="stylesheet" href="css/style.css" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>πΊοΈ</text></svg>"
/>
</head>
<body class="roadmap-page">
<canvas id="particles"></canvas>
<nav class="navbar" id="navbar">
<div
class="nav-container"
style="
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
"
>
<a href="index.html" class="nav-logo">πΊοΈ DevRoadmaps</a>
<div style="display: flex; align-items: center; gap: 25px">
<div class="nav-links" id="navLinks" style="display: flex; gap: 20px">
<a href="index.html#roadmaps">All Roadmaps</a>
<a href="index.html#features">Features</a>
</div>
<button
id="theme-toggle"
type="button"
class="flex items-center justify-center w-10 h-10 ml-2 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 transition-all duration-300"
>
<span id="theme-toggle-dark-icon" class="hidden text-xl">π</span>
<span id="theme-toggle-light-icon" class="hidden text-xl">βοΈ</span>
</button>
<button class="hamburger" id="hamburger" aria-label="Toggle menu">
<span></span><span></span><span></span>
</button>
</div>
</div>
</nav>
<header class="roadmap-header" id="roadmapHeader">
<div class="container">
<a href="index.html#roadmaps" class="back-link">β All Roadmaps</a>
<div class="roadmap-title-area">
<span class="roadmap-icon" id="roadmapIcon"></span>
<h1 id="roadmapTitle">Loading...</h1>
</div>
<p class="roadmap-desc" id="roadmapDesc"></p>
<div class="roadmap-controls">
<div class="search-box">
<input
type="text"
id="searchInput"
placeholder="Search topics..."
autocomplete="off"
/>
</div>
<div class="filter-buttons" id="filterButtons">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="fundamentals">
π Fundamentals
</button>
<button class="filter-btn" data-filter="intermediate">
π Intermediate
</button>
<button class="filter-btn" data-filter="advanced">
π Advanced
</button>
<button class="filter-btn" data-filter="tools">π§ Tools</button>
</div>
<div
class="filter-buttons"
id="resourceTypeFilters"
style="margin-top: 8px"
>
<button class="filter-btn active" data-rtype="all">
π All Resources
</button>
<button class="filter-btn" data-rtype="docs">π Docs</button>
<button class="filter-btn" data-rtype="video">π₯ Video</button>
<button class="filter-btn" data-rtype="course">π― Course</button>
<button class="filter-btn" data-rtype="tutorial">
π οΈ Tutorial
</button>
<button class="filter-btn" data-rtype="tool">π§ Tool</button>
</div>
<div class="action-buttons">
<button class="btn btn-sm" id="resetBtn">Reset Progress</button>
<button class="btn btn-sm" id="printBtn">π¨οΈ Print</button>
<button class="btn btn-sm" id="printChecklistBtn">
β
Print Checklist
</button>
<button class="btn btn-sm" id="printBookmarksBtn">
π Print Bookmarks
</button>
<button class="btn btn-sm" id="expandAllBtn">Expand All</button>
<button
class="btn btn-sm"
onclick="toggleTimer(currentRoadmap)"
id="timerToggle"
>
βΆ Start Timer
</button>
<span class="nav-badge" title="Study Timer"
><span id="timerDisplay">25:00</span>
<span id="timerLabel">π
Focus</span></span
>
<span class="nav-badge" title="Total Study Time"
>β±οΈ <span class="total-study-time">0m 0s</span></span
>
</div>
</div>
<div class="progress-bar-container">
<div class="progress-bar" id="progressBar">
<div class="progress-fill" id="progressFill"></div>
</div>
<span class="progress-text" id="progressText">0%</span>
</div>
<div
class="learner-count-display"
style="
text-align: center;
margin-top: 8px;
font-size: 13px;
color: var(--text-muted);
"
>
<span id="learnerCount"></span>
</div>
</div>
</header>
<main class="roadmap-main">
<div class="container">
<div class="roadmap-layout">
<!-- Minimap -->
<aside class="minimap" id="minimap">
<div class="minimap-content" id="minimapContent"></div>
</aside>
<!-- Roadmap Nodes -->
<div class="roadmap-nodes" id="roadmapNodes">
<!-- Populated by JS -->
</div>
</div>
</div>
</main>
<button class="back-to-top" id="backToTop" aria-label="Back to top">
β
</button>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">
π
</button>
<script src="js/main.js"></script>
<script src="js/community.js"></script>
<script src="js/learning-paths.js"></script>
<script src="js/timer.js"></script>
<script>
const params = new URLSearchParams(window.location.search);
const currentRoadmap = params.get("roadmap") || "";
initTimerWidget();
// Wire up print buttons
document
.getElementById("printChecklistBtn")
?.addEventListener("click", () => {
const progressKey = `progress-${currentRoadmap}`;
const completed = JSON.parse(
localStorage.getItem(progressKey) || "{}",
);
fetch(`roadmaps/${currentRoadmap}.json`)
.then((r) => r.json())
.then((data) => {
printChecklist(data.nodes, completed);
});
});
document
.getElementById("printBookmarksBtn")
?.addEventListener("click", () => {
const bookmarks = JSON.parse(
localStorage.getItem("devroadmaps-bookmarks") || "[]",
);
printBookmarksSummary(bookmarks);
});
// Resource type filter
let activeResourceType = "all";
document
.querySelectorAll("#resourceTypeFilters .filter-btn")
.forEach((btn) => {
btn.addEventListener("click", () => {
document
.querySelectorAll("#resourceTypeFilters .filter-btn")
.forEach((b) => b.classList.remove("active"));
btn.classList.add("active");
activeResourceType = btn.dataset.rtype;
document.querySelectorAll(".resource-link").forEach((link) => {
if (activeResourceType === "all") {
link.style.display = "";
} else {
link.style.display =
link.dataset.type === activeResourceType ? "" : "none";
}
});
});
});
</script>
</body>
</html>