project/src/main/webapp/shared.js
/** Create a fixed-height color block for events with no image */
Create a fixed-height color block for events with no image
Create a fixed - height color block for events with no image
function createRandomColorBlock(elementId) {
  $(elementId).replaceWith('<div class="card-img-top" id="event-card-image" />')
  $(elementId).addClass(pickRandomColorClass());
  $(elementId).height('200px');
}
function createRandomColorBlock ( elementId ) { $ ( elementId ) . replaceWith ( '<div class="card-img-top" id="event-card-image" />' ) $ ( elementId ) . addClass ( pickRandomColorClass ( ) ) ; $ ( elementId ) . height ( '200px' ) ; }
Create a fixed-height color block for events with no image
Create a fixed - height color block for events with no image