ar.falsy.cat/assets/js/callouts.js
2022-07-30 17:29:26 -07:00

7 lines
288 B
JavaScript

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