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

Side by Side Diff: common/donate.js

Issue 8493027: Acquired Opera AdBlock code (Closed)
Patch Set: Created Oct. 8, 2012, 5:58 a.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 | « common/copyright.js ('k') | common/header.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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);
OLDNEW
« no previous file with comments | « common/copyright.js ('k') | common/header.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld