Skip to content

Instantly share code, notes, and snippets.

@kanwei
Created January 18, 2018 07:00
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 kanwei/0638e041048755d37e53d09d45db0db1 to your computer and use it in GitHub Desktop.
Save kanwei/0638e041048755d37e53d09d45db0db1 to your computer and use it in GitHub Desktop.
Double the Donation + Online Express
<script>var DDCONF = { API_KEY: "XXXXXXXXXXXXX" };</script>
<script src="https://doublethedonation.com/api/js/ddplugin.js"></script>
<link href="https://doublethedonation.com/api/css/ddplugin.css" rel="stylesheet"/>
<script type="text/javascript">
jQuery(document).ready(function () {
var testAppearTmr = setInterval(function () {
if (jQuery('.BBFormConfirmation').length) {
clearInterval(testAppearTmr);
jQuery('.BBFormConfirmation').before("<p>Please use the search tool to see if your company will match your donation!</p>");
jQuery('.BBFormConfirmation').before(jQuery("<div id='dd-container'></div>"));
doublethedonation.plugin.load_plugin();
}
}, 250);
// Handler for .ready() called.
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment