Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: donate-head.html

Issue 6623837907058688: issue 1758 - Remove Bitcoin donation option from donation page (Closed)
Patch Set: Created Jan. 7, 2015, 2:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « donate-body.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <style type="text/css"> 1 <style type="text/css">
2 h2 2 h2
3 { 3 {
4 padding-top: 20px; 4 padding-top: 20px;
5 border-top: 1px solid #ccc; 5 border-top: 1px solid #ccc;
6 } 6 }
7 7
8 label 8 label
9 { 9 {
10 display: block; 10 display: block;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 border-color: #357ebd; 103 border-color: #357ebd;
104 } 104 }
105 105
106 #form.none button.paypal:hover, 106 #form.none button.paypal:hover,
107 #form.paypal button.paypal:hover 107 #form.paypal button.paypal:hover
108 { 108 {
109 background-color: #3276b1; 109 background-color: #3276b1;
110 border-color: #285e8e; 110 border-color: #285e8e;
111 } 111 }
112 112
113 /* Bitcoin */
114
115 #form.none button.bitcoin,
116 #form.bitcoin button.bitcoin
117 {
118 color: #fff;
119 background-color: #f0ad4e;
120 border-color: #eea236;
121 }
122
123 #form.none button.bitcoin:hover,
124 #form.bitcoin button.bitcoin:hover
125 {
126 background-color: #ed9c28;
127 border-color: #d58512;
128 }
129
130 /* Secondary Form Elements */ 113 /* Secondary Form Elements */
131 114
132 #form-fields 115 #form-fields
133 { 116 {
134 display: none; 117 display: none;
135 } 118 }
136 119
137 #form.credit-card #form-fields, 120 #form.credit-card #form-fields,
138 #form.paypal #form-fields, 121 #form.paypal #form-fields
139 #form.bitcoin #form-fields
140 { 122 {
141 display: block; 123 display: block;
142 } 124 }
143 125
144 #form.credit-card #form-recurrence, 126 #form.credit-card #form-recurrence
145 #form.bitcoin #form-currency,
146 #form.bitcoin #form-price
147 { 127 {
148 display: none; 128 display: none;
149 } 129 }
150 130
151 /* This cannot be #donate because specificity is too low */ 131 /* This cannot be #donate because specificity is too low */
152 #form #donate 132 #form #donate
153 { 133 {
154 color: #fff; 134 color: #fff;
155 background-color: #5cb85c; 135 background-color: #5cb85c;
156 border-color: #4cae4c; 136 border-color: #4cae4c;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 263
284 var recurrenceValue = { 264 var recurrenceValue = {
285 get: function(recurrences) 265 get: function(recurrences)
286 { 266 {
287 var checked = document.getElementById("recurrence").checked; 267 var checked = document.getElementById("recurrence").checked;
288 return (checked && recurrences.monthly) ? recurrences.monthly : undefined 268 return (checked && recurrences.monthly) ? recurrences.monthly : undefined
289 } 269 }
290 }; 270 };
291 271
292 var providers = { 272 var providers = {
293 "bitcoin": function()
294 {
295 var recurring = recurrenceValue.get({
296 "monthly": "https://coinbase.com/checkouts/d46825e3f22461f6a25b3249f8ce7 c2a"
297 });
298 openProviderPage({
299 action: (recurring) ? recurring : "https://coinbase.com/checkouts/ab08a1 65e21d72b503cff8f30bece652"
300 });
301 },
302 "credit-card": function() 273 "credit-card": function()
303 { 274 {
304 if (verify(priceValue)) 275 if (verify(priceValue))
305 return; 276 return;
306 277
307 openProviderPage({ 278 openProviderPage({
308 action: "https://billing.micropayment.de/creditcard/file/", 279 action: "https://billing.micropayment.de/creditcard/file/",
309 fields: { 280 fields: {
310 project: "dblock", 281 project: "dblock",
311 paytext: formValues.name, 282 paytext: formValues.name,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 { 454 {
484 var provider = providers[document.getElementById("form").className]; 455 var provider = providers[document.getElementById("form").className];
485 if (provider) 456 if (provider)
486 provider(); 457 provider();
487 }, false); 458 }, false);
488 }, false); 459 }, false);
489 })(); 460 })();
490 461
491 // --> 462 // -->
492 </script> 463 </script>
OLDNEW
« no previous file with comments | « donate-body.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld