MCPcopy Create free account
hub / github.com/codemistic/Web-Development / addReposToCard

Function addReposToCard

GitHub_profiles/script.js:65–79  ·  view source on GitHub ↗
(repos)

Source from the content-addressed store, hash-verified

63}
64
65function addReposToCard(repos) {
66 const reposEl = document.getElementById('repos')
67
68 repos
69 .slice(0, 5)
70 .forEach(repo => {
71 const repoEl = document.createElement('a')
72 repoEl.classList.add('repo')
73 repoEl.href = repo.html_url
74 repoEl.target = '_blank'
75 repoEl.innerText = repo.name
76
77 reposEl.appendChild(repoEl)
78 })
79}
80
81form.addEventListener('submit', (e) => {
82 e.preventDefault()

Callers 1

getReposFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected