(msg)
| 53 | } |
| 54 | |
| 55 | function createErrorCard(msg) { |
| 56 | const cardHTML = ` |
| 57 | <div class="card"> |
| 58 | <h1>${msg}</h1> |
| 59 | </div> |
| 60 | ` |
| 61 | |
| 62 | main.innerHTML = cardHTML |
| 63 | } |
| 64 | |
| 65 | function addReposToCard(repos) { |
| 66 | const reposEl = document.getElementById('repos') |