Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Small Technology Foundation web site
spikes
patronage
Commits
b0e2cb0e
Verified
Commit
b0e2cb0e
authored
Jul 27, 2019
by
Aral Balkan
Browse files
Move Stripe call to end
parent
2524c1ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
fund-us/css/index.css
View file @
b0e2cb0e
...
...
@@ -112,7 +112,7 @@ input[name="donationAmount"]
margin-right
:
auto
;
max-width
:
530px
;
margin-top
:
-48px
;
/*
margin-top: -48px;
*/
}
#errorMessage
...
...
fund-us/js/index.js
View file @
b0e2cb0e
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
'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment