()
| 48 | } |
| 49 | |
| 50 | function createErrorContainer() { |
| 51 | const errorCont = document.createElement('div'); |
| 52 | errorCont.setAttribute('class', 'err-search'); |
| 53 | const errorTemplate = ` |
| 54 | <h2>Sorryyy No movie found 😢</h2> |
| 55 | `; |
| 56 | errorCont.innerHTML = errorTemplate; |
| 57 | return errorCont; |
| 58 | } |
| 59 | |
| 60 | // async function fetchMovieJSON() { |
| 61 | // try { |