@1 @145 maybe one of you know what i've done wrong here. Th…
@1 @145 maybe one of you know what i've done wrong here. The twetch pay box pops up when the page loads...but will not pop up when I click the button. kinda ass-backwards
bigblockbitcoin.com/test
Replies
Are you running pay() when the page loads instead of when the button is clicked?
I dont believe so. Copied what joshua used in the tutorial. Its works fine on codepen just not on my site. Starting to think its a squarespace issue
either way the button should still work i would think?
document.getElementById('button').addEventListener('click', () => {showTwetchPay(boostPowScript, magicNumScript, opReturnScript)}); async function showTwetchPay(boost, magic, opReturn)
im no expert but it all looks right?
here is a demo https://pay.twetch.com/demo.html
Yeah, One penny gone to research.........................
Btw...the button works now with this demo...but it still pops up on load of page.
Imma keep tinkerin with it