I am trying to use an accordion. The function I use is
$(function() { $("#accordion").accordion({ collapsible: true, heightStyle: "content" }); });
The function works correctly, but only if I add the libraries on the same page where I use the accordion.
<script src="http://code.jquery.com/jquery-1.8.2.js"></script> <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
when I load the css file and gave the path in view.yml. But if I do the same for the js file (download and give the path in view.yml), it does not seem to work. I want to reuse them on many pages, so I do not want to include a web path on each page.
Secondly, if I give the path on the page, the boot block doesn't seem to work properly, a collision or something like that happens. Give me a solution for this. Avoid specifying a path on all pages. Thanks!
source share