How can I get a JS script working with a JQuery initiator?

Trying to get a rain snow effect:

http://www.jqueryrain.com/?kn4rXFeL

I put this in head:

<script type='text/javascript' src='https://cdn.rawgit.com/loktar00/JQuery-Snowfall/master/dist/snowfall.jquery.min.js'></script>

and this in foot:

<script>
    $(document).snowfall();
</script>

saved, published, nada

EDIT: Changed code, but still same failed result.


Here is my public share link: LINK
(how to access public share link)

Hi @Dylan_Hunt, I would try and put the script that you put in the head, in the footer instead, because that plugin is dependent on jQuery, which is not loaded until the Footer code has run first.

Likely there is a jQuery undefined error, however to see for sure, I would need to see the published site, if you have a link to that.

Regards,
Dave

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.