|
| 1 | +<style> |
| 2 | + a.contributorlink:hover { |
| 3 | + text-decoration-style: solid; |
| 4 | + text-decoration-line: underline; |
| 5 | + text-decoration-color: white; |
| 6 | + } |
| 7 | +</style> |
| 8 | + |
1 | 9 | <script type="text/javascript"> |
2 | 10 | fetch('https://api.github.com/repos/codeoverflow-org/nodecg-io/contributors').then(response => { |
3 | 11 | response.json().then(data => { |
4 | 12 | let idx = 1 |
5 | 13 | data.forEach(entry => { |
6 | 14 | const div = document.createElement('div') |
7 | | - div.style = `grid-column: 1; grid-row: ${idx}; display: inline-block ` |
| 15 | + div.style = `grid-column: 1; grid-row: ${idx}; display: inline-block; padding-bottom: 10px` |
8 | 16 | if ('avatar_url' in entry) { |
9 | 17 | div.innerHTML = ` |
10 | 18 | <img src="${entry.avatar_url}" width="64" height="64" style="float: left; margin-top: 0"> |
11 | 19 | <div style="float:left; margin-top: 0"> |
12 | | - <span style="font-size: 16pt; font-weight: bold; margin-left: 1em;"><a href="${entry.html_url}" style="color: black;">${entry.login}</a></span><br> |
13 | | - <span style="font-size: 12pt; margin-left: 1em;"><a href="https://github.com/codeoverflow-org/nodecg-io/commits?author=${entry.login}" style="color: black;">${entry.contributions} contributions</a></p> |
| 20 | + <span style="font-size: 16pt; font-weight: bold; margin-left: 1em; color: white;"> |
| 21 | + <a style="color: white;" class="contributorlink" href="${entry.html_url}">${entry.login}</a> |
| 22 | + </span><br> |
| 23 | + <span style="font-size: 12pt; margin-left: 1em; color: white;"> |
| 24 | + <a style="color: white;" class="contributorlink" href="https://github.com/codeoverflow-org/nodecg-io/commits?author=${entry.login}">${entry.contributions} contributions</a> |
| 25 | + </span> |
14 | 26 | </div> |
15 | 27 | ` |
16 | 28 | } else { |
17 | 29 | div.innerHTML = ` |
18 | | - <span style="font-size: 16pt; font-weight: bold; margin-left: 1em;">${entry.login}</span><br> |
19 | | - <span style="font-size: 12pt; margin-left: 1em;">${entry.contributions} contributions</p> |
| 30 | + <span style="font-size: 16pt; font-weight: bold; margin-left: 1em; color: white;">${entry.login}</span><br> |
| 31 | + <span style="font-size: 12pt; margin-left: 1em; color: white;">${entry.contributions} contributions</span> |
20 | 32 | ` |
21 | 33 | } |
22 | 34 | document.getElementById('contributorview').appendChild(div) |
|
0 commit comments