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

Unified Diff: about/thanks.js

Issue 8493027: Acquired Opera AdBlock code (Closed)
Patch Set: Created Oct. 2, 2012, 1:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « about/license.js ('k') | about/translators.js » ('j') | files/background.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: about/thanks.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/about/thanks.js
@@ -0,0 +1,24 @@
+var thanksParent = document.getElementById('thanks');
+
+var title = document.createElement('h2');
+title.appendChild(document.createTextNode(translate.get('about_thanks')));
+thanksParent.appendChild(title);
+
+var thanks = ['gil'];
+for(i in thanks) {
+ var subtitle = document.createElement('h4');
+ var name = translate.get(thanks[i]);
+ subtitle.appendChild(document.createTextNode(name.replace(/%.*%/, '') + ' '));
+ if(name.match(/%g\+:[0-9]{21}%/)) { //Google+
+ var googlePlus = document.createElement('a');
+ googlePlus.href = 'https://plus.google.com/u/0/' + name.replace(/^.*%g\+:([0-9]{21})%.*/, '$1') + '/';
+ var googlePlusLogo = document.createElement('img');
+ googlePlusLogo.setAttribute('src', '/images/googlePlus.png');
+ googlePlus.appendChild(googlePlusLogo);
+ subtitle.appendChild(googlePlus);
+ }
+ thanksParent.appendChild(subtitle);
+ var text = document.createElement('p');
+ text.innerHTML = translate.get(thanks[i] + '_text');
+ thanksParent.appendChild(text);
+}
« 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