Skip to content

Instantly share code, notes, and snippets.

@faustoct1
Created November 28, 2023 04:53
Show Gist options
  • Save faustoct1/48174763541ed26e442a7e4143f2e42d to your computer and use it in GitHub Desktop.
Save faustoct1/48174763541ed26e442a7e4143f2e42d to your computer and use it in GitHub Desktop.
subscribeButtonPlain.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Subscribe button example</title>
<script src="http://daily-launches.web.app/plugins/subscribeButton.js"></script>
</head>
<body>
<div id="message">
<h2>Testing subscribe button</h2>
<div id="subscribeButtonContainer">
{/* Content will be added dynamically */}
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
initializeSubscribeButton('light', 'subscribeButtonContainer', 'add-your project id');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment