OLD | NEW |
(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 } |
OLD | NEW |