From d969047166e95ca6303fb20543eb5e73a12689f9 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Fri, 1 May 2026 23:16:47 +0000 Subject: [PATCH 1/2] Initial plan From d0dba9e66eebc6974086466a626c7374f37af28c Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Fri, 1 May 2026 23:19:28 +0000 Subject: [PATCH 2/2] fix: improve HTML accessibility and standards compliance - Add descriptive alt text to Buy Me A Coffee images across all pages - Initialize default language (French) on all pages with language switchers - Remove deprecated frameborder attribute from event.html iframe - Add lang and dir attributes updates for accessibility and RTL support Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/a973c329-86c6-41f2-ab44-10dc099f5ea2 Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --- bio.html | 2 +- contact.html | 6 +++++- event.html | 14 ++++++++++---- index.html | 9 +++++++-- music.html | 2 +- shop.html | 8 +++++++- 6 files changed, 31 insertions(+), 10 deletions(-) diff --git a/bio.html b/bio.html index bc76b1a4..43afaf39 100644 --- a/bio.html +++ b/bio.html @@ -216,7 +216,7 @@

David KRK

class="social-icon text-2xl md:text-3xl text-white"> - + Buy Me A Coffee
diff --git a/contact.html b/contact.html index df810572..18fee90d 100644 --- a/contact.html +++ b/contact.html @@ -164,7 +164,7 @@

David KRK

class="social-icon text-2xl md:text-3xl text-white"> - + Buy Me A Coffee
@@ -197,6 +197,10 @@

David KRK

if (activeBtn) { activeBtn.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'; } langBtns.forEach(btn => { diff --git a/event.html b/event.html index 6fa45005..7adf86fc 100644 --- a/event.html +++ b/event.html @@ -80,9 +80,9 @@

David KRK

@@ -125,11 +125,15 @@

David KRK

const contentsToShow = document.querySelectorAll(`.lang-content[data-lang="${lang}"]`); contentsToShow.forEach(content => content.classList.add('active')); - + const activeBtn = document.querySelector(`.language-btn[data-lang="${lang}"]`); if (activeBtn) { activeBtn.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'; } langBtns.forEach(btn => { @@ -137,6 +141,8 @@

David KRK

switchLanguage(btn.dataset.lang); }); }); + + switchLanguage('fr'); }); diff --git a/index.html b/index.html index 4cecd643..f992189a 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

David KRK

class="social-icon text-2xl md:text-3xl text-white"> - + Buy Me A Coffee
@@ -165,11 +165,15 @@

David KRK

const contentsToShow = document.querySelectorAll(`.lang-content[data-lang="${lang}"]`); contentsToShow.forEach(content => content.classList.add('active')); - + const activeBtn = document.querySelector(`.language-btn[data-lang="${lang}"]`); if (activeBtn) { activeBtn.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'; } langBtns.forEach(btn => { @@ -178,6 +182,7 @@

David KRK

}); }); + switchLanguage('fr'); }); diff --git a/music.html b/music.html index 3b0713ef..12d94d14 100644 --- a/music.html +++ b/music.html @@ -199,7 +199,7 @@

- +

diff --git a/shop.html b/shop.html index e09abcea..1660a821 100644 --- a/shop.html +++ b/shop.html @@ -194,7 +194,7 @@

Офіційний магазин

class="social-icon text-2xl md:text-3xl text-white"> - + Buy Me A Coffee
@@ -223,6 +223,10 @@

Офіційний магазин

const activeBtn = document.querySelector(`.language-btn[data-lang="${lang}"]`); if (activeBtn) activeBtn.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'; } langBtns.forEach(btn => { @@ -230,6 +234,8 @@

Офіційний магазин

switchLanguage(btn.dataset.lang); }); }); + + switchLanguage('fr'); });