project/src/main/webapp/shared.js
/** Prepends either a background image or Bootstrap-colored div */
Prepends either a background image or Bootstrap-colored div
Prepends either a background image or Bootstrap - colored div
function addEventImage(imageUrl, eventCardId) {
  if (imageUrl) {
    $(`#${eventCardId} #event-card-image`).attr('src', imageUrl);
  } else {
    createRandomColorBlock(`#${eventCardId} #event-card-image`);
  }
}
function addEventImage ( imageUrl , eventCardId ) { if ( imageUrl ) { $ ( ` ${ eventCardId } ` ) . attr ( 'src' , imageUrl ) ; } else { createRandomColorBlock ( ` ${ eventCardId } ` ) ; } }
Prepends either a background image or Bootstrap-colored div
Prepends either a background image or Bootstrap - colored div