mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-11-09 21:34:51 +00:00
7 lines
288 B
JavaScript
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");
|
||
|
}));
|
||
|
}
|