-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
415 lines (372 loc) · 24.9 KB
/
Copy pathindex.html
File metadata and controls
415 lines (372 loc) · 24.9 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Faculty Tools Collection by A. Rahimi</title>
<!-- Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Favicon -->
<link rel="icon" type="image/svg+xml"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' rx='25' fill='%230d9488'/%3E%3Cpath d='M50,18 A22,22 0 0,0 30.5,54.5 C34.5,58.8 37,63.2 37,69 L63,69 C63,63.2 65.5,58.8 69.5,54.5 A22,22 0 0,0 50,18 Z M42,74 L58,74 A2,2 0 0,1 56,79 L44,79 A2,2 0 0,1 42,74 Z' fill='white'/%3E%3C/svg%3E">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap"
rel="stylesheet">
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
<!-- Common Library -->
<script src="common.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
mono: ['Fira Code', 'monospace'],
},
colors: {
brand: {
50: '#f0fdfa',
100: '#ccfbf1',
500: '#14b8a6',
600: '#0d9488',
900: '#134e4a',
}
}
}
}
}
</script>
<style>
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-track { background: #0f172a; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }
</style>
</head>
<body class="bg-gray-50 dark:bg-slate-950 text-gray-800 dark:text-slate-100 font-sans antialiased flex flex-col min-h-screen transition-colors duration-200">
<!-- Header / Navigation Bar -->
<header class="bg-white/90 dark:bg-slate-900/90 border-b border-gray-200 dark:border-slate-800 sticky top-0 z-50 shadow-sm backdrop-blur-md">
<div class="max-w-none px-4 sm:px-6 lg:px-8 py-3 flex flex-col sm:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3">
<div class="p-2 bg-brand-50 dark:bg-brand-900/40 text-brand-600 dark:text-brand-500 rounded-lg">
<i data-lucide="lightbulb" class="w-5 h-5"></i>
</div>
<div>
<h1 class="text-lg font-bold text-gray-900 dark:text-white leading-tight">Faculty Tools Collection</h1>
<p class="text-xs text-gray-500 dark:text-slate-400">Curated utilities to help you manage your academic & faculty duties</p>
</div>
</div>
<!-- Controls: Search + Quick Nav -->
<div class="flex items-center gap-3 w-full sm:w-auto">
<div class="relative w-full sm:w-72 lg:w-80 group">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-lucide="search" class="h-4 w-4 text-gray-400 group-focus-within:text-brand-500 transition-colors"></i>
</div>
<input type="text" id="searchInput"
class="block w-full pl-9 pr-3 py-1.5 border border-gray-300 dark:border-slate-700 rounded-lg text-sm bg-white dark:bg-slate-800 text-slate-900 dark:text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-brand-500 shadow-sm transition-all"
placeholder="Search tools (or press Ctrl+K)...">
</div>
<div id="header-quick-nav"></div>
</div>
</div>
</header>
<!-- Main Content: Tools Grid -->
<main id="tools" class="flex-grow max-w-none px-4 sm:px-6 lg:px-8 py-6 w-full flex flex-col">
<!-- Starred Tools Section (Dynamic) -->
<div id="starredSection" class="hidden mb-6">
<div class="flex items-center justify-between mb-3">
<div class="flex items-center gap-2">
<i data-lucide="star" class="w-4 h-4 fill-amber-400 text-amber-400"></i>
<h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider">Starred & Favorite Tools</h2>
</div>
</div>
<div id="starredGrid" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
<!-- Starred cards injected here -->
</div>
</div>
<!-- Filter Header & Refined Category Tabs + View Mode Switcher -->
<div class="flex flex-col lg:flex-row lg:items-center justify-between gap-4 mb-6">
<!-- Category Tabs -->
<div class="flex flex-wrap gap-1.5 p-1 bg-gray-200/60 dark:bg-slate-800/80 rounded-xl max-w-fit">
<button onclick="setCategory('All')" class="cat-tab active text-xs font-semibold px-3 py-1.5 rounded-lg transition-all bg-white dark:bg-slate-700 text-brand-600 dark:text-brand-400 shadow-sm">All</button>
<button onclick="setCategory('Research & Conferences')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">Research & Conferences</button>
<button onclick="setCategory('Grants & Funding')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">Grants & Funding</button>
<button onclick="setCategory('Teaching & Accreditation')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">Teaching & Accreditation</button>
<button onclick="setCategory('PDF & Document Suite')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">PDF & Document Suite</button>
<button onclick="setCategory('Data & Utilities')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">Data & Utilities</button>
<button onclick="setCategory('Simulations & Interactive')" class="cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700">Simulations & Interactive</button>
</div>
<!-- View Mode Buttons & Tool Count -->
<div class="flex items-center gap-4 justify-between lg:justify-end">
<span class="text-xs text-gray-500 dark:text-slate-400 font-medium" id="toolCount">Showing all tools.</span>
<!-- View Mode Toggle Buttons -->
<div class="flex items-center gap-1 p-1 bg-gray-200/60 dark:bg-slate-800/80 rounded-xl">
<button onclick="setViewMode('medium')" id="btnViewMedium" title="Standard Grid View" class="p-1.5 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-white dark:hover:bg-slate-700 transition-all bg-white dark:bg-slate-700 shadow-sm">
<i data-lucide="layout-grid" class="w-4 h-4"></i>
</button>
<button onclick="setViewMode('small')" id="btnViewSmall" title="Compact Small Cards" class="p-1.5 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-white dark:hover:bg-slate-700 transition-all">
<i data-lucide="grid-3x3" class="w-4 h-4"></i>
</button>
<button onclick="setViewMode('big')" id="btnViewBig" title="Detailed Large Cards" class="p-1.5 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-white dark:hover:bg-slate-700 transition-all">
<i data-lucide="square" class="w-4 h-4"></i>
</button>
<button onclick="setViewMode('list')" id="btnViewList" title="Horizontal List View" class="p-1.5 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-white dark:hover:bg-slate-700 transition-all">
<i data-lucide="list" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<!-- Grid Container -->
<div id="toolsGrid" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 gap-5">
<!-- Cards will be injected here by JavaScript -->
</div>
<!-- Empty State -->
<div id="emptyState" class="hidden text-center py-12">
<div class="inline-flex items-center justify-center w-12 h-12 rounded-full bg-gray-100 dark:bg-slate-800 mb-3">
<i data-lucide="search-x" class="h-6 w-6 text-gray-400"></i>
</div>
<h3 class="text-base font-medium text-gray-900 dark:text-slate-100">No matching tools found</h3>
<p class="text-xs text-gray-500 dark:text-slate-400 mt-1">Try adjusting your category filter or search terms.</p>
<button
onclick="document.getElementById('searchInput').value=''; setCategory('All');"
class="mt-3 text-sm text-brand-600 dark:text-brand-400 hover:underline font-medium">
Reset filters
</button>
</div>
</main>
<!-- Footer -->
<footer class="bg-white dark:bg-slate-900 border-t border-gray-200 dark:border-slate-800 py-3 mt-auto">
<div class="max-w-none px-4 sm:px-6 lg:px-8">
<div class="flex flex-col sm:flex-row items-center justify-between gap-2 text-xs text-gray-500 dark:text-slate-400">
<div class="flex items-center gap-1.5 font-medium text-gray-700 dark:text-slate-300">
<i data-lucide="lightbulb" class="w-4 h-4 text-brand-600 dark:text-brand-400"></i>
<span>Faculty Tools by A. Rahimi</span>
</div>
<div>
© 2026 Faculty Tools. Client-side & privacy-first.
</div>
<div class="flex items-center space-x-4">
<span class="text-[11px] bg-slate-100 dark:bg-slate-800 px-2 py-0.5 rounded text-slate-500 dark:text-slate-400">PWA Ready</span>
</div>
</div>
</div>
</footer>
<!-- Application Logic -->
<script>
const toolsData = FACULTY_TOOLS.map(t => {
let color = 'text-teal-600 dark:text-teal-400';
let bgColor = 'bg-teal-50 dark:bg-teal-950/40';
if (t.category === 'Research & Conferences') {
color = 'text-indigo-600 dark:text-indigo-400';
bgColor = 'bg-indigo-50 dark:bg-indigo-950/40';
} else if (t.category === 'Grants & Funding') {
color = 'text-rose-600 dark:text-rose-400';
bgColor = 'bg-rose-50 dark:bg-rose-950/40';
} else if (t.category === 'Teaching & Accreditation') {
color = 'text-purple-600 dark:text-purple-400';
bgColor = 'bg-purple-50 dark:bg-purple-950/40';
} else if (t.category === 'PDF & Document Suite') {
color = 'text-brand-600 dark:text-brand-400';
bgColor = 'bg-brand-50 dark:bg-brand-950/40';
} else if (t.category === 'Simulations & Interactive') {
color = 'text-amber-600 dark:text-amber-400';
bgColor = 'bg-amber-50 dark:bg-amber-950/40';
}
return {
...t,
color,
bgColor,
tags: [t.category, 'Utility']
};
});
let selectedCategory = 'All';
let currentViewMode = localStorage.getItem('faculty_tools_view_mode') || 'medium'; // 'medium', 'small', 'big', 'list'
const toolsGrid = document.getElementById('toolsGrid');
const searchInput = document.getElementById('searchInput');
const toolCountText = document.getElementById('toolCount');
const emptyState = document.getElementById('emptyState');
function setViewMode(mode) {
currentViewMode = mode;
localStorage.setItem('faculty_tools_view_mode', mode);
// Update button styles
const btnIds = { medium: 'btnViewMedium', small: 'btnViewSmall', big: 'btnViewBig', list: 'btnViewList' };
Object.keys(btnIds).forEach(m => {
const btn = document.getElementById(btnIds[m]);
if (btn) {
if (m === mode) {
btn.className = "p-1.5 rounded-lg text-slate-600 dark:text-slate-300 transition-all bg-white dark:bg-slate-700 shadow-sm";
} else {
btn.className = "p-1.5 rounded-lg text-slate-600 dark:text-slate-300 hover:bg-white dark:hover:bg-slate-700 transition-all";
}
}
});
// Update grid container layout classes
if (mode === 'small') {
toolsGrid.className = "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-3";
} else if (mode === 'big') {
toolsGrid.className = "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6";
} else if (mode === 'list') {
toolsGrid.className = "flex flex-col gap-2.5";
} else { // medium (default)
toolsGrid.className = "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 gap-5";
}
renderTools(searchInput.value);
}
function createCardHTML(tool) {
const starredSet = window.getStarredToolIds();
const isStarred = starredSet.has(tool.id);
const starClass = isStarred ? 'fill-amber-400 text-amber-400' : 'text-gray-300 dark:text-slate-600 hover:text-amber-400';
if (currentViewMode === 'small') {
return `
<div class="bg-white dark:bg-slate-900 rounded-xl p-3 border border-gray-200 dark:border-slate-800 shadow-sm hover:shadow-md hover:border-brand-400 transition-all flex flex-col h-full cursor-pointer group relative" onclick="navigateTo('${tool.title}', '${tool.path}')">
<div class="flex items-center justify-between mb-2">
<div class="p-1.5 rounded-lg ${tool.bgColor} ${tool.color}">
<i data-lucide="${tool.icon}" class="w-4 h-4"></i>
</div>
<button onclick="event.stopPropagation(); window.toggleStarTool('${tool.id}')" class="p-0.5">
<i data-lucide="star" class="w-3.5 h-3.5 ${starClass}"></i>
</button>
</div>
<h3 class="text-xs font-bold text-gray-900 dark:text-slate-100 truncate group-hover:text-brand-600 leading-tight mb-1">${tool.title}</h3>
<span class="text-[10px] text-gray-400 truncate mt-auto">${tool.category}</span>
</div>
`;
} else if (currentViewMode === 'big') {
return `
<div class="bg-white dark:bg-slate-900 rounded-2xl p-6 border border-gray-200 dark:border-slate-800 shadow-sm hover:shadow-2xl hover:-translate-y-1 hover:border-brand-500 transition-all duration-300 flex flex-col h-full cursor-pointer group relative" onclick="navigateTo('${tool.title}', '${tool.path}')">
<div class="flex items-start justify-between mb-4">
<div class="p-3.5 rounded-2xl ${tool.bgColor} ${tool.color} group-hover:scale-110 transition-transform">
<i data-lucide="${tool.icon}" class="w-7 h-7"></i>
</div>
<div class="flex items-center gap-1.5">
<button onclick="event.stopPropagation(); window.toggleStarTool('${tool.id}')" title="Star tool" class="p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-slate-800 transition-colors">
<i data-lucide="star" class="w-5 h-5 ${starClass}"></i>
</button>
<i data-lucide="arrow-up-right" class="w-6 h-6 text-gray-300 dark:text-slate-600 group-hover:text-brand-500 transition-colors"></i>
</div>
</div>
<h3 class="text-lg font-extrabold text-gray-900 dark:text-slate-100 mb-2 group-hover:text-brand-600 dark:group-hover:text-brand-400 transition-colors">${tool.title}</h3>
<p class="text-gray-500 dark:text-slate-400 text-sm mb-6 flex-grow leading-relaxed">${tool.description}</p>
<div class="flex items-center justify-between mt-auto pt-4 border-t border-gray-100 dark:border-slate-800">
<span class="inline-flex items-center px-2.5 py-1 rounded-lg text-xs font-semibold bg-gray-100 dark:bg-slate-800 text-gray-600 dark:text-slate-300">${tool.category}</span>
<span class="text-xs font-bold text-brand-600 dark:text-brand-400 group-hover:underline flex items-center gap-1">Open Tool <i data-lucide="chevron-right" class="w-3.5 h-3.5"></i></span>
</div>
</div>
`;
} else if (currentViewMode === 'list') {
return `
<div class="bg-white dark:bg-slate-900 rounded-xl p-3.5 border border-gray-200 dark:border-slate-800 shadow-sm hover:shadow-md hover:border-brand-400 transition-all flex items-center justify-between gap-4 cursor-pointer group" onclick="navigateTo('${tool.title}', '${tool.path}')">
<div class="flex items-center gap-3.5 min-w-0">
<div class="p-2 rounded-lg ${tool.bgColor} ${tool.color} shrink-0">
<i data-lucide="${tool.icon}" class="w-5 h-5"></i>
</div>
<div class="min-w-0">
<div class="flex items-center gap-2">
<h3 class="text-sm font-bold text-gray-900 dark:text-slate-100 group-hover:text-brand-600 transition-colors truncate">${tool.title}</h3>
<span class="text-[10px] px-2 py-0.5 rounded-full bg-gray-100 dark:bg-slate-800 text-gray-500 font-medium shrink-0">${tool.category}</span>
</div>
<p class="text-xs text-gray-500 dark:text-slate-400 truncate max-w-2xl">${tool.description}</p>
</div>
</div>
<div class="flex items-center gap-2 shrink-0">
<button onclick="event.stopPropagation(); window.toggleStarTool('${tool.id}')" title="Star tool" class="p-1 rounded hover:bg-gray-100 dark:hover:bg-slate-800 transition-colors">
<i data-lucide="star" class="w-4 h-4 ${starClass}"></i>
</button>
<i data-lucide="chevron-right" class="w-4 h-4 text-gray-400 group-hover:text-brand-500 transition-colors"></i>
</div>
</div>
`;
} else { // medium (default)
return `
<div class="bg-white dark:bg-slate-900 rounded-xl p-5 border border-gray-200 dark:border-slate-800 shadow-sm hover:shadow-xl hover:-translate-y-1 hover:border-brand-400 dark:hover:border-brand-500 transition-all duration-300 flex flex-col h-full cursor-pointer group relative" onclick="navigateTo('${tool.title}', '${tool.path}')">
<div class="flex items-start justify-between mb-3.5">
<div class="p-2.5 rounded-lg ${tool.bgColor} ${tool.color} group-hover:scale-110 transition-transform duration-300">
<i data-lucide="${tool.icon}" class="w-5 h-5"></i>
</div>
<div class="flex items-center gap-1">
<button onclick="event.stopPropagation(); window.toggleStarTool('${tool.id}')" title="Star tool" class="p-1 rounded hover:bg-gray-100 dark:hover:bg-slate-800 transition-colors">
<i data-lucide="star" class="w-4 h-4 ${starClass}"></i>
</button>
<i data-lucide="arrow-up-right" class="w-5 h-5 text-gray-300 dark:text-slate-600 group-hover:text-brand-500 transition-colors"></i>
</div>
</div>
<h3 class="text-base font-bold text-gray-900 dark:text-slate-100 mb-1.5 group-hover:text-brand-600 dark:group-hover:text-brand-400 transition-colors">${tool.title}</h3>
<p class="text-gray-500 dark:text-slate-400 text-sm mb-4 flex-grow leading-relaxed line-clamp-2" title="${tool.description}">${tool.description}</p>
<div class="flex flex-wrap gap-1.5 mt-auto pt-3 border-t border-gray-100 dark:border-slate-800">
<span class="inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium bg-gray-100 dark:bg-slate-800 text-gray-600 dark:text-slate-300">${tool.category}</span>
</div>
</div>
`;
}
}
function renderStarredTools() {
const section = document.getElementById('starredSection');
const grid = document.getElementById('starredGrid');
const starredSet = window.getStarredToolIds();
const starredTools = toolsData.filter(t => starredSet.has(t.id));
if (starredTools.length === 0) {
section.classList.add('hidden');
grid.innerHTML = '';
} else {
section.classList.remove('hidden');
grid.innerHTML = starredTools.map(t => createCardHTML(t)).join('');
}
}
window.onStarredToolsChanged = function() {
renderStarredTools();
renderTools(searchInput.value);
};
function setCategory(cat) {
selectedCategory = cat;
document.querySelectorAll('.cat-tab').forEach(tab => {
if (tab.textContent === cat || (cat === 'All' && tab.textContent === 'All')) {
tab.className = "cat-tab text-xs font-semibold px-3 py-1.5 rounded-lg transition-all bg-white dark:bg-slate-700 text-brand-600 dark:text-brand-400 shadow-sm";
} else {
tab.className = "cat-tab text-xs font-medium px-3 py-1.5 rounded-lg transition-all text-gray-600 dark:text-slate-400 hover:bg-white dark:hover:bg-slate-700";
}
});
renderTools(searchInput.value);
}
function renderTools(filterText = '') {
const lowerFilter = filterText.toLowerCase();
const filteredTools = toolsData.filter(tool => {
const matchesCategory = (selectedCategory === 'All') || (tool.category === selectedCategory);
const matchesSearch = tool.title.toLowerCase().includes(lowerFilter) ||
tool.description.toLowerCase().includes(lowerFilter) ||
tool.tags.some(tag => tag.toLowerCase().includes(lowerFilter));
return matchesCategory && matchesSearch;
});
if (filteredTools.length === 0) {
toolsGrid.innerHTML = '';
toolsGrid.classList.add('hidden');
emptyState.classList.remove('hidden');
toolCountText.textContent = `0 tools found.`;
} else {
toolsGrid.innerHTML = filteredTools.map(tool => createCardHTML(tool)).join('');
toolsGrid.classList.remove('hidden');
emptyState.classList.add('hidden');
toolCountText.textContent = `Showing ${filteredTools.length} tool${filteredTools.length === 1 ? '' : 's'}.`;
}
if (window.lucide) lucide.createIcons();
}
function navigateTo(toolName, path) {
if (path) {
window.location.href = path;
}
}
searchInput.addEventListener('input', (e) => {
renderTools(e.target.value);
});
setViewMode(currentViewMode);
renderStarredTools();
renderTools();
</script>
</body>
</html>