How to add a collapsible accordion to a static page

That’s not the script, that’s just a very basic CSS conflict. Just rename the CSS Classes to something unique and identifiable. For example change the following references in the CSS, HTML and JS:

  • Change collapsible to terms-collapsable
  • Change content to terms-content

When developers write example code, they almost always use generic labels. You should always change these when using them in your own project.