diff --git a/src/main/resources/templates/classrooms/view.html b/src/main/resources/templates/classrooms/view.html index 88435bb..2303a92 100644 --- a/src/main/resources/templates/classrooms/view.html +++ b/src/main/resources/templates/classrooms/view.html @@ -12,6 +12,20 @@ await navigator.clipboard.writeText(url); } + async function copyStudentsEmailsToClipboard() { + try { + const emails = Array.from(document.querySelectorAll('.student-card .email span')) + .map(el => (el.textContent || '').trim()) + .filter(e => e.length > 0); + if (emails.length === 0) { + return; + } + await navigator.clipboard.writeText(emails.join(', ')); + } catch (e) { + // no-op: clipboard may not be available, silently ignore + } + } + function filterStudentsFeature() { return { filter: '', @@ -62,13 +76,22 @@
- +