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

Method _renderData

assets/js/weatherApp.js:65–72  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

63 }
64
65 _renderData(data) {
66 const markup = this._generateMarkup(data);
67 this.#parentElement.innerHTML = "";
68
69 this.#parentElement.insertAdjacentHTML('afterbegin', markup)
70 this.#parentElement.style.visibility = 'visible';
71 this.#parentElement.style.opacity = '1';
72 }
73
74 _renderError(err) {
75 const markup = `

Callers 1

_getWeatherMethod · 0.95

Calls 1

_generateMarkupMethod · 0.95

Tested by

no test coverage detected