MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / _renderError

Method _renderError

assets/js/weatherApp.js:74–87  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

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)

Callers 1

_getWeatherMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected