-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathroadmap.html
More file actions
142 lines (134 loc) Β· 7.29 KB
/
roadmap.html
File metadata and controls
142 lines (134 loc) Β· 7.29 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
<!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">
<a href="index.html" class="nav-logo">πΊοΈ DevRoadmaps</a>
<div class="nav-links" id="navLinks">
<a href="index.html#roadmaps">All Roadmaps</a>
<a href="index.html#features">Features</a>
</div>
<button class="hamburger" id="hamburger" aria-label="Toggle menu">
<span></span><span></span><span></span>
</button>
</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>