Created
August 30, 2017 12:01
-
-
Save potato4d/ba20fc06e6c803f3c0f1750673b49679 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
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