Created
June 21, 2023 15:06
-
-
Save andresclua/2bd1f233e5a717e755decbf78f3f7342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function loadScript(src) { | |
return new Promise((resolve, reject) => { | |
const script = document.createElement('script') | |
script.setAttribute("src", src) | |
document.body.appendChild(script) | |
script.onload = resolve | |
script.onerror = reject | |
}) | |
} | |
loadScript('//js.hsforms.net/forms/embed/v2.js') | |
.then(() => { | |
hbspt.forms.create({ | |
region: "na1", | |
portalId: "3120747", | |
formId: "bfff5a21-6c3f-4f29-bae7-d0e778cef585" | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment