Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions assets/js/bio.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ document.addEventListener('DOMContentLoaded', () => {
if (clickedBtn) {
clickedBtn.classList.add('active');
}

// Update document language and text direction for accessibility and RTL support
document.documentElement.lang = lang;
document.documentElement.dir = (lang === 'ar') ? 'rtl' : 'ltr';
Comment on lines +19 to +21
}

langBtns.forEach(btn => {
Expand All @@ -31,4 +35,5 @@ document.addEventListener('DOMContentLoaded', () => {
});
});

switchLanguage('fr');
});
4 changes: 2 additions & 2 deletions bio.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ <h1 class="main-title">David KRK</h1>
<iframe
width="100%"
height="120"
src="https://player-widget.mixcloud.com/widget/iframe/?hide_cover=1&hide_artwork=1&autoplay=1&feed=%2FDavidKRK%2F"
frameborder="0">
style="border:0;"
src="https://player-widget.mixcloud.com/widget/iframe/?hide_cover=1&hide_artwork=1&autoplay=1&feed=%2FDavidKRK%2F">
</iframe>
</div>

Expand Down
1 change: 1 addition & 0 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ <h1 class="main-title">David KRK</h1>
});
});

switchLanguage('fr');
});
</script>
</body>
Expand Down
Loading