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

Side by Side Diff: about/thanks.js

Issue 8493027: Acquired Opera AdBlock code (Closed)
Patch Set: Created Oct. 2, 2012, 1:15 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
OLDNEW
(Empty)
1 var thanksParent = document.getElementById('thanks');
2
3 var title = document.createElement('h2');
4 title.appendChild(document.createTextNode(translate.get('about_thanks')));
5 thanksParent.appendChild(title);
6
7 var thanks = ['gil'];
8 for(i in thanks) {
9 var subtitle = document.createElement('h4');
10 var name = translate.get(thanks[i]);
11 subtitle.appendChild(document.createTextNode(name.replace(/%.*%/, '') + ' '));
12 if(name.match(/%g\+:[0-9]{21}%/)) { //Google+
13 var googlePlus = document.createElement('a');
14 googlePlus.href = 'https://plus.google.com/u/0/' + name.replace( /^.*%g\+:([0-9]{21})%.*/, '$1') + '/';
15 var googlePlusLogo = document.createElement('img');
16 googlePlusLogo.setAttribute('src', '/images/googlePlus.png');
17 googlePlus.appendChild(googlePlusLogo);
18 subtitle.appendChild(googlePlus);
19 }
20 thanksParent.appendChild(subtitle);
21 var text = document.createElement('p');
22 text.innerHTML = translate.get(thanks[i] + '_text');
23 thanksParent.appendChild(text);
24 }
OLDNEW
« no previous file with comments | « about/license.js ('k') | about/translators.js » ('j') | files/background.js » ('J')

Powered by Google App Engine
This is Rietveld