(err)
| 72 | } |
| 73 | |
| 74 | _renderError(err) { |
| 75 | const markup = ` |
| 76 | <div class="placeholder-weather"> |
| 77 | <img src="../../assets/Images/weatherApp/error.svg" alt=""> |
| 78 | <h2>${err}</h2> |
| 79 | |
| 80 | </div>` |
| 81 | console.log(markup) |
| 82 | this.#parentElement.innerHTML = ""; |
| 83 | this.#parentElement.insertAdjacentHTML('afterbegin', markup) |
| 84 | this.#parentElement.style.visibility = 'visible'; |
| 85 | this.#parentElement.style.opacity = '1'; |
| 86 | |
| 87 | } |
| 88 | |
| 89 | _generateMarkup(data) { |
| 90 | console.log(data.weather[0].main) |