diff options
| author | Joe Carstairs <me@joeac.net> | 2026-09-15 13:03:04 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-09-15 13:03:04 +0100 |
| commit | 3e4e09ba31b0f08d4a864a7e6aee9694181d0bcf (patch) | |
| tree | cd59de65ed63ed7a833737c307c3b44fa8e6df71 /http/public/scripts | |
| parent | 78584b367a509bdebce3a103c475b969b959347f (diff) | |
export functions from feed-condense-content.js
Diffstat (limited to 'http/public/scripts')
| -rw-r--r-- | http/public/scripts/feed-condense-content.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/public/scripts/feed-condense-content.js b/http/public/scripts/feed-condense-content.js index 02361b5..c0b5577 100644 --- a/http/public/scripts/feed-condense-content.js +++ b/http/public/scripts/feed-condense-content.js @@ -1,6 +1,6 @@ const expandedClass = "e-content--expanded"; -function toggleContentExpanded(id) { +export function toggleContentExpanded(id) { const content = document.querySelector(`[data-content-id=${id}`); if (!content) { throw new Error(`No content found with ID: ${id}`); @@ -14,7 +14,7 @@ function toggleContentExpanded(id) { } } -function addExpandItemButtons() { +export function addExpandItemButtons() { for (const content of document.querySelectorAll(".e-content")) { const contentId = crypto.randomUUID(); content.setAttribute("data-content-id", contentId); |
