-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
364 lines (337 loc) · 17.2 KB
/
index.html
File metadata and controls
364 lines (337 loc) · 17.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FAForever Patchnotes - Balance & Game Updates</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Browse and access the latest FAForever balance and game patch notes in an easy-to-read format.">
<meta name="keywords" content="FAForever, Supreme Commander, Forged Alliance, balance patches, game updates, strategy game">
<meta name="author" content="FAForever">
<!-- Canonical URL -->
<link rel="canonical" href="https://faforever.com/patchnotes">
<!-- PWA Manifest -->
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#00d2ff">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="FA Patches">
<link rel="apple-touch-icon" href="./assets/images/icons/icon-192x192.png">
<!-- Performance optimizations -->
<link rel="preconnect" href="https://raw.githubusercontent.com">
<link rel="preconnect" href="https://cdnjs.cloudflare.com">
<link rel="dns-prefetch" href="https://raw.githubusercontent.com">
<link rel="preload" href="./style/index.css?v=2.2" as="style">
<link rel="preload" href="./assets/images/faction/UEF.svg" as="image">
<link rel="preload" href="./assets/images/faction/Cybran.svg" as="image">
<link rel="preload" href="./assets/images/faction/Aeon.svg" as="image">
<link rel="preload" href="./assets/images/faction/Seraphim.svg" as="image">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
<!-- META Tags For Discord and Social Sharing -->
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/FAForever/patchnotes/master/assets/images/thumbnail/thumbnail.png">
<meta name="twitter:site" content="@FAForever">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="FAForever Patchnotes - Balance & Game Updates">
<meta name="twitter:description" content="Browse and access the latest FAForever balance and game patch notes in an easy-to-read format.">
<meta property="og:image:url" content="https://raw.githubusercontent.com/FAForever/patchnotes/master/assets/images/thumbnail/thumbnail.png">
<meta property="og:image:alt" content="FAForever Patchnote Site">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="600">
<meta property="og:site_name" content="FAForever">
<meta property="og:type" content="website">
<meta property="og:title" content="FAForever Patchnotes - Balance & Game Updates">
<meta property="og:url" content="https://faforever.com/patchnotes">
<meta property="og:description" content="Browse and access the latest FAForever balance and game patch notes in an easy-to-read format.">
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "FAForever Patchnotes",
"description": "Browse and access the latest FAForever balance and game patch notes in an easy-to-read format.",
"url": "https://faforever.com/patchnotes",
"publisher": {
"@type": "Organization",
"name": "FAForever",
"url": "https://faforever.com"
},
"mainEntity": {
"@type": "WebPage",
"@id": "https://faforever.com/patchnotes",
"name": "Balance Patches",
"description": "Collection of Supreme Commander: Forged Alliance Forever balance and game updates"
}
}
</script>
<!-- External CSS -->
<link rel="stylesheet" href="./style/index.css?v=2.2">
<link rel="stylesheet" href="./style/pwa.css">
<link rel="stylesheet" href="./style/components/keyboard-shortcuts.css">
<link rel="stylesheet" href="./style/components/pwa-cache.css">
<link rel="stylesheet" href="./style/components/accessibility.css">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<!-- Static CMS Identity Widget -->
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<!-- External Scripts -->
<script src="./scripts/logger.js"></script>
<script src="./scripts/lazyLoader.js" defer></script>
<script src="./scripts/errorBoundary.js" defer></script>
<script src="./scripts/performance.js" defer></script>
<script src="./scripts/analytics.js" defer></script>
<script src="./scripts/coreUI.js" defer></script>
<script src="./scripts/search.js" defer></script>
<script src="./scripts/populatePatches.js" defer></script>
<script src="./scripts/backToTop.js" defer></script>
<script src="./scripts/pwa.js" defer></script>
<script src="./scripts/keyboardShortcuts.js" defer></script>
</head>
<body>
<!-- Skip Link for Keyboard Navigation -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<main id="main-content" class="GridContainer" role="main">
<div class="Space"></div>
<!-- Enhanced Hero Section -->
<header class="HeroSection GridItemBackground" role="banner">
<div class="HeroContent">
<div class="HeroLeft">
<div class="HeroTitle">
<img id="faction-left" alt="Random Faction Logo" class="FactionIcon" loading="lazy">
<h1>FAForever Patchnotes</h1>
<img id="faction-right" alt="Random Faction Logo" class="FactionIcon" loading="lazy">
</div>
<p class="HeroSubtitle">
Comprehensive archive of Supreme Commander: Forged Alliance Forever balance updates
</p>
</div>
<div class="HeroRight">
<div class="HeroStats">
<div class="StatItem">
<span class="StatNumber" id="total-patches">--</span>
<span class="StatLabel">Total</span>
</div>
<div class="StatItem">
<span class="StatNumber" id="latest-year">--</span>
<span class="StatLabel">This Year</span>
</div>
</div>
<div class="HeroActions">
<a href="#" id="latest-patch-btn" class="PrimaryButton" aria-label="View latest patch notes">
<i class="fas fa-rocket" aria-hidden="true"></i>
<span>Latest</span>
</a>
<button type="button" id="random-patch-btn" class="SecondaryButton" aria-label="View a random patch from the archive">
<i class="fas fa-shuffle" aria-hidden="true"></i>
<span>Random</span>
</button>
</div>
</div>
</div>
</header>
<!-- Enhanced Patch Browser Section -->
<section class="PatchBrowser GridItemBackground" aria-label="Patch browser and search">
<div class="SectionHeader">
<h2>
<i class="fas fa-list" aria-hidden="true"></i>
Browse Patches
</h2>
<div class="SectionActions" role="group" aria-label="View options">
<button type="button" class="ViewToggle" data-view="list" aria-label="Switch to list view" aria-pressed="false" title="Switch to list view">
<i class="fas fa-list" aria-hidden="true"></i>
<span class="sr-only">List view</span>
</button>
<button type="button" class="ViewToggle active" data-view="grid" aria-label="Switch to grid view" aria-pressed="true" title="Switch to grid view">
<i class="fas fa-th-large" aria-hidden="true"></i>
<span class="sr-only">Grid view</span>
</button>
</div>
</div>
<!-- Enhanced Search and Filter Controls -->
<div class="PatchControls">
<div class="SearchRow">
<div class="SearchContainer">
<i class="fas fa-search SearchIcon" aria-hidden="true"></i>
<input
type="search"
id="patch-search"
placeholder="Search patches by number, content, or units..."
aria-label="Search through patch notes"
autocomplete="off"
>
<button type="button" id="clear-search" class="ClearButton" aria-label="Clear search input" title="Clear search">
<i class="fas fa-times" aria-hidden="true"></i>
<span class="sr-only">Clear</span>
</button>
</div>
<div class="SearchStats" role="status" aria-live="polite">
<span id="search-results">Showing all patches</span>
</div>
</div>
<div class="FilterRow">
<div class="FilterGroup">
<label for="year-filter" class="FilterLabel">
<i class="fas fa-calendar" aria-hidden="true"></i>
Year
</label>
<select id="year-filter" class="FilterSelect" aria-label="Filter patches by year">
<option value="">All years</option>
</select>
</div>
<div class="FilterGroup">
<label for="sort-filter" class="FilterLabel">
<i class="fas fa-sort" aria-hidden="true"></i>
Sort
</label>
<select id="sort-filter" class="FilterSelect" aria-label="Sort patches">
<option value="newest">Newest First</option>
<option value="oldest">Oldest First</option>
<option value="number-desc">Patch Number (High to Low)</option>
<option value="number-asc">Patch Number (Low to High)</option>
</select>
</div>
<div class="QuickFilters" role="group" aria-label="Quick filter options">
<button type="button" class="QuickFilter active" data-filter="all" aria-pressed="true">
<i class="fas fa-globe" aria-hidden="true"></i>
All
</button>
<button type="button" class="QuickFilter" data-filter="recent" aria-pressed="false">
<i class="fas fa-clock" aria-hidden="true"></i>
Recent
</button>
<button type="button" class="QuickFilter" data-filter="2025" aria-pressed="false">
<i class="fas fa-star" aria-hidden="true"></i>
2025
</button>
</div>
</div>
</div>
<!-- Loading State -->
<div id="loading-state" class="LoadingState" style="display: none;" role="status" aria-live="polite" aria-label="Loading patches">
<div class="LoadingSkeleton" aria-hidden="true">
<div class="SkeletonItem"></div>
<div class="SkeletonItem"></div>
<div class="SkeletonItem"></div>
<div class="SkeletonItem"></div>
</div>
<p>Loading patches...</p>
</div>
<!-- Patch List Container -->
<div class="PatchListContainer">
<div class="BalanceJSONList" role="list" aria-label="List of balance patches" aria-live="polite"></div>
</div>
<!-- No Results State -->
<div id="no-results" class="NoResults" style="display: none;" role="status" aria-live="polite">
<div class="NoResultsIcon" aria-hidden="true">
<i class="fas fa-search" aria-hidden="true"></i>
</div>
<h3>No patches found</h3>
<p>Try adjusting your search terms or filters.</p>
<button type="button" id="clear-all-filters" class="SecondaryButton">
<i class="fas fa-undo" aria-hidden="true"></i>
Clear all filters
</button>
</div>
</section>
</main>
<!-- Footer -->
<footer class="SiteFooter" role="contentinfo">
<div class="FooterContainer">
<!-- Navigation Section -->
<div class="FooterSection">
<h4 class="FooterTitle">Navigation</h4>
<nav class="FooterNav" aria-label="Footer navigation">
<a href="#main-content" class="FooterLink">
<i class="fas fa-list" aria-hidden="true"></i>
Patch List
</a>
<a href="#top" class="FooterLink BackToTopLink">
<i class="fas fa-arrow-up" aria-hidden="true"></i>
Back to Top
</a>
</nav>
</div>
<!-- Quick Actions Section -->
<div class="FooterSection">
<h4 class="FooterTitle">Quick Actions</h4>
<div class="FooterActions">
<button id="themeToggleButton" class="ThemeToggle">
<i class="fas fa-palette" aria-hidden="true"></i>
<span class="ToggleText">Toggle Dark/Light Mode</span>
</button>
<button class="PrintButton" onclick="window.print()">
<i class="fas fa-print" aria-hidden="true"></i>
<span>Print Page</span>
</button>
</div>
</div>
<!-- Faction Theme Section -->
<div class="FooterSection">
<h4 class="FooterTitle">Faction Theme</h4>
<div class="FactionThemes">
<button class="FactionButton active" data-faction="default" aria-label="Default theme">
<span class="FactionIcon">⚔️</span>
<span class="FactionLabel">Default</span>
</button>
<button class="FactionButton" data-faction="aeon" aria-label="Aeon theme">
<img src="/assets/images/faction/Aeon.svg" alt="Aeon" class="FactionLogo">
<span class="FactionLabel">Aeon</span>
</button>
<button class="FactionButton" data-faction="uef" aria-label="UEF theme">
<img src="/assets/images/faction/UEF.svg" alt="UEF" class="FactionLogo">
<span class="FactionLabel">UEF</span>
</button>
<button class="FactionButton" data-faction="cybran" aria-label="Cybran theme">
<img src="/assets/images/faction/Cybran.svg" alt="Cybran" class="FactionLogo">
<span class="FactionLabel">Cybran</span>
</button>
<button class="FactionButton" data-faction="sera" aria-label="Seraphim theme">
<img src="/assets/images/faction/Seraphim.svg" alt="Seraphim" class="FactionLogo">
<span class="FactionLabel">Sera</span>
</button>
<button class="FactionButton" data-faction="old-style" aria-label="Old Style theme">
<span class="FactionIcon">🔥</span>
<span class="FactionLabel">Old Style</span>
</button>
</div>
</div>
</div>
<!-- Bottom Bar -->
<div class="FooterBottom">
<div class="FooterBottomContent">
<div class="FooterBottomLinks">
<a href="https://www.faforever.com" class="FooterBottomLink" target="_blank" rel="noopener" aria-label="FAForever Website">
<i class="fas fa-globe" aria-hidden="true"></i>
</a>
<a href="https://discord.gg/mXahAXy" class="FooterBottomLink" target="_blank" rel="noopener" aria-label="Discord">
<i class="fab fa-discord" aria-hidden="true"></i>
</a>
<a href="https://github.com/FAForever" class="FooterBottomLink" target="_blank" rel="noopener" aria-label="GitHub">
<i class="fab fa-github" aria-hidden="true"></i>
</a>
<a href="https://forum.faforever.com" class="FooterBottomLink" target="_blank" rel="noopener" aria-label="Forum">
<i class="fas fa-comments" aria-hidden="true"></i>
</a>
</div>
<span class="Copyright">© 2015-2026 <strong>FAForever</strong> • Community-driven balance updates</span>
<span class="BuildInfo">Balance Team • Patch Notes Archive</span>
</div>
</div>
</footer>
<!-- Back to Top Button -->
<button id="back-to-top" class="back-to-top" aria-label="Scroll back to top of page" title="Back to top">↑</button>
<!-- Static CMS Identity Widget Initialization -->
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
</body>
</html>