mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 01:14:35 +01:00
Fix header/subtitle FOUC and Simple Mode translations
- Refactor tool page headers to prevent flash of unstyled content (FOUC): - Move long SEO titles to visually hidden `<h1>` tags for search engines. - Use `<h2>` for visible tool titles with text matching i18n keys. - Sync default HTML subtitles with [tools.json]
This commit is contained in:
1 parent
809508b492
commit
b51d611c8a
4 files changed
+280
-111
No files matched your search
@@ -31,7 +31,9 @@ if (__SIMPLE_MODE__) {
|
||||
`;
|
||||
document.body.appendChild(simpleFooter);
|
||||
|
||||
const langContainer = simpleFooter.querySelector('#simple-mode-lang-switcher');
|
||||
const langContainer = simpleFooter.querySelector(
|
||||
'#simple-mode-lang-switcher'
|
||||
);
|
||||
if (langContainer) {
|
||||
const switcher = createLanguageSwitcher();
|
||||
const dropdown = switcher.querySelector('div[role="menu"]');
|
||||
|
||||
Reference in new issue
Block a user