src/js/app.js
function onCardHeaderClick(e) {
  if (/** @type {!Element} */(e.target).nodeName == 'A') {
    return;
  }

  /** @type {?Node} */
  const node = /** @type {!Element} */(e.currentTarget).parentNode;
  if (node && node.nodeType === NodeType.ELEMENT) {
    const card = /** @type {!Element} */(node);
    if (card.classList && card.classList.contains('property')) {
      card.classList.toggle('open');
    }
  }
}
function onCardHeaderClick(e) {
  if (/** @type {!Element} */(e.target).nodeName == 'A') {
    return;
  }

  /** @type {?Node} */
  const node = /** @type {!Element} */(e.currentTarget).parentNode;
  if (node && node.nodeType === NodeType.ELEMENT) {
    const card = /** @type {!Element} */(node);
    if (card.classList && card.classList.contains('property')) {
      card.classList.toggle('open');
    }
  }
}
function onCardHeaderClick ( e ) { if ( /** @type {!Element} */ ( e . target ) . nodeName == 'A' ) { return ; } /** @type {?Node} */ const node = /** @type {!Element} */ ( e . currentTarget ) . parentNode ; if ( node && node . nodeType === NodeType . ELEMENT ) { const card = /** @type {!Element} */ ( node ) ; if ( card . classList && card . classList . contains ( 'property' ) ) { card . classList . toggle ( 'open' ) ; } } }
Responds to click events on a property card.

@param {!Event} e The click event.
Responds to click events on a property card .