Skip to content

Instantly share code, notes, and snippets.

@jdorfman
Created November 9, 2019 05:27
Show Gist options
  • Save jdorfman/3ea3f32b3f6350701ea5168983775cb6 to your computer and use it in GitHub Desktop.
Save jdorfman/3ea3f32b3f6350701ea5168983775cb6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
window.addEventListener("codefund", function(evt) {
if (evt.detail.status !== "ok") {
// Render ad from another network
}
});
</script>
</head>
<body>
<div id="codefund"></div>
<script src="https://codefund.app/properties/PUBLISHER_ID/funder.js" async="async"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment