scripts/doc-generator/generate_header_html.js
/**
 * Returns the HTML string corresponding to the logo of the current project, if
 * available, and with the corresponding link, also if available.
 * @param {Object|undefined} logoInfo
 * @returns {string}
 */
Returns the HTML string corresponding to the logo of the current project, if
available, and with the corresponding link, also if available.
@param {Object|undefined} logoInfo
@returns {string}
Returns the HTML string corresponding to the logo of the current project if available and with the corresponding link also if available . @param { Object|undefined } logoInfo @returns { string }
function constructLogoHtmlInHeaderBar(logoInfo) {
  if (logoInfo === null || logoInfo === undefined) {
    return "";
  }
  let logoHtml = "";
  let hasLink = false;
  if (typeof logoInfo.link === "string") {
    hasLink = true;
    logoHtml += `<a href="${encode(logoInfo.link)}">`;
  }
  if (typeof logoInfo.url === "string") {
    logoHtml += `<img alt="Logo" class="navbar-item navbar-item-logo"` +
      ` src="${encode(logoInfo.url)}" />`;
  }
  if (hasLink) {
    logoHtml += "</a>";
  }
  return logoHtml;
}
function constructLogoHtmlInHeaderBar ( logoInfo ) { if ( logoInfo === null || logoInfo === undefined ) { return "" ; } let logoHtml = "" ; let hasLink = false ; if ( typeof logoInfo . link === "string" ) { hasLink = true ; logoHtml += ` ${ encode ( logoInfo . link ) } ` ; } if ( typeof logoInfo . url === "string" ) { logoHtml += ` ` + ` ${ encode ( logoInfo . url ) } ` ; } if ( hasLink ) { logoHtml += "</a>" ; } return logoHtml ; }
Returns the HTML string corresponding to the logo of the current project, if
 available, and with the corresponding link, also if available.
Returns the HTML string corresponding to the logo of the current project if available and with the corresponding link also if available .