OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 border-color: #357ebd; | 98 border-color: #357ebd; |
99 } | 99 } |
100 | 100 |
101 #form.none button.paypal:hover, | 101 #form.none button.paypal:hover, |
102 #form.paypal button.paypal:hover | 102 #form.paypal button.paypal:hover |
103 { | 103 { |
104 background-color: #3276b1; | 104 background-color: #3276b1; |
105 border-color: #285e8e; | 105 border-color: #285e8e; |
106 } | 106 } |
107 | 107 |
108 /* Bitcoin */ | |
109 | |
110 #form.none button.bitcoin, | |
111 #form.bitcoin button.bitcoin | |
112 { | |
113 color: #fff; | |
114 background-color: #f0ad4e; | |
115 border-color: #eea236; | |
116 } | |
117 | |
118 #form.none button.bitcoin:hover, | |
119 #form.bitcoin button.bitcoin:hover | |
120 { | |
121 background-color: #ed9c28; | |
122 border-color: #d58512; | |
123 } | |
124 | |
125 /* Secondary Form Elements */ | 108 /* Secondary Form Elements */ |
126 | 109 |
127 #form-fields | 110 #form-fields |
128 { | 111 { |
129 display: none; | 112 display: none; |
130 } | 113 } |
131 | 114 |
132 #form.credit-card #form-fields, | 115 #form.credit-card #form-fields, |
133 #form.paypal #form-fields, | 116 #form.paypal #form-fields |
134 #form.bitcoin #form-fields | |
135 { | 117 { |
136 display: block; | 118 display: block; |
137 } | 119 } |
138 | 120 |
139 #form.credit-card #form-recurrence, | |
140 #form.credit-card #recurrent-cancellation, | 121 #form.credit-card #recurrent-cancellation, |
141 #form.bitcoin #form-currency, | 122 #form.credit-card #form-recurrence |
142 #form.bitcoin #form-price | |
143 { | 123 { |
144 display: none; | 124 display: none; |
145 } | 125 } |
146 | 126 |
147 /* This cannot be #donate because specificity is too low */ | 127 /* This cannot be #donate because specificity is too low */ |
148 #form #donate | 128 #form #donate |
149 { | 129 { |
150 color: #fff; | 130 color: #fff; |
151 background-color: #5cb85c; | 131 background-color: #5cb85c; |
152 border-color: #4cae4c; | 132 border-color: #4cae4c; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 259 |
280 var recurrenceValue = { | 260 var recurrenceValue = { |
281 get: function(recurrences) | 261 get: function(recurrences) |
282 { | 262 { |
283 var checked = document.getElementById("recurrence").checked; | 263 var checked = document.getElementById("recurrence").checked; |
284 return (checked && recurrences.monthly) ? recurrences.monthly : undefined | 264 return (checked && recurrences.monthly) ? recurrences.monthly : undefined |
285 } | 265 } |
286 }; | 266 }; |
287 | 267 |
288 var providers = { | 268 var providers = { |
289 "bitcoin": function() | |
290 { | |
291 var recurring = recurrenceValue.get({ | |
292 "monthly": "https://coinbase.com/checkouts/d46825e3f22461f6a25b3249f8ce7
c2a" | |
293 }); | |
294 openProviderPage({ | |
295 action: (recurring) ? recurring : "https://coinbase.com/checkouts/ab08a1
65e21d72b503cff8f30bece652" | |
296 }); | |
297 }, | |
298 "credit-card": function() | 269 "credit-card": function() |
299 { | 270 { |
300 if (verify(priceValue)) | 271 if (verify(priceValue)) |
301 return; | 272 return; |
302 | 273 |
303 openProviderPage({ | 274 openProviderPage({ |
304 action: "https://billing.micropayment.de/creditcard/file/", | 275 action: "https://billing.micropayment.de/creditcard/file/", |
305 fields: { | 276 fields: { |
306 project: "dblock", | 277 project: "dblock", |
307 paytext: formValues.name, | 278 paytext: formValues.name, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 { | 450 { |
480 var provider = providers[document.getElementById("form").className]; | 451 var provider = providers[document.getElementById("form").className]; |
481 if (provider) | 452 if (provider) |
482 provider(); | 453 provider(); |
483 }, false); | 454 }, false); |
484 }, false); | 455 }, false); |
485 })(); | 456 })(); |
486 | 457 |
487 // --> | 458 // --> |
488 </script> | 459 </script> |
OLD | NEW |