I need a cubic yard calculator on my site and have found the code that I want to use here: https://codepen.io/dwill/pen/WqwGeG
I am just trying to figure out how to put the JS code onto my Squarespace site. I can put in the HTML into a code block fine but then obviously the calculation doesn't work without the JS.
How do I put the JS code into my site and link it to the HTML code block?
Or if there is an easier built-for-you way of doing this please let me know!