Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2016 20:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d831d139d95b18eeffaf to your computer and use it in GitHub Desktop.
Save anonymous/d831d139d95b18eeffaf to your computer and use it in GitHub Desktop.
<body>
<button id="open-popup">Subscribe to our mailing list</button>
<script type="text/javascript" src="http://s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>
<script>
function showMailingPopUp() {
require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us12.list-manage.com","uuid":"ad3626624633","lid":"37845629827345"}) })
document.cookie = "MCEvilPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
};
document.getElementById("open-popup").onclick = function() {showMailingPopUp()};
</script>
</body>
@Babavalichetlu
Copy link

Can you please upload full example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment