Created
October 25, 2016 09:58
-
-
Save Aenterhy/e3e01b48ccdea244eff09833c3eda667 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
So the solution is: | |
1) Replace the script from the MailChimp with this one: | |
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"> | |
</script> | |
<script type="text/javascript">require(["mojo/signup-forms/Loader"], | |
function showMailingPopUp() { | |
require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us14.list-manage.com","uuid":"6934f1fe3fb030a931b1b20e5","lid":"492a096145"}) }) | |
document.cookie = "MCEvilPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC"; | |
}; | |
document.getElementById("getInvited").onclick = function() {showMailingPopUp()}; | |
document.getElementById("signUpBeta").onclick = function() {showMailingPopUp()}; | |
</script> | |
2) Add identifiers to your buttons ("getInvited" and "signUpBeta") | |
So they looks like this: | |
<a class="btn btn-default btn-lg" id="signUpBeta"> ... </a> | |
3) Should working :) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment