Wiki pagination — 9 cards/page (3 rows), counter X/27, topic filter pills, prev/next

- wikiPerPage = 9 (3 masonry rows × 3 cols), wikiCurrentPage state
- wikiFilteredData holds sorted/filtered list; renderWikiPage slices it
- Topic filter pills below search bar, rendered from unique topics in data
- searchWiki now works with pagination/filters, resets to page 1
- Counter shows '9/27' style, pagination shows Zurück/Weiter with page info
- Language toggle re-renders wiki topics + page
- New CSS: .wiki-topics, .wiki-topic-filter (pill style), .wiki-footer, .wiki-page-btn
This commit is contained in:
Kato
2026-09-05 19:51:06 +00:00
parent 34d9b0b1e2
commit 113ca75502
3 changed files with 198 additions and 20 deletions
+5
View File
@@ -436,12 +436,17 @@
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
<input type="text" id="wiki-search" class="search-input" placeholder="Wiki durchsuchen..." />
</div>
<div class="wiki-topics" id="wiki-topics"></div>
<div class="wiki-grid" id="wiki-grid">
<p class="loading-text">
<span class="hide-de">Lade Wiki...</span>
<span class="hide-en">Loading wiki...</span>
</p>
</div>
<div class="wiki-footer" id="wiki-footer">
<div class="wiki-counter" id="wiki-counter"></div>
<div class="wiki-pagination" id="wiki-pagination"></div>
</div>
</div>
</section>