Build responsive Buch & Bohne website from supplied design
showcase/deploy Live at https://showcase.andrefiedler.de/2608_BuB/

This commit is contained in:
André Fiedler
2026-09-07 17:20:09 +02:00
commit 0712615dfa
37 changed files with 1077 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const copyButton = document.querySelector('.copy-iban');
const status = document.querySelector('#copy-status');
copyButton?.addEventListener('click', async () => {
status.textContent = '';
try {
await navigator.clipboard.writeText(copyButton.dataset.iban);
status.textContent = 'Die IBAN wurde in die Zwischenablage kopiert.';
copyButton.title = 'IBAN kopiert';
} catch {
const range = document.createRange();
range.selectNodeContents(copyButton);
const selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
status.textContent = 'Bitte kopieren Sie die markierte IBAN.';
copyButton.title = 'Bitte die markierte IBAN kopieren';
}
});