roadmap/assets/js/callouts.js

7 lines
288 B
JavaScript
Raw Normal View History

2022-08-11 20:01:26 +00:00
const addCollapsibleCallouts = () => {
const collapsibleCallouts = document.querySelectorAll("blockquote.callout-collapsible");
collapsibleCallouts.forEach(el => el.addEventListener('click', event => {
event.currentTarget.classList.toggle("callout-collapsed");
}));
}