Skip to content
Browse files

changes for booster/donate campaigns

  • Loading branch information...
1 parent 7d3844e commit 045faaa9be188c936637848b247ce4dfd2b68bc6 @aross aross committed Apr 25, 2012
View
6 public/booster/index.html
@@ -65,9 +65,9 @@
</div>
</div>
<div class='footer'>
- <p class="view-all"><a href="#">(Or, <a href="http://www.stayclassy.org/events/oc-booster-campaign/e16075">donate to OC with a credit card</a> <img src="/images/visa_32.png" /> <img src="/images/mastercard_32.png" /> instead of PayPal)</a></p>
- <p class="view-all"><a href="#">Questions, feedback? We enjoy hearing from you: david@opencongress.org.</a></p>
- <p class="view-all"><a href="#">See more about the Participatory Politics Foundation</a></p>
+ <p class="view-all"><a href="#">(Or, <a href="http://www.stayclassy.org/events/oc-booster-campaign/e16075">donate to OC with a credit card</a> <img src="/images/visa_32.png" class="cc" /> <img src="/images/mastercard_32.png" class="cc" /> instead of PayPal)</a></p>
+ <p class="view-all"><a href="#">Questions, feedback? We enjoy hearing from you: david@opencongress.org.</a></p>
+ <p class="view-all"><a href="#">See more about the Participatory Politics Foundation</a></p>
</div>
</div>
</body>
View
21 public/donate/donate.js
@@ -0,0 +1,21 @@
+$(document).ready(function(){
+ $(".ot").click(function(){
+ $(".ot span").addClass("a");
+ $(".mt span").removeClass("a");
+ $("#typem").hide();
+ $("#typeo").show();
+
+ $("a.one").show();
+ $("a.rec").hide();
+ });
+
+ $(".mt").click(function(){
+ $(".mt span").addClass("a");
+ $(".ot span").removeClass("a");
+ $("#typeo").hide();
+ $("#typem").show();
+
+ $("a.one").hide();
+ $("a.rec").show();
+ });
+});
View
64 public/donate/index.html
@@ -9,11 +9,11 @@
<!--Stylesheets-->
<link rel="stylesheet" type="text/css" href="/stylesheets/donate.css">
<!--Scripts-->
- <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script type="text/javascript" src="js/site.js"></script>
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+ <script type="text/javascript" src="/donate/donate.js"></script>
-</head><link rel="stylesheet" type="text/css" href="data:text/css,">
+</head>
<body>
@@ -55,42 +55,52 @@
</form>
<!-- ONE-TIME OPTION -->
- <form method="get" action="http://www.getmiro.com/give/give/" id="typeo">
+ <form method="get" action="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php" id="typeo">
<ul>
<div class="wrap">
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=5&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$5</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=20&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$20</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=50&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$50</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=100&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$100</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=200&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$200</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=5&amp;groups=PPF+News:Supporters&amp;receipt=42">Give <span>$5</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=20&amp;groups=PPF+News:Supporters&amp;receipt=42">Give <span>$20</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=50&amp;groups=PPF+News:Supporters&amp;receipt=42">Give <span>$50</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=100&amp;groups=PPF+News:Supporters&amp;receipt=42">Give <span>$100</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=200&amp;groups=PPF+News:Supporters&amp;receipt=42">Give <span>$200</span></a></li>
<li class="l">
- <input type="text" name="g" value="" placeholder="$">
- <input type="hidden" name="t" value="o">
- <input type="submit" value="Go">
- <input type="hidden" name="s" value="0"> </li>
+ <input type="hidden" name="oc_action" value="donate">
+ <input type="hidden" name="pp" value="paypal">
+ <input type="hidden" name="groups" value="PPF News:Supporters">
+ <input type="hidden" name="receipt" value="42">
+ <input type="text" name="amount" value="" placeholder="$">
+ <input type="submit" value="Go">
+ </li>
<div class="clear"></div>
</div>
</ul>
</form>
+
+
+
<!-- MONTHLY OPTION -->
- <form method="get" action="http://www.getmiro.com/give/give/" id="typem">
- <ul>
+ <form method="get" action="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php" id="typem">
+ <ul>
<div class="wrap">
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=5&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$5</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=20&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$20</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=50&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$50</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=100&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$100</span></a></li>
- <li><a href="https://www.paypal.com/cgi-bin/webscr?business=paypal%40ppolitics.org&cancel_return=http%3A%2F%2Fwww.opencongress.org%2Fdonate&notify_url=https%3A%2F%2Fcrm.ppolitics.org%2Fsites%2Fall%2Fmodules%2Fcivicrm%2Fbin%2FOneClick.php%3Foc_action%3Dpaypalipn&cmd=_xclick-subscriptions&currency_code=USD&invoice=a6cb0da7acbec1fb2f16f03df01f81ff&item_name=Online+Contribution%3A+Support+OpenCongress&no_note=1&no_shipping=1&quantity=1&return=http%3A%2F%2Fwww.opencongress.org%2Fdonate%2Fthanks&rm=2&a3=200&p3=1&t3=M&src=1&sra=1&on0=Gift&os0=No&custom=a%3A2%3A%7Bs%3A6%3A%22groups%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22PPF+News%22%3Bi%3A1%3Bs%3A11%3A%22PPF+Booster%22%3B%7Ds%3A7%3A%22receipt%22%3Bs%3A2%3A%2245%22%3B%7D">Give <span>$200</span></a></li>
- <li class="l">
- <input type="text" name="g" value="" placeholder="$">
- <input type="hidden" name="t" value="m">
- <input type="submit" value="Go">
- <input type="hidden" name="s" value="0"> </li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=5&amp;groups=PPF+News:Supporters&amp;receipt=42&amp;recur=1">Give <span>$5</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=20&amp;groups=PPF+News:Supporters&amp;receipt=42&amp;recur=1">Give <span>$20</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=50&amp;groups=PPF+News:Supporters&amp;receipt=42&amp;recur=1">Give <span>$50</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=100&amp;groups=PPF+News:Supporters&amp;receipt=42&amp;recur=1">Give <span>$100</span></a></li>
+ <li><a href="https://crm.ppolitics.org/sites/all/modules/civicrm/bin/OneClick.php?oc_action=donate&amp;pp=paypal&amp;amount=200&amp;groups=PPF+News:Supporters&amp;receipt=42&amp;recur=1">Give <span>$200</span></a></li>
+ <li class="l">
+ <input type="hidden" name="oc_action" value="donate">
+ <input type="hidden" name="pp" value="paypal">
+ <input type="hidden" name="groups" value="PPF News:Supporters">
+ <input type="hidden" name="receipt" value="42">
+ <input type="hidden" name="recur" value="1">
+ <input type="text" name="amount" value="" placeholder="$">
+ <input type="submit" value="Go">
+ </li>
<div class="clear"></div>
- </div>
+ </div>
</ul>
- </form>
+ </form>
<div class="wrap">
<footer id="donate">
View
BIN public/images/mastercard_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/visa_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
5 public/stylesheets/booster.css
@@ -249,3 +249,8 @@ margin-top: 20px;
float: right;
}
+.footer .cc {
+ margin-top: 10px;
+ height: 20px;
+}
+

0 comments on commit 045faaa

Please sign in to comment.
Something went wrong with that request. Please try again.