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

Function createTrackDetail

assets/js/SpotifyFinder.js:135–154  ·  view source on GitHub ↗
(img, title, artist)

Source from the content-addressed store, hash-verified

133 },
134
135 createTrackDetail(img, title, artist) {
136 const detailDiv = document.querySelector(DOMElements.divSongDetail)
137 detailDiv.innerHTML = ''
138
139 const html = `
140 <div class="holder">
141 <div class="row col-sm-12 px-0" align="center">
142 <img src="${img}" alt="">
143 </div>
144 <div class="row col-sm-12 px-0" align="center">
145 <label for="Genre" class="form-label col-sm-12 genre">${title}</label>
146 </div>
147 <div class="row col-sm-12 px-0" align="center">
148 <label for="artist" class="form-label col-sm-12 artist">By ${artist}</label>
149 </div>
150 </div>
151 `
152
153 detailDiv.insertAdjacentHTML('beforeend', html)
154 },
155
156 resetTrackDetail() {
157 this.inputField().songDetail.innerHTML = ''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected