Skip to content

Commit

Permalink
Removed the static url and added from backend for foot logo
Browse files Browse the repository at this point in the history
  • Loading branch information
umamenda committed Oct 17, 2023
1 parent 8703a29 commit b184da9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
.footer-wrapper div#footer-black div {
display: flex;
align-items: center;
flex-direction: row-reverse;
justify-content: space-between;
}

Expand Down
10 changes: 7 additions & 3 deletions blocks/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ export default async function decorate(block) {
const footLogo = document.createElement('a');
footLogo.id = 'footLogo';
footLogo.target = '_blank';
footLogo.href = 'https://www.danaher.com/?utm_source=ALD_web&utm_medium=referral&utm_content=trustmarkfooter';
footLogo.innerHTML = footerUl.children[0].children[2].innerHTML;
footerUl.children[0].children[2].replaceWith(footLogo);
// footLogo.href = '';
// footLogo.innerHTML = footerUl.children[0].children[2].innerHTML;

footLogo.append(footerUl.children[0]?.children[1]?.children[0]?.children[0]?.querySelector('picture'));
footLogo.href = footerUl.children[0]?.children[1]?.children[0]?.children[1]?.children[0]?.href;

footerUl.children[0].children[1].replaceWith(footLogo);
topContainer.append(footerUl);
decorateIcons(footerWapper);
block.append(topContainer);
Expand Down

0 comments on commit b184da9

Please sign in to comment.