If you would like to dive into the code, please be aware of the following issues with the Weebly framework:
- Using $ to access JQuery
Weebly uses the Prototype JavaScript framework, which also uses $. Using $ to access JQuery will not work.
If you need to use JQuery, Weebly recommends
Access JQuery
// closure
(function($) {
$('#foo').doThatThing();
)(jQuery);
and
Access JQuery (cont.)
// dom:ready
jQuery(function($) {
$('#foo').doThatThing();
});
- Display in the editor
Javascript may not work as you expect in the editor. This is because the site's markup will not be present when the DOM ready event fires.