Commit b0e2cb0e authored by Aral Balkan's avatar Aral Balkan

Move Stripe call to end

parent 2524c1ce
......@@ -112,7 +112,7 @@ input[name="donationAmount"]
margin-right: auto;
max-width: 530px;
margin-top: -48px;
/* margin-top: -48px; */
}
#errorMessage
......
const stripe = Stripe('pk_test_mLQRpGuO7qq3XMfSgwmt4n8U00FSZOIY1h')
NodeList.prototype.forEach = Array.prototype.forEach
function isOtherDonationAmountValid () {
......@@ -71,7 +69,6 @@ function showError (error) {
errorMessage.classList.remove('displayNone');
}
// Donate button: submits the form.
document.getElementById('donateButton').addEventListener('click', function(e) {
......@@ -111,3 +108,5 @@ document.getElementById('donateButton').addEventListener('click', function(e) {
})
})
const stripe = Stripe('pk_test_mLQRpGuO7qq3XMfSgwmt4n8U00FSZOIY1h')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment