Created
May 16, 2017 01:07
-
-
Save darrencrawford/cad83a7e8ce5e7d1d91b6958b131ccb3 to your computer and use it in GitHub Desktop.
Clickbank PitchPlus Header Script
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
<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