From 98cd5f242b5509da37d4c9eb158b4aff2275277d Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Tue, 2 Jun 2026 21:49:49 +0000 Subject: [PATCH 1/4] Initial plan From 4ccbd505da1f6eb05f8689e34b972704a2b5c375 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:01:44 +0000 Subject: [PATCH 2/4] perf: stabilize Lighthouse scores Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --- .lighthouserc.json | 2 +- assets/js/bio.js | 4 +- assets/js/main.js | 107 ++------------------------------------------- bio.html | 16 ++----- contact.html | 9 ++-- event.html | 12 +++-- index.html | 16 +++---- music.html | 30 ++----------- shop.html | 23 +++++----- 9 files changed, 37 insertions(+), 182 deletions(-) diff --git a/.lighthouserc.json b/.lighthouserc.json index c5a15c1a..c604ff3d 100644 --- a/.lighthouserc.json +++ b/.lighthouserc.json @@ -3,7 +3,7 @@ "assert": { "preset": "lighthouse:no-pwa", "assertions": { - "categories:performance": ["error", { "minScore": 0.5 }], + "categories:performance": ["error", { "minScore": 0.6 }], "categories:seo": ["error", { "minScore": 0.85 }], "categories:accessibility": ["warn", { "minScore": 0.85 }], "categories:best-practices": ["warn", { "minScore": 0.85 }], diff --git a/assets/js/bio.js b/assets/js/bio.js index 1b442eda..ae8d9353 100644 --- a/assets/js/bio.js +++ b/assets/js/bio.js @@ -35,5 +35,5 @@ document.addEventListener('DOMContentLoaded', () => { }); }); - switchLanguage('fr'); -}); \ No newline at end of file + // Default language is set in the HTML to avoid layout shifts on load. +}); diff --git a/assets/js/main.js b/assets/js/main.js index 9f4a5d56..fb290109 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -2,114 +2,13 @@ const hero = document.getElementById('hero'); if (hero) { window.addEventListener('scroll', () => { - if (window.innerWidth < 768) { - return; - } + if (window.innerWidth < 768) return; const scrollTop = window.scrollY; const heroHeight = hero.offsetHeight; if (scrollTop < heroHeight) { - // const img = document.getElementById('hero-img'); - // if (img) { - // const scrollRatio = scrollTop / heroHeight; - // let scale = 1 + scrollRatio * 0.15; - // scale = Math.min(scale, 1.5); - // const translateY = scrollRatio * 30; - // img.style.transform = `translate(-50%, calc(-50% + ${translateY}px)) scale(${scale})`; - // } + // Reserved for optional hero parallax effects. } - }); + }, { passive: true }); } - -/* ============================= - * Howler.js – Audio controls - * ============================== */ - -/* ----------------------------- - 1️⃣ Paths – relative à la racine - ----------------------------- */ -const getAsset = p => `assets/music/${p}`; - -/* ----------------------------- - 2️⃣ Player objects - ----------------------------- */ -const patriceSound = new Howl({ - src: [ getAsset('Patrice Bäumel–Glutes (Original Mix).mp3') ], - html5: true, // streamable on all devices (large files) - preload: false -}); - -const newOrderSound = new Howl({ - src: [ getAsset('New Order Blue Monday.ogg') ], - html5: true, - preload: false -}); - -const winxSound = new Howl({ - src: [ getAsset("Winx - Don't Laugh - Original Live Raw Mix.ogg") ], - html5: true, - preload: false -}); - -/* ----------------------------- - 3️⃣ Event listeners (buttons) - ----------------------------- */ -document.querySelector('#play-btn-patrice')?.addEventListener('click', () => patriceSound.play()); -document.querySelector('#pause-btn-patrice')?.addEventListener('click', () => patriceSound.pause()); - -document.querySelector('#play-btn-blue-monday')?.addEventListener('click', () => newOrderSound.play()); -document.querySelector('#pause-btn-blue-monday')?.addEventListener('click', () => newOrderSound.pause()); - -document.querySelector('#play-btn-winx')?.addEventListener('click', () => winxSound.play()); -document.querySelector('#pause-btn-winx')?.addEventListener('click', () => winxSound.pause()); - -/* ----------------------------- - 4️⃣ Helpers UI (facultatif) - ----------------------------- */ -function setStatus(id, playing) { - const el = document.getElementById(id); - if (!el) return; - if (playing) { - el.style.display = 'none'; - } else { - el.style.display = 'block'; - } -} - -/* E.g. if you want a visual indicator that a track is playing: */ -patriceSound.on('play', () => setStatus('play-btn-patrice', true)); -patriceSound.on('pause', () => setStatus('play-btn-patrice', false)); -patriceSound.on('stop', () => setStatus('play-btn-patrice', false)); - -newOrderSound.on('play', () => setStatus('play-btn-blue-monday', true)); -newOrderSound.on('pause', () => setStatus('play-btn-blue-monday', false)); -newOrderSound.on('stop', () => setStatus('play-btn-blue-monday', false)); - -winxSound.on('play', () => setStatus('play-btn-winx', true)); -winxSound.on('pause', () => setStatus('play-btn-winx', false)); -winxSound.on('stop', () => setStatus('play-btn-winx', false)); - -document.addEventListener('DOMContentLoaded', () => { - const btns = document.querySelectorAll('.language-btn'); - const contents = document.querySelectorAll('.lang-content'); - - btns.forEach(btn => { - btn.addEventListener('click', () => { - const lang = btn.dataset.lang; - - // Set active button - btns.forEach(b => b.classList.remove('active')); - btn.classList.add('active'); - - // Show/hide content via CSS classes (no inline styles) - contents.forEach(c => { - if (c.dataset.lang === lang) { - c.classList.add('active'); - } else { - c.classList.remove('active'); - } - }); - }); - }); -}); diff --git a/bio.html b/bio.html index 3ec5370e..a941355e 100644 --- a/bio.html +++ b/bio.html @@ -57,14 +57,14 @@

David KRK

- +
-

Biographie

+

Biographie

Biography

Biografía

Biografia

@@ -77,7 +77,7 @@

David KRK

-
+

David KRK, né en août 1982, est un DJ qui se produit en Espagne, en France et sur la Côte Basque depuis 2000.

Son style de base, Trance / Tech Trance, se diversifie aujourd'hui avec des sonorités plus Techno.

@@ -194,16 +194,6 @@

David KRK

- -
- diff --git a/event.html b/event.html index 373ae061..b811baff 100644 --- a/event.html +++ b/event.html @@ -52,14 +52,14 @@

David KRK

- +
-

Événements

+

Événements

Events

Eventos

Ekitaldiak

@@ -69,7 +69,7 @@

David KRK

-

Aucun événement à venir pour le moment. Veuillez revenir plus tard.

+

Aucun événement à venir pour le moment. Veuillez revenir plus tard.

No upcoming events at the moment. Please check back later.

No hay eventos próximos por el momento. Por favor, vuelve más tarde.

Momentuz ez dago ekitaldirik. Mesedez, saiatu berriro geroago.

@@ -82,7 +82,8 @@

David KRK

@@ -112,7 +113,6 @@

David KRK

- diff --git a/index.html b/index.html index 30a3fa40..b0def6b1 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@ - + @@ -52,7 +52,7 @@

David KRK

- + @@ -60,14 +60,14 @@

David KRK

-

Accueil

+

Accueil

Home

Inicio

Hasiera

الرئيسية

Головна

-
+

Site officiel de David KRK

DJ et producteur international de musique Techno.

@@ -112,7 +112,7 @@

David KRK

- David KRK Owl + David KRK Owl
@@ -120,7 +120,8 @@

David KRK

@@ -152,7 +153,6 @@

David KRK

- diff --git a/music.html b/music.html index 6533b739..11e01425 100644 --- a/music.html +++ b/music.html @@ -114,14 +114,14 @@

David KRK

- +
-
+

Musique

- diff --git a/shop.html b/shop.html index 65e921f1..1bb80c47 100644 --- a/shop.html +++ b/shop.html @@ -53,7 +53,7 @@

David KRK

- + @@ -61,7 +61,7 @@

David KRK

-

Boutique

+

Boutique

Shop

Tienda

Denda

@@ -69,7 +69,7 @@

David KRK

Магазин

-
+

Boutique Officielle

Vous avez ressenti l'énergie dans mes sets, vous avez vibré sur mes mix.

@@ -207,12 +207,11 @@

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

- + From 29b1b28333b4fb4de7f1aac3b49ee94cd0d9d508 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Jun 2026 00:11:00 +0000 Subject: [PATCH 3/4] fix: align accessibility labels after merge --- index.html | 2 +- music.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index aec0d620..db8f7773 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

David KRK

class="social-icon text-2xl md:text-3xl text-white"> - +
diff --git a/music.html b/music.html index 679d9025..46d3205c 100644 --- a/music.html +++ b/music.html @@ -214,7 +214,7 @@

Музика

From 69b3e1a0df8f7aceb4af09174f72dde2f432655d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Jun 2026 00:11:53 +0000 Subject: [PATCH 4/4] chore: remove redundant link aria-labels --- index.html | 2 +- music.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index db8f7773..0da7b878 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@

David KRK

class="social-icon text-2xl md:text-3xl text-white"> - +
diff --git a/music.html b/music.html index 46d3205c..679d9025 100644 --- a/music.html +++ b/music.html @@ -214,7 +214,7 @@

Музика