mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-27 05:46:22 +00:00
6 lines
288 B
JavaScript
6 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");
|
|
}));
|
|
}
|