Skip to content

Commit

Permalink
templateChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
shivangi1422 committed May 3, 2024
1 parent 790b50f commit b450c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion blocks/breadcrumbs/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function decorate($block) {
link: '/',
}, {
text: 'Events',
link: '/about-us/events-calendar',
link: '/about-us/events',
}, {
text: title,
}];
Expand Down
14 changes: 4 additions & 10 deletions blocks/event-summary/event-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { getMetadata, createOptimizedPicture } from '../../scripts/aem.js';
import {
div, h1, a, li, p, ul,
strong,
button,
} from '../../scripts/dom-builder.js';

export default async function decorate(block) {
Expand Down Expand Up @@ -65,16 +66,9 @@ export default async function decorate(block) {
event.preventDefault();

const popupMessageBox = div({ class: 'popup-message' });
const message = document.createElement('p');
message.textContent = 'You are now moving to an external website.';

const proceedBtn = document.createElement('button');
proceedBtn.classList.add('proceed');
proceedBtn.textContent = 'Proceed';

const cancelBtn = document.createElement('button');
cancelBtn.classList.add('cancel');
cancelBtn.textContent = 'Cancel';
const message = p('You are now moving to an external website.');
const proceedBtn = button({class: 'proceed'}, 'Proceed');

Check failure on line 70 in blocks/event-summary/event-summary.js

View workflow job for this annotation

GitHub Actions / build

A space is required after '{'

Check failure on line 70 in blocks/event-summary/event-summary.js

View workflow job for this annotation

GitHub Actions / build

A space is required before '}'
const cancelBtn = button({class: 'cancel'}, 'Cancel');

Check failure on line 71 in blocks/event-summary/event-summary.js

View workflow job for this annotation

GitHub Actions / build

A space is required after '{'

Check failure on line 71 in blocks/event-summary/event-summary.js

View workflow job for this annotation

GitHub Actions / build

A space is required before '}'

popupMessageBox.appendChild(message);
popupMessageBox.appendChild(proceedBtn);
Expand Down

0 comments on commit b450c21

Please sign in to comment.