Skip to content

Instantly share code, notes, and snippets.

@mathiasmoeller
Created June 26, 2018 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathiasmoeller/4c34f29a7997153f76362c648c295431 to your computer and use it in GitHub Desktop.
Save mathiasmoeller/4c34f29a7997153f76362c648c295431 to your computer and use it in GitHub Desktop.
How to add the STOMT form widget to your website
<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