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