liff-starter.js
/**
 * Toggle specified element
 * @param {string} elementId The ID of the selected element
 */
Toggle specified element
@param {string} elementId The ID of the selected element
Toggle specified element @param { string } elementId The ID of the selected element
function toggleElement(elementId) {
  const elem = document.getElementById(elementId);
  if (elem.offsetWidth > 0 && elem.offsetHeight > 0) {
    elem.style.display = "none";
  } else {
    elem.style.display = "block";
  }
}
function toggleElement ( elementId ) { const elem = document . getElementById ( elementId ) ; if ( elem . offsetWidth > 0 && elem . offsetHeight > 0 ) { elem . style . display = "none" ; } else { elem . style . display = "block" ; } }
Toggle specified element
 @param {string} elementId The ID of the selected element
Toggle specified element @param { string } elementId The ID of the selected element