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); |
+} |