index.js
// adds headers to sidebar results from spotify req
adds headers to sidebar results from spotify req
adds headers to sidebar results from spotify req
function addArtistHeader(name) {
  songHead.innerHTML = '';
  var h3 = document.createElement('h3');
  var h3Sub = document.createElement('h3');
  var headingText = document.createTextNode('Preview the ' + name + ' concert!');
  var headingTextTwo = document.createTextNode('Click an image to play:');
  h3.appendChild(headingText);
  h3Sub.appendChild(headingTextTwo);
  songHead.appendChild(h3);
  songHead.appendChild(h3Sub);
}
function addArtistHeader ( name ) { songHead . innerHTML = '' ; var h3 = document . createElement ( 'h3' ) ; var h3Sub = document . createElement ( 'h3' ) ; var headingText = document . createTextNode ( 'Preview the ' + name + ' concert!' ) ; var headingTextTwo = document . createTextNode ( 'Click an image to play:' ) ; h3 . appendChild ( headingText ) ; h3Sub . appendChild ( headingTextTwo ) ; songHead . appendChild ( h3 ) ; songHead . appendChild ( h3Sub ) ; }
adds headers to sidebar results from spotify req
adds headers to sidebar results from spotify req
// clear out #song-header div