Skip to content

Commit

Permalink
Updated content to use rich text
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS committed Jul 9, 2024
1 parent 3be842b commit f72807b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/event-summary/event-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default async function decorate(block) {
const type = getMetadata('type');
const region = getMetadata('region');
const address = getMetadata('address');
const eventSummary = document.querySelector('.eventsummary.block');

const outerBlock = document.querySelector('.section');
outerBlock.classList.add('outer');
Expand Down Expand Up @@ -60,7 +61,7 @@ export default async function decorate(block) {

// Append elements to block
block.appendChild(imageContainer);
block.appendChild(div({ class: 'event-details' }, eventDate, eventSubtitle, div({ class: 'event-keywords' }, keywordList), div({ class: 'event-description' }, eventDescription, registerButtonContainer, talkButtonContainer)));
block.appendChild(div({ class: 'event-details' }, eventDate, eventSubtitle, div({ class: 'event-keywords' }, keywordList), div({ class: 'event-description' }, eventSummary, registerButtonContainer, talkButtonContainer)));

// Add event listener to the 'Register Today' button
registerButtonLink.addEventListener('click', (event) => {
Expand Down

0 comments on commit f72807b

Please sign in to comment.