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

Function addReposToCard

script1.js:54–66  ·  view source on GitHub ↗
(repos)

Source from the content-addressed store, hash-verified

52main.innerHTML = cardHTML
53}
54function addReposToCard(repos) {
55const reposEl = document.getElementById('repos')
56repos
57.slice(0, 5)
58.forEach(repo => {
59const repoEl = document.createElement('a')
60repoEl.classList.add('repo')
61repoEl.href = repo.html_url
62repoEl.target = '_blank'
63repoEl.innerText = repo.name
64reposEl.appendChild(repoEl)
65})
66}
67form.addEventListener('submit', (e) => {
68e.preventDefault()
69const user = search.value

Callers 1

getReposFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected