What version are you using? we added an explicit "javascript" section in the panel -> custom/javascript/ since version 0.7 or 0.8, but since it is inside "content", I am aware some users do not get the custom "goodies" updated when they exclude "content". Download the latest release, and manually add the
content/custom/javascript/ folder!
There is not a huge difference in adding scripts to the custom/footer as you did, but the custom/javascript section is tidier for, does not mingle with custom html, and includes some parsing so that you can add remote scripts.
More importantly, it includes some basic API functions to call JS
after jQuery is loaded (jquery is included in X3), as well as triggering JS on unique ajax 'page loads' ... As you may be aware, X3 is an ajax-application, and by default therefore, it would only trigger your custom javascripts on initial page load, but not when navigating the links.
// X3 CUSTOM JAVASCRIPT
// This is where you add counters, stats and any other custom javascript.
// NB! Make sure your scripts are wrapped inside the <script>...</script> tag.
// function x3_load(){ console.log('Runs after x3 is loaded, jquery available.'); };
// function x3_load_page(){ console.log('Runs after each X3 ajax page load'); };
// EXAMPLE 1
// <script src='//cdnjs.cloudflare.com/ajax/libs/sizzle/2.0.0/sizzle.min.js'></script>
// EXAMPLE 2
/*
<script>
function yourFunction(){
console.log('log: wow my function!');
}
yourFunction();
</script>
*/
I implemented a custom javascript for one user, and you can see the code here for reference:
https://gist.github.com/mjau-mjau/eb7190f1d445fa5e71a0