Skip to content

Instantly share code, notes, and snippets.

@potato4d
Created August 30, 2017 12:01
Show Gist options
  • Save potato4d/ba20fc06e6c803f3c0f1750673b49679 to your computer and use it in GitHub Desktop.
Save potato4d/ba20fc06e6c803f3c0f1750673b49679 to your computer and use it in GitHub Desktop.
<script>
p7.ready()
.then(function(p7){
const $$ = function(e){ return document.querySelectorAll(e) };
for(var button of $$('.subscribe-button')){
button.addEventListener('click', function(){
p7.subscribe();
})
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment