(img, title, artist)
| 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 = '' |
nothing calls this directly
no outgoing calls
no test coverage detected