Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab46fce

Browse files
authored
Merge branch 'develop' into ksen0-patch-2
2 parents 7e64556 + 8bfc4c7 commit ab46fce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎client/index.jsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,31 @@ const script = document.createElement('script');
3434
script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js';
3535
document.body.appendChild(script);
3636

37+
if (window.location.href.indexOf('full') === -1) {
38+
const buttonScript = document.createElement('script');
39+
buttonScript.type = 'text/javascript';
40+
buttonScript.defer = true;
41+
buttonScript.id = 'donorbox-popup-button-installer';
42+
buttonScript.src = 'https://donorbox.org/install-popup-button.js';
43+
44+
buttonScript.setAttribute(
45+
'data-href',
46+
'https://donorbox.org/back-to-school-805292'
47+
);
48+
buttonScript.setAttribute(
49+
'data-style',
50+
// eslint-disable-next-line max-len
51+
'background: #f1678e; color: #fff; text-decoration: none; font-family: Verdana, sans-serif; display: flex; gap: 8px; width: fit-content; font-size: 16px; border-radius: 0 0 5px 5px; line-height: 24px; position: fixed; top: 50%; transform-origin: center; z-index: 9999; overflow: hidden; padding: 8px 22px 8px 18px; right: 20px; left: auto; transform: translate(50%, -50%) rotate(90deg)'
52+
);
53+
buttonScript.setAttribute('data-button-cta', 'Donate');
54+
buttonScript.setAttribute(
55+
'data-img-src',
56+
'https://donorbox.org/images/white_logo.svg'
57+
);
58+
59+
document.body.appendChild(buttonScript);
60+
}
61+
3762
const App = () => (
3863
<div>
3964
<Router history={browserHistory}>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /