project/src/main/webapp/shared.js
/** Adds a hyperlink to the registration button of event card */
Adds a hyperlink to the registration button of event card
Adds a hyperlink to the registration button of event card
function addLinkToRegister(eventCardId) {
  const registerButton = '#' + eventCardId + ' div #event-register';
  $(registerButton).show();
  const eventId = eventCardId.substring(6);
  $(registerButton)
      .attr('href', `/event-details.html?eventId=${eventId}&register=true`);
}
function addLinkToRegister ( eventCardId ) { const registerButton = '#' + eventCardId + ' div #event-register' ; $ ( registerButton ) . show ( ) ; const eventId = eventCardId . substring ( 6 ) ; $ ( registerButton ) . attr ( 'href' , ` ${ eventId } ` ) ; }
Adds a hyperlink to the registration button of event card
Adds a hyperlink to the registration button of event card