Created
June 26, 2018 10:01
-
-
Save mathiasmoeller/4c34f29a7997153f76362c648c295431 to your computer and use it in GitHub Desktop.
How to add the STOMT form widget to your website
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
<div id="stomt_create"></div> <!-- if you want to include an inline form --> | |
<script> | |
// Include the STOMT JavaScript SDK | |
(function(w, d, n, r, t, s){ | |
w.Stomt = w.Stomt||[]; | |
t = d.createElement(n); | |
s = d.getElementsByTagName(n)[0]; | |
t.async=1; | |
t.src=r; | |
s.parentNode.insertBefore(t,s); | |
})(window, document, 'script', 'https://www.stomt.com/widget.js'); | |
// Adjust the 'APP_ID' to your application id | |
// you can find it here: https://www.stomt.com/YOUR_PAGE/apps | |
Stomt.push(['addTab', {appId: 'APP_ID'}]); | |
Stomt.push(['addCreate', {appId: 'APP_ID'}]); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment