Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Donation JavaScript code #1073

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion weallcode/templates/weallcode/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
{% block extra_script %}{% endblock %}
{% block extra_body %}{% endblock %}

<script src="https://embed.donsplus.com/e4ec89b0-3a4a-11eb-a446-c3ba623037fb"></script>
<script src="https://embed.double.giving/e4ec89b0-3a4a-11eb-a446-c3ba623037fb"></script>
<script>
window.ga = function () {
ga.q.push(arguments)
Expand Down
4 changes: 2 additions & 2 deletions weallcode/templates/weallcode/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li><a class="{% active_link 'weallcode-programs' %}" href="{% url 'weallcode-programs' %}">Programs</a></li>
<li><a class="{% active_link 'weallcode-team' %}" href="{% url 'weallcode-team' %}">Team</a></li>
<li><a class="{% active_link 'weallcode-join-us' %}" href="{% url 'weallcode-join-us' %}">Join Us</a></li>
<li><a class="button tertiary" href="javascript:donsPlus.openWidget();">Donate</a></li>
<li><a class="button tertiary" href="javascript:Double.openWidget();">Donate</a></li>
{% if user.is_authenticated %}
<li><a class="button" href="{% url 'account_home' %}">Account</a></li>
{% else %}
Expand All @@ -37,7 +37,7 @@
<a class="{% active_link 'weallcode-join-us' %}" href="{% url 'weallcode-join-us' %}">Join Us</a>

<div class="margin-top-1">
<a class="button tertiary" href="javascript:donsPlus.openWidget();">Donate</a>
<a class="button tertiary" href="javascript:Double.openWidget();">Donate</a>
</div>

<div>
Expand Down
4 changes: 3 additions & 1 deletion weallcode/templates/weallcode/join_us.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ <h3 class="title text-tertiary margin-vertical-2">Make a difference</h3>
<h2 class="title text-primary">Donate to make a difference</h2>
<p><strong>Your generous financial support makes coding accessible to kids across Chicago.</strong> Every donation makes a difference!</p>

<p><a class="button large tertiary" href="javascript:donsPlus.openWidget();">Donate</a></p>
<div id="double--form"></div>

<p>Donations are tax-deductible to the extent allowed by law. We All Code is a 501(c)(3) organization.</p>
</div>
<div class="cell medium-4 bg-dark-blue text-white padding-2">
<div class="line bg-primary width-25 margin-bottom-3"></div>
Expand Down