Fix: alle funktionalen Inline-Event-Handler → addEventListener/Delegation (von CSP-Härtung 65cfa25 app-weit blockiert)
Chat (senden/öffnen/löschen/Foto), Tagebuch-Buch, KI-Berichte, Wiki-Moderation, Events-Detail, Walks-Lightbox, Routen-Foto, Navigations-CTAs (data-page), Presse-Copy + Züchter-Landing (externes JS). 35x UI.modal.close → data-modal-close, 28x totes event.stopPropagation entfernt. Verbleibend: kosmetische onerror/Hover. SW v1164
This commit is contained in:
parent
152fde716c
commit
2ddd8ac350
34 changed files with 228 additions and 173 deletions
11
backend/static/js/presse.js
Normal file
11
backend/static/js/presse.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Presse-Seite — ausgelagert, da Inline-Script/onclick von der CSP blockiert wird.
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const btn = document.querySelector('.copy-btn');
|
||||
btn?.addEventListener('click', () => {
|
||||
const text = document.getElementById('boilerplate-text').innerText.replace('Kopieren', '').trim();
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
btn.textContent = 'Kopiert ✓';
|
||||
setTimeout(() => btn.textContent = 'Kopieren', 2000);
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue