Skip to content

Instantly share code, notes, and snippets.

@darrencrawford
Created May 16, 2017 01:07
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 darrencrawford/cad83a7e8ce5e7d1d91b6958b131ccb3 to your computer and use it in GitHub Desktop.
Save darrencrawford/cad83a7e8ce5e7d1d91b6958b131ccb3 to your computer and use it in GitHub Desktop.
Clickbank PitchPlus Header Script
<script type="text/javascript">
function toggleAccept() {
var acceptLink = document.getElementById("accept");
var agreeCheckbox = document.getElementById("agreeCheckbox");
if (agreeCheckbox.checked) {
acceptLink.onclick=function() {
window.location=this.href + "&cbrblaccpt=true";
return false;
}
} else {
acceptLink.onclick=function() {
mustAccept();
return false;
}
}
}
function mustAccept() {
window.alert("By clicking accept, you agree to the payment terms of this recurring product.");
}
toggleAccept()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment