Skip to content

Instantly share code, notes, and snippets.

@linkesch
Last active January 20, 2022 09:22
Show Gist options
  • Save linkesch/5e6e1895a581d60e475301b9c8d0c7c0 to your computer and use it in GitHub Desktop.
Save linkesch/5e6e1895a581d60e475301b9c8d0c7c0 to your computer and use it in GitHub Desktop.
Maker integration
<link rel="preload" href="https://app.maker.co/enhance/[user].js" as="script">
<script type="text/javascript">!(function(){var e={enhanceId:'[user]',
enhanceTimeout:4e3},t=document.getElementById('js-maker-enhance-style'),
n=setTimeout(function(){t&&t.parentElement.removeChild(t),(window
.mk_enhance_timeout=!0)},e.enhanceTimeout),a=!1,c=document
.createElement('script'),f=window.location.search
.match(/mk_experience_preview/)?'?_t='+new Date().getTime():'';(c.src=
'https://app.maker.co/enhance/'+e.enhanceId+'.js'+f),(c.type=
'text/javascript'),(c.async='true'),(c.onload=c.onreadystatechange=
function(){var e=this.readyState;a||(e&&'complete'!=e&&'loaded'!=e)||((
a=!0),clearTimeout(n))});var o=document.getElementsByTagName('script')[0];
o.parentNode.insertBefore(c,o)})()</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment