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
11 lines
505 B
JavaScript
11 lines
505 B
JavaScript
// 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);
|
|
});
|
|
});
|
|
});
|