ar.falsy.cat/assets/js/callouts.js

7 lines
288 B
JavaScript
Raw Permalink Normal View History

const addCollapsibleCallouts = () => {
const collapsibleCallouts = document.querySelectorAll("blockquote.callout-collapsible");
collapsibleCallouts.forEach(el => el.addEventListener('click', event => {
event.currentTarget.classList.toggle("callout-collapsed");
}));
}