lib/parseShowlistHtml.js
/*

  Give a header node, find all the HTML partials that correspond to show
  listings on showlist

*/
Give a header node, find all the HTML partials that correspond to show
listings on showlist
Give a header node find all the HTML partials that correspond to show listings on showlist
function htmlPartialsFromHeader($header)
{
  const $contents = $header.next('table').find('tr td');
  let html = $contents.html();
  if (!html) {
    const $contents = $header.next('form');
    html = $contents.html();
    if (!html) {
      throw new Error('Unable to find any partials under header');
    }
  }
  return html
    .split('<hr style="color:#cccccc;">')
    .filter(s => s && s !== '\n');
}
function htmlPartialsFromHeader ( $header ) { const $contents = $header . next ( 'table' ) . find ( 'tr td' ) ; let html = $contents . html ( ) ; if ( ! html ) { const $contents = $header . next ( 'form' ) ; html = $contents . html ( ) ; if ( ! html ) { throw new Error ( 'Unable to find any partials under header' ) ; } } return html . split ( '<hr style="color:#cccccc;">' ) . filter ( s => s && s !== '\n' ) ; }
Give a header node, find all the HTML partials that correspond to show
listings on showlist
Give a header node find all the HTML partials that correspond to show listings on showlist
// might be a sxsw show and uses a form instead // still no..