-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
654 lines (567 loc) · 34.1 KB
/
index.html
File metadata and controls
654 lines (567 loc) · 34.1 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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Professional Windows driver catalog for NVIDIA, AMD, Intel, chipset, audio, and network drivers.">
<meta name="keywords" content="driver downloads, NVIDIA drivers, AMD drivers, Intel drivers, chipset drivers, Windows drivers">
<meta name="author" content="DriverHub">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://raw.githubusercontent.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' https://prod.rexxit.net https://web-platforms.sfo2.cdn.digitaloceanspaces.com data: https:; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://raw.githubusercontent.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self';">
<link rel="canonical" href="https://driverhub.win/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://driverhub.win/">
<meta property="og:title" content="DriverHub - Professional Windows Driver Catalog">
<meta property="og:description" content="Trust-first driver catalog with compare mode, risk labels, and compatibility filters.">
<meta property="og:image" content="https://prod.rexxit.net/global/_icons/DH-logo-optim.webp">
<title>DriverHub - Professional Windows Driver Catalog</title>
<script>
(function() {
const userPreference = localStorage.getItem('darkMode');
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)").matches;
if (userPreference === 'dark' || (userPreference === null && prefersDarkScheme)) {
document.documentElement.classList.add('dark');
}
})();
</script>
<meta name="theme-color" content="#0f172a">
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="global/tailwind.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="global/favicon.ico">
</head>
<body class="bg-gray-50 dark:bg-gray-950 text-gray-900 dark:text-gray-100 min-h-screen flex flex-col">
<a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary-500 focus:text-white focus:rounded-lg">Skip to main content</a>
<header class="sticky top-0 z-40 bg-white/80 dark:bg-gray-950/80 backdrop-blur-xl border-b border-gray-200 dark:border-gray-800">
<div class="max-w-6xl mx-auto px-4 md:px-6">
<div class="flex items-center justify-between h-14">
<a href="/" class="flex items-center gap-2.5">
<img src="https://prod.rexxit.net/global/_icons/DH-logo-optim.webp" alt="DriverHub" class="h-8 w-8">
<span class="text-lg font-bold text-gray-900 dark:text-white">DriverHub</span>
</a>
<div class="flex items-center gap-1.5">
<button id="global-search-btn" type="button" aria-haspopup="dialog" aria-controls="search-overlay" aria-expanded="false" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400 transition-colors" title="Search (Ctrl+K)">
<span class="material-icons text-[20px]">search</span>
</button>
<button id="favorites-btn" type="button" aria-haspopup="dialog" aria-controls="favorites-panel" aria-expanded="false" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400 transition-colors" title="Watchlist">
<span class="material-icons text-[20px]">star_outline</span>
</button>
<button id="darkModeToggle" type="button" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400 transition-colors" title="Toggle dark mode">
<span class="material-icons text-[20px]">dark_mode</span>
</button>
<button class="settings-button p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400 transition-colors" type="button" aria-label="Settings" aria-haspopup="dialog" aria-controls="settings-overlay" aria-expanded="false" title="Settings">
<span class="material-icons text-[20px]">tune</span>
</button>
</div>
</div>
<nav class="flex items-center gap-0.5 -mb-px overflow-x-auto scrollbar-hide" role="navigation" aria-label="Main navigation">
<a href="/" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-primary-600 text-primary-600 dark:text-primary-400 dark:border-primary-400 whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">home</span>Home
</a>
<a href="/display" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">videocam</span>Graphics
</a>
<a href="/chipset" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">memory</span>Chipset
</a>
<a href="/network" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">wifi</span>Network
<span class="px-1.5 py-0.5 text-[10px] font-semibold tracking-wide uppercase rounded bg-primary-50 dark:bg-primary-900/30 text-primary-600 dark:text-primary-300">Preview</span>
</a>
<a href="/audio" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">headphones</span>Audio
<span class="px-1.5 py-0.5 text-[10px] font-semibold tracking-wide uppercase rounded bg-primary-50 dark:bg-primary-900/30 text-primary-600 dark:text-primary-300">Preview</span>
</a>
<div class="w-px h-5 bg-gray-200 dark:bg-gray-700 mx-1.5"></div>
<a href="/contact" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">mail_outline</span>Contact
</a>
<a href="https://docs.rexxit.net/drivers-website/" target="_blank" rel="noopener noreferrer" class="px-3 py-2.5 text-sm font-medium flex items-center gap-1.5 border-b-2 border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white whitespace-nowrap transition-colors">
<span class="material-icons text-[18px]">description</span>Docs
<svg class="w-3 h-3 opacity-40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>
</a>
</nav>
</div>
</header>
<div id="settings-overlay" class="settings-overlay hidden fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center" role="dialog" aria-modal="true" aria-labelledby="settings-title" aria-hidden="true" tabindex="-1">
<div id="settings-dialog" class="w-full max-w-md mx-4 bg-white dark:bg-gray-900 rounded-xl shadow-2xl overflow-hidden transition-all" style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);" tabindex="-1">
<div class="bg-gray-900 dark:bg-gray-800 px-6 py-4">
<div class="flex items-center justify-between">
<h2 id="settings-title" class="text-lg font-semibold text-white">Settings</h2>
<button class="close-settings p-1.5 rounded-lg hover:bg-white/10 text-white/70 hover:text-white transition-colors" type="button" aria-label="Close settings">
<span class="material-icons text-[20px]">close</span>
</button>
</div>
</div>
<div class="p-6 space-y-6">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<span class="material-icons text-gray-400">dark_mode</span>
<span class="font-medium text-gray-900 dark:text-white">Dark Mode</span>
</div>
<button id="settingsDarkToggle" class="relative w-14 h-8 bg-gray-200 dark:bg-primary-500 rounded-full transition-colors" type="button" aria-label="Toggle dark mode" aria-pressed="false">
<span class="absolute left-1 dark:left-7 top-1 w-6 h-6 bg-white rounded-full shadow-md transition-all duration-200"></span>
</button>
</div>
<hr class="border-gray-200 dark:border-gray-700">
<div class="space-y-3">
<label for="regionSelect" class="flex items-center gap-3">
<span class="material-icons text-gray-400">public</span>
<span class="font-medium text-gray-900 dark:text-white">Download Region</span>
</label>
<select id="regionSelect" class="w-full px-4 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-transparent focus:border-primary-500 outline-none transition-colors text-gray-900 dark:text-white">
<option value="USA">USA</option>
<option value="EU">EU</option>
</select>
<p class="text-sm text-gray-500"><a href="https://docs.rexxit.net/drivers-website/articles/region-selection" target="_blank" rel="noopener noreferrer" class="text-primary-500 hover:text-primary-600 hover:underline">Learn more about regions</a></p>
</div>
</div>
</div>
</div>
<main id="main-content" class="flex-1 max-w-7xl mx-auto px-4 md:px-6 w-full">
<section class="pt-16 pb-12 text-center" data-animate>
<h1 class="text-4xl md:text-5xl font-bold text-gray-900 dark:text-white tracking-tight mb-4">Quick, Open Source Driver Catalog for Windows!</h1>
<p class="page-subheading max-w-2xl mx-auto mb-8">All downloads go to the official vendor's links, compare drivers, search, filter, and more! </p>
<form id="hero-command-form" class="hero-command" role="search" aria-label="Command search">
<span class="material-icons text-primary-500">terminal</span>
<input id="hero-command-input" type="text" class="hero-command-input" placeholder="Search: 581.94, game-ready, low risk, Intel Pro..." autocomplete="off">
<kbd class="hero-command-chip">Ctrl+K</kbd>
<button type="submit" class="btn-primary !px-4 !py-2">
<span class="material-icons text-lg">search</span>
Search
</button>
</form>
<div class="mobile-hero-actions">
<a href="/display" class="btn-primary">
<span class="material-icons text-lg">download</span>
Browse Graphics
</a>
<button id="hero-search-btn" class="btn-secondary" type="button">
<span class="material-icons text-lg">search</span>
Search Catalog
</button>
</div>
</section>
<section class="card p-6 mb-8" data-animate>
<div class="flex items-center justify-between flex-wrap gap-3 mb-4">
<div>
<h2 class="section-heading">Recommendation Wizard</h2>
<p class="text-sm text-gray-500 dark:text-gray-400">Generate a deep link with vendor, channel, risk, and OS filters.</p>
</div>
<a id="wizard-link-preview" href="/display" class="text-sm text-primary-600 dark:text-primary-400 hover:underline">Preview link</a>
</div>
<div class="grid md:grid-cols-5 gap-3">
<select id="rec-brand" class="px-4 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-transparent focus:border-primary-500 outline-none text-gray-900 dark:text-white">
<option value="nvidia">NVIDIA</option>
<option value="intel">Intel</option>
<option value="amd">AMD</option>
</select>
<select id="rec-channel" class="px-4 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-transparent focus:border-primary-500 outline-none text-gray-900 dark:text-white">
<option value="">Any channel</option>
<option value="game-ready">Game Ready</option>
<option value="studio">Studio</option>
</select>
<select id="rec-risk" class="px-4 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-transparent focus:border-primary-500 outline-none text-gray-900 dark:text-white">
<option value="">Any risk</option>
<option value="low">Low risk</option>
<option value="medium">Medium risk</option>
<option value="high">High risk</option>
</select>
<select id="rec-os" class="px-4 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-transparent focus:border-primary-500 outline-none text-gray-900 dark:text-white">
<option value="">Any OS</option>
<option value="windows-11">Windows 11</option>
<option value="windows-10">Windows 10</option>
</select>
<button id="rec-go" type="button" class="btn-primary justify-center">
<span class="material-icons text-lg">arrow_forward</span>
Open
</button>
</div>
</section>
<section class="grid md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8" data-animate>
<a href="/display" class="card-hover p-5">
<div class="flex items-center gap-2 mb-1">
<span class="material-icons text-primary-500 text-[20px]" aria-hidden="true">videocam</span>
<h3 class="font-semibold text-gray-900 dark:text-white">Graphics</h3>
</div>
<p class="text-sm text-gray-500 dark:text-gray-400">Desktop and laptop GPU channels.</p>
</a>
<a href="/chipset" class="card-hover p-5">
<div class="flex items-center gap-2 mb-1">
<span class="material-icons text-primary-500 text-[20px]" aria-hidden="true">memory</span>
<h3 class="font-semibold text-gray-900 dark:text-white">Chipset</h3>
</div>
<p class="text-sm text-gray-500 dark:text-gray-400">AMD and Intel chipset utilities.</p>
</a>
<a href="/audio" class="card-hover p-5">
<div class="flex items-center gap-2 mb-1">
<span class="material-icons text-primary-500 text-[20px]" aria-hidden="true">headphones</span>
<h3 class="font-semibold text-gray-900 dark:text-white">Audio</h3>
</div>
<p class="text-sm text-gray-500 dark:text-gray-400">Production audio listings.</p>
</a>
<a href="/network" class="card-hover p-5">
<div class="flex items-center gap-2 mb-1">
<span class="material-icons text-primary-500 text-[20px]" aria-hidden="true">wifi</span>
<h3 class="font-semibold text-gray-900 dark:text-white">Network</h3>
</div>
<p class="text-sm text-gray-500 dark:text-gray-400">Wi-Fi and ethernet listings.</p>
</a>
</section>
<section class="grid lg:grid-cols-2 items-start gap-6 mb-16" data-animate>
<div class="card p-6">
<button type="button" class="w-full flex items-center justify-between gap-3 text-left" data-home-panel-toggle="best-picks-panel" aria-expanded="true" aria-controls="best-picks-panel">
<span class="flex items-center gap-2">
<span class="material-icons text-primary-500">verified</span>
<h2 class="section-heading">Current Best Picks</h2>
</span>
<span class="material-icons text-gray-500 dark:text-gray-400" data-home-panel-icon>expand_less</span>
</button>
<div id="best-picks-panel" class="mt-3">
<div id="best-picks" class="space-y-3 text-sm text-gray-600 dark:text-gray-300"></div>
</div>
</div>
<div class="card p-6">
<button type="button" class="w-full flex items-center justify-between gap-3 text-left" data-home-panel-toggle="recent-timeline-panel" aria-expanded="true" aria-controls="recent-timeline-panel">
<span class="flex items-center gap-2">
<span class="material-icons text-primary-500">timeline</span>
<h2 class="section-heading">Recent Update Timeline</h2>
</span>
<span class="material-icons text-gray-500 dark:text-gray-400" data-home-panel-icon>expand_less</span>
</button>
<div id="recent-timeline-panel" class="mt-3">
<div id="recent-timeline" class="space-y-3 text-sm text-gray-600 dark:text-gray-300"></div>
</div>
</div>
</section>
</main>
<footer class="border-t border-gray-200 dark:border-gray-800 mt-auto">
<div class="max-w-6xl mx-auto px-4 md:px-6 py-10">
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 mb-8">
<div class="col-span-2 md:col-span-1">
<a href="/" class="flex items-center gap-2 mb-3">
<img src="https://prod.rexxit.net/global/_icons/DH-logo-optim.webp" alt="DriverHub" class="h-7 w-7">
<span class="font-semibold text-gray-900 dark:text-white">DriverHub</span>
</a>
<p class="text-sm text-gray-500 dark:text-gray-400">Free Windows driver downloads from official sources.</p>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-900 dark:text-white mb-3">Drivers</h4>
<ul class="space-y-2 text-sm">
<li><a href="/display" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Graphics</a></li>
<li><a href="/chipset" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Chipset</a></li>
</ul>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-900 dark:text-white mb-3">Resources</h4>
<ul class="space-y-2 text-sm">
<li><a href="https://docs.rexxit.net/drivers-website/" target="_blank" rel="noopener noreferrer" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Documentation</a></li>
<li><a href="https://docs.rexxit.net/drivers-website/releasenotes" target="_blank" rel="noopener noreferrer" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Release Notes</a></li>
<li><a href="/info/about-stabledrivers" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Stability Ratings</a></li>
<li><a href="/info/trust-center" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Trust Center</a></li>
<li><a href="/info/credits" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Credits</a></li>
<li><a href="/feeds/drivers.json" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Driver Feed (JSON)</a></li>
<li><a href="/feeds/drivers.xml" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Driver Feed (RSS)</a></li>
</ul>
</div>
<div>
<h4 class="text-sm font-semibold text-gray-900 dark:text-white mb-3">About</h4>
<ul class="space-y-2 text-sm">
<li><a href="/contact" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Contact</a></li>
<li><a href="/sitemap.xml" class="text-gray-500 hover:text-gray-900 dark:hover:text-white transition-colors">Sitemap</a></li>
<li><a href="https://www.buymeacoffee.com/burnttoasters" target="_blank" rel="noopener noreferrer" class="inline-flex items-center px-2.5 py-1 rounded-md bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300 hover:bg-primary-200 dark:hover:bg-primary-800/40 transition-colors">❤️ Support Us!</a></li>
</ul>
</div>
</div>
<div class="pt-6 border-t border-gray-200 dark:border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-3 text-sm text-gray-400 dark:text-gray-500">
<div class="flex items-center gap-3">
<span id="site-version"></span>
<span id="update-date"></span>
</div>
<div class="flex items-center gap-2 sm:gap-3">
<a href="https://github.com/BurntToasters/driverWeb" target="_blank" rel="noopener noreferrer" class="inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white transition-colors" aria-label="DriverWeb GitHub repository">
<span class="material-icons text-[16px]">code</span>
GitHub
</a>
<a href="https://www.digitalocean.com/?refcode=7bd0fa8e307c&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge" target="_blank" rel="noopener noreferrer" class="opacity-80 hover:opacity-100 transition-opacity">
<img src="https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg" class="h-8" alt="DigitalOcean" loading="lazy">
</a>
</div>
</div>
</div>
</footer>
<script src="global/favorites.js"></script>
<script src="global/search.js"></script>
<script src="global/darkMode.js"></script>
<script src="global/regionSwitcher.js"></script>
<script src="global/modern.js"></script>
<script src="global/versionInfo.js"></script>
<script src="global/backToTop.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('[data-home-panel-toggle]').forEach(function(button) {
button.addEventListener('click', function() {
const panelId = button.getAttribute('data-home-panel-toggle');
const panel = panelId ? document.getElementById(panelId) : null;
if (!panel) return;
const expanded = button.getAttribute('aria-expanded') !== 'false';
button.setAttribute('aria-expanded', expanded ? 'false' : 'true');
panel.classList.toggle('hidden', expanded);
const icon = button.querySelector('[data-home-panel-icon]');
if (icon) icon.textContent = expanded ? 'expand_more' : 'expand_less';
});
});
const heroSearchBtn = document.getElementById('hero-search-btn');
if (heroSearchBtn && typeof SearchModule !== 'undefined') {
heroSearchBtn.addEventListener('click', () => SearchModule.open());
}
const heroCommandForm = document.getElementById('hero-command-form');
const heroCommandInput = document.getElementById('hero-command-input');
if (heroCommandForm && heroCommandInput) {
heroCommandForm.addEventListener('submit', function(event) {
event.preventDefault();
const query = heroCommandInput.value.trim();
if (!query) return;
if (typeof SearchModule !== 'undefined' && typeof SearchModule.openWithQuery === 'function') {
SearchModule.openWithQuery(query);
} else {
window.location.href = `/display?q=${encodeURIComponent(query)}`;
}
});
}
const recBrand = document.getElementById('rec-brand');
const recChannel = document.getElementById('rec-channel');
const recRisk = document.getElementById('rec-risk');
const recOs = document.getElementById('rec-os');
const recGo = document.getElementById('rec-go');
const previewLink = document.getElementById('wizard-link-preview');
const amdSupportUrl = 'https://www.amd.com/en/support/download/drivers.html';
const channelOptionsByBrand = {
nvidia: [
{ value: '', label: 'Any channel' },
{ value: 'game-ready', label: 'Game Ready' },
{ value: 'studio', label: 'Studio' }
],
intel: [
{ value: '', label: 'Any channel' },
{ value: 'game-on', label: 'Game On' },
{ value: 'pro', label: 'Pro' },
{ value: 'chipset', label: 'Chipset' }
],
amd: [
{ value: 'graphics', label: 'Graphics' },
{ value: 'chipset', label: 'Chipset' }
]
};
function setControlDisabled(node, disabled) {
if (!node) return;
node.disabled = disabled;
node.classList.toggle('opacity-60', disabled);
node.classList.toggle('cursor-not-allowed', disabled);
}
function syncChannelOptions() {
if (!recBrand || !recChannel) return;
const brand = recBrand.value || 'nvidia';
const options = channelOptionsByBrand[brand] || channelOptionsByBrand.nvidia;
const previousValue = recChannel.value;
recChannel.textContent = '';
options.forEach(function(optionDef) {
const option = document.createElement('option');
option.value = optionDef.value;
option.textContent = optionDef.label;
recChannel.appendChild(option);
});
const hasPrevious = options.some((optionDef) => optionDef.value === previousValue);
recChannel.value = hasPrevious ? previousValue : options[0].value;
}
function buildWizardTarget() {
const brand = recBrand ? recBrand.value : '';
const channel = recChannel ? recChannel.value : '';
if (brand === 'amd') {
return {
href: amdSupportUrl,
external: true,
usesDisplayFilters: false
};
}
if (brand === 'intel' && channel === 'chipset') {
return {
href: '/chipset',
external: false,
usesDisplayFilters: false
};
}
const params = new URLSearchParams();
if (brand) params.set('brand', brand);
if (channel) params.set('channel', channel);
if (recRisk && recRisk.value) params.set('risk', recRisk.value);
if (recOs && recOs.value) params.set('os', recOs.value);
return {
href: `/display${params.toString() ? `?${params.toString()}` : ''}`,
external: false,
usesDisplayFilters: true
};
}
function syncWizardUi() {
const target = buildWizardTarget();
setControlDisabled(recRisk, !target.usesDisplayFilters);
setControlDisabled(recOs, !target.usesDisplayFilters);
if (!target.usesDisplayFilters) {
if (recRisk) recRisk.value = '';
if (recOs) recOs.value = '';
}
if (previewLink) {
previewLink.href = target.href;
if (target.external) {
previewLink.target = '_blank';
previewLink.rel = 'noopener noreferrer';
} else {
previewLink.removeAttribute('target');
previewLink.removeAttribute('rel');
}
}
}
function escapeHtml(value) {
return String(value == null ? '' : value)
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''');
}
function parseDateValue(value) {
if (!value) return null;
const parsed = new Date(value);
return Number.isNaN(parsed.getTime()) ? null : parsed;
}
const timelineDateFormatter = new Intl.DateTimeFormat(undefined, {
month: 'short',
day: 'numeric',
year: 'numeric',
hour: 'numeric',
minute: '2-digit',
timeZoneName: 'short'
});
const timelineRelativeFormatter = new Intl.RelativeTimeFormat(undefined, { numeric: 'auto' });
function formatRelativeTime(dateValue) {
if (!dateValue) return '';
const diffMs = dateValue.getTime() - Date.now();
const minuteMs = 60 * 1000;
const hourMs = 60 * minuteMs;
const dayMs = 24 * hourMs;
const weekMs = 7 * dayMs;
const monthMs = 30 * dayMs;
const yearMs = 365 * dayMs;
let unit = 'minute';
let value = Math.round(diffMs / minuteMs);
if (Math.abs(diffMs) >= yearMs) {
unit = 'year';
value = Math.round(diffMs / yearMs);
} else if (Math.abs(diffMs) >= monthMs) {
unit = 'month';
value = Math.round(diffMs / monthMs);
} else if (Math.abs(diffMs) >= weekMs) {
unit = 'week';
value = Math.round(diffMs / weekMs);
} else if (Math.abs(diffMs) >= dayMs) {
unit = 'day';
value = Math.round(diffMs / dayMs);
} else if (Math.abs(diffMs) >= hourMs) {
unit = 'hour';
value = Math.round(diffMs / hourMs);
}
return timelineRelativeFormatter.format(value, unit);
}
function formatTimelinePublishedAt(value) {
const parsed = parseDateValue(value);
if (!parsed) return value || 'Unknown date';
const absolute = timelineDateFormatter.format(parsed);
const relative = formatRelativeTime(parsed);
return relative ? `${absolute} (${relative})` : absolute;
}
function safeInternalPath(pathValue) {
const value = String(pathValue || '').trim();
if (value.startsWith('/') && !value.startsWith('//')) return value;
return '/display';
}
if (recBrand) {
recBrand.addEventListener('change', function() {
syncChannelOptions();
syncWizardUi();
});
}
[recChannel, recRisk, recOs].forEach(function(node) {
if (!node) return;
node.addEventListener('change', syncWizardUi);
});
syncChannelOptions();
syncWizardUi();
if (recGo) {
recGo.addEventListener('click', function() {
const target = buildWizardTarget();
if (target.external) {
window.open(target.href, '_blank', 'noopener,noreferrer');
} else {
window.location.href = target.href;
}
});
}
function renderBestPicks(entries) {
const target = document.getElementById('best-picks');
if (!target) return;
target.textContent = '';
const groups = { nvidia: null, intel: null, amd: null };
entries.forEach(function(entry) {
if (!groups[entry.brand] && (entry.riskLevel === 'low' || entry.isStable)) groups[entry.brand] = entry;
});
Object.keys(groups).forEach(function(brand) {
const item = groups[brand];
const row = document.createElement('div');
row.className = 'p-3 rounded-lg bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700';
if (!item) {
row.textContent = `${brand.toUpperCase()}: No low-risk pick found`;
} else {
const pagePath = safeInternalPath(item.page || '/display');
const href = `${pagePath}?q=${encodeURIComponent(item.version || '')}&brand=${encodeURIComponent(item.brand || '')}`;
const label = `${brand.toUpperCase()} ${item.version || ''}`;
const meta = `${item.type || item.channel || 'General'} · ${item.releaseDate || 'Unknown date'} · ${item.riskLevel || 'medium'} risk`;
row.innerHTML = `<a href="${escapeHtml(href)}" class="font-medium text-primary-600 dark:text-primary-400 hover:underline">${escapeHtml(label)}</a><div class="text-xs text-gray-500 mt-1">${escapeHtml(meta)}</div>`;
}
target.appendChild(row);
});
}
function renderTimeline(delta) {
const target = document.getElementById('recent-timeline');
if (!target) return;
target.textContent = '';
const rows = (delta.recent || []).slice(0, 8);
if (!rows.length) {
target.textContent = 'No recent timeline entries.';
return;
}
rows.forEach(function(item) {
const row = document.createElement('div');
row.className = 'p-3 rounded-lg bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700';
const title = `${item.vendor ? String(item.vendor).toUpperCase() : 'Driver'} ${item.version || ''}`;
const publishedLabel = formatTimelinePublishedAt(item.publishedAt || item.releaseDate || '');
const meta = `${item.category || 'Update'} · ${item.type || 'changed'} · ${publishedLabel}`;
row.innerHTML = `<div class="font-medium text-gray-900 dark:text-white">${escapeHtml(title)}</div><div class="text-xs text-gray-500 mt-1">${escapeHtml(meta)}</div>`;
target.appendChild(row);
});
}
Promise.all([
fetch('/feeds/drivers.json').then((r) => r.ok ? r.json() : Promise.reject()),
fetch('/feeds/drivers-delta.json').then((r) => r.ok ? r.json() : Promise.reject())
]).then(function([feed, delta]) {
renderBestPicks(Array.isArray(feed.entries) ? feed.entries : []);
renderTimeline(delta || {});
}).catch(function() {
renderBestPicks([]);
renderTimeline({ recent: [] });
});
});
</script>
<script src="global/pwa.js"></script>
</body>
</html>