(msg)
| 44 | main.innerHTML = cardHTML |
| 45 | } |
| 46 | function createErrorCard(msg) { |
| 47 | const cardHTML = ` |
| 48 | <div class="card"> |
| 49 | <h1>${msg}</h1> |
| 50 | </div> |
| 51 | ` |
| 52 | main.innerHTML = cardHTML |
| 53 | } |
| 54 | function addReposToCard(repos) { |
| 55 | const reposEl = document.getElementById('repos') |
| 56 | repos |