Correct Dropdown Script for Webflow

I’m in the process of rebuilding my old portfolio website (Cargo) in Webflow. I have a rudimentary but unique custom code block on my old Cargo About page that I am trying to recreate in Webflow.

I tried copying and pasting the exact same code into an Embed block in Webflow, and it displays when I publish it, but the script isn’t working and changing the visibility of the divs.

I’m wondering if anyone can help troubleshoot the script for me, since I’m guessing that’s the problem.

Thanks :cowboy_hat_face:

Read only link is here!

I don’t think JS renders if inside an HTML embed. I would try placing your JS script (the part that starts with ‘< script >’ and ends with ‘< /script >’) before the body tag in your page settings instead, i.e. here:

Everything else should be fine inside your existing html embeds.