This repo is a collection of scripts that power webflow herodevs.com site interactions.
/scripts/pricing.jsThis script drives interactions on the herdevs.com/pricing page. It primarily does 3 things:
scripts/global.jsLoads calendly widget and other stuff.
This script drives interactions on the herdevs.com/support/* pages. Where it is included in the page in webflow, there are 2 properties needed in order to drive this script:
id
data-product attribute value, which corresponds to the appropriate product_interest value from Hubspotdata-product
product_interestThe script is activated/runs when a user clicks the CTAs on any of the support/* pages. When it runs, the script uses the id attribute of the <script> tag that included it, and reads the data-product attribute of that <script> tag. The script will then add the value of that data-product attribute to the form, as hidden inputs, to then be submitted when the user completes the form.