Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bulma-collapsible to work out of the box #81

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Makes bulma-collapsible work out of the box
// Needs the bulma-collapsible extension enabled to work
// Documentation: https://bulma-collapsible.netlify.app/javascript/

window.addEventListener("load", () => {
if (typeof bulmaCollapsible === "undefined") {
throw new Error(
"The bulma-collapsible extension is not enabled, enable it to use the runner."
);
}
bulmaCollapsible.attach();
});