src/main/modules/Site.js
function onClick(instance) {
    const self = instance;
    self.wrapperNodes.forEach((n) => {
      n.addEventListener(ANIMATIONEND, function thisFunction(e) {
        e.target.classList.remove('bubble');
        e.target.removeEventListener(ANIMATIONEND, thisFunction);
      });
      n.classList.add('bubble');
    });

    if (tooltip.getCurrentTarget() === self.wrapperNodes[0]) {
      return;
    }

    tooltip.createTooltip(self.wrapperNodes[0], self.result.text, false);

    setTimeout(() => {
      if (tooltip.getCurrentTarget()) {
        document.addEventListener('click', function thisFunction() {
          if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {
            tooltip.removeTooltip();
          }
          document.removeEventListener('click', thisFunction);
        });
      }
    }, 0);
  }
function onClick(instance) {
    const self = instance;
    self.wrapperNodes.forEach((n) => {
      n.addEventListener(ANIMATIONEND, function thisFunction(e) {
        e.target.classList.remove('bubble');
        e.target.removeEventListener(ANIMATIONEND, thisFunction);
      });
      n.classList.add('bubble');
    });

    if (tooltip.getCurrentTarget() === self.wrapperNodes[0]) {
      return;
    }

    tooltip.createTooltip(self.wrapperNodes[0], self.result.text, false);

    setTimeout(() => {
      if (tooltip.getCurrentTarget()) {
        document.addEventListener('click', function thisFunction() {
          if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {
            tooltip.removeTooltip();
          }
          document.removeEventListener('click', thisFunction);
        });
      }
    }, 0);
  }
function onClick ( instance ) { const self = instance ; self . wrapperNodes . forEach ( ( n ) => { n . addEventListener ( ANIMATIONEND , function thisFunction ( e ) { e . target . classList . remove ( 'bubble' ) ; e . target . removeEventListener ( ANIMATIONEND , thisFunction ) ; } ) ; n . classList . add ( 'bubble' ) ; } ) ; if ( tooltip . getCurrentTarget ( ) === self . wrapperNodes [ 0 ] ) { return ; } tooltip . createTooltip ( self . wrapperNodes [ 0 ] , self . result . text , false ) ; setTimeout ( ( ) => { if ( tooltip . getCurrentTarget ( ) ) { document . addEventListener ( 'click' , function thisFunction ( ) { if ( tooltip . getCurrentTarget ( ) && tooltip . getCurrentTarget ( ) === self . wrapperNodes [ 0 ] ) { tooltip . removeTooltip ( ) ; } document . removeEventListener ( 'click' , thisFunction ) ; } ) ; } } , 0 ) ; }
OnClick event for renderings
OnClick event for renderings