@1 @145 maybe one of you know what i've done wrong here. Th…

Twetch ·

@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

Twetch ·

Are you running pay() when the page loads instead of when the button is clicked?

Twetch ·

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

Twetch ·

either way the button should still work i would think?

Twetch ·

document.getElementById('button').addEventListener('click', () => {showTwetchPay(boostPowScript, magicNumScript, opReturnScript)}); async function showTwetchPay(boost, magic, opReturn)

im no expert but it all looks right?

Twetch ·

here is a demo https://pay.twetch.com/demo.html

Twetch ·

Yeah, One penny gone to research.........................

Twetch ·

Btw...the button works now with this demo...but it still pops up on load of page.
Imma keep tinkerin with it