Skip to content

Commit 6d7ce72

Browse files
CopilotDavidKRK
andauthored
fix: complete WIP accessibility fixes — default language init, frameborder, RTL support (#227)
* Initial plan * fix: complete HTML accessibility fixes - default language init and deprecated frameborder Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/25e7ed8a-287e-4178-b956-93c9a51a5fd8 Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
1 parent 1b82b7c commit 6d7ce72

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

assets/js/bio.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ document.addEventListener('DOMContentLoaded', () => {
1515
if (clickedBtn) {
1616
clickedBtn.classList.add('active');
1717
}
18+
19+
// Update document language and text direction for accessibility and RTL support
20+
document.documentElement.lang = lang;
21+
document.documentElement.dir = (lang === 'ar') ? 'rtl' : 'ltr';
1822
}
1923

2024
langBtns.forEach(btn => {
@@ -31,4 +35,5 @@ document.addEventListener('DOMContentLoaded', () => {
3135
});
3236
});
3337

38+
switchLanguage('fr');
3439
});

bio.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ <h1 class="main-title">David KRK</h1>
198198
<iframe
199199
width="100%"
200200
height="120"
201-
src="https://player-widget.mixcloud.com/widget/iframe/?hide_cover=1&hide_artwork=1&autoplay=1&feed=%2FDavidKRK%2F"
202-
frameborder="0">
201+
style="border:0;"
202+
src="https://player-widget.mixcloud.com/widget/iframe/?hide_cover=1&hide_artwork=1&autoplay=1&feed=%2FDavidKRK%2F">
203203
</iframe>
204204
</div>
205205

contact.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ <h1 class="main-title">David KRK</h1>
209209
});
210210
});
211211

212+
switchLanguage('fr');
212213
});
213214
</script>
214215
</body>

0 commit comments

Comments
 (0)