|
337 | 337 | } |
338 | 338 |
|
339 | 339 | // Avoiding using innerHTML due to security risks |
340 | | - // Creating the elements |
| 340 | + // Creating the elements |
341 | 341 | const teamContainer = cloneCardTemplate.querySelector('.project-inner.wins-card-team'); |
342 | 342 | const roleContainer = cloneCardTemplate.querySelector('.project-inner.wins-card-role'); |
343 | 343 | const teamSpanElement = document.createElement('span'); |
344 | 344 | teamSpanElement.classList.add('wins-team-role-color'); |
345 | 345 | const roleSpanElement = document.createElement('span'); |
346 | 346 | roleSpanElement.classList.add('wins-team-role-color'); |
347 | | - |
348 | | - // Preparing the text of the elements |
| 347 | + |
| 348 | + // Preparing the text of the elements |
349 | 349 | teamSpanElement.textContent = "Team(s): "; |
350 | 350 | const teamTextNode = document.createTextNode(card[team]); |
351 | 351 | roleSpanElement.textContent = "Role(s): "; |
@@ -506,7 +506,7 @@ function changeSeeMoreBtn(x) { |
506 | 506 | if (data[i][linkedin_url].length > 0) { |
507 | 507 | makeIcon(data[i][linkedin_url], overlayIcons, 'linkedin-icon', '/assets/images/wins-page/icon-linkedin-small.svg', 'LinkedIn profile for ' + data[i][name]); |
508 | 508 | } if (data[i][github_url].length > 0) { |
509 | | - makeIcon(data[i][github_url], overlayIcons, 'github-icon', '/assets/images/wins-page/icon-github-small.svg', 'Github profile for ' + data[i][name]); |
| 509 | + makeIcon(data[i][github_url], overlayIcons, 'github-icon', '/assets/images/wins-page/icon-github-small.svg', 'GitHub profile for ' + data[i][name]); |
510 | 510 | } |
511 | 511 |
|
512 | 512 | const overlayName = document.querySelector('#overlay-name'); |
|
0 commit comments