OLD | NEW |
(Empty) | |
| 1 var donateParent = document.getElementById('donate'); |
| 2 |
| 3 //PAYPAL |
| 4 var paypal = document.createElement('div'); |
| 5 paypal.setAttribute('id', 'paypal'); |
| 6 |
| 7 var paypalLink = document.createElement('a'); |
| 8 paypalLink.setAttribute('href', 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xc
lick&hosted_button_id=' + paypalId); |
| 9 paypalLink.setAttribute('onClick', "notify(translate.get('notif_donate_title'),
translate.get('notif_donate_descript'));"); |
| 10 |
| 11 var paypalImage = document.createElement('img'); |
| 12 paypalImage.setAttribute('class', 'donate-button'); |
| 13 paypalImage.setAttribute('alt', 'PayPal'); |
| 14 paypalImage.setAttribute('src', '/images/paypal.gif'); |
| 15 |
| 16 paypalLink.appendChild(paypalImage); |
| 17 paypal.appendChild(paypalLink); |
| 18 donateParent.appendChild(paypal); |
| 19 |
| 20 //FLATTR |
| 21 var flattr = document.createElement('div'); |
| 22 flattr.setAttribute('id', 'flattr'); |
| 23 |
| 24 var flattrLink = document.createElement('a'); |
| 25 flattrLink.setAttribute('href', 'https://flattr.com/thing/273210/Opera-AdBlock')
; |
| 26 flattrLink.setAttribute('onClick', "notify(translate.get('notif_donate_title'),
translate.get('notif_donate_descript'));"); |
| 27 |
| 28 var flattrImage = document.createElement('img'); |
| 29 flattrImage.setAttribute('class', 'donate-button'); |
| 30 flattrImage.setAttribute('alt', 'Flattr'); |
| 31 flattrImage.setAttribute('src', '/images/flattr.png'); |
| 32 |
| 33 flattrLink.appendChild(flattrImage); |
| 34 flattr.appendChild(flattrLink); |
| 35 donateParent.appendChild(flattr); |
OLD | NEW |