Skip to content

Commit

Permalink
Merge pull request #223 from AdobeDocs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
vignesh66085 authored Sep 20, 2024
2 parents f61e9b0 + 15237be commit 21b2f53
Show file tree
Hide file tree
Showing 8 changed files with 951 additions and 461 deletions.
53 changes: 38 additions & 15 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,44 @@ export const onRouteUpdate = ({ location, prevLocation }) => {
link.href = `${baseurl}`;
}
})
} else if (window.location.pathname.indexOf("contact/sales/form-data-api") >= 0) {

document
.querySelector(".Form-Data-API-ContactUs")
.closest("main")
.setAttribute("daa-lh", "Body");

document
.querySelector(".Form-Data-API-ContactUs")
.setAttribute("daa-lh", "Form-Data-API-Header");

document
.querySelector(".Form-Data-API")
.setAttribute("daa-lh", "Form Data API");

document.querySelectorAll(".Form-Data-API a").forEach((link) => {
link.setAttribute("daa-ll", `Form-Data-API | ${link.textContent}`);
});

} else if (window.location.pathname.indexOf("contact/sales/auto-redact") >= 0) {

document
.querySelector(".Auto-Redact-Contact-Us")
.closest("main")
.setAttribute("daa-lh", "Body");

document
.querySelector(".Auto-Redact-Contact-Us")
.setAttribute("daa-lh", "Auto-Redact-Contact-Us");

document
.querySelector(".Auto-Redact-API")
.setAttribute("daa-lh", "Auto-Redact-API");

document.querySelectorAll(".Auto-Redact-API a").forEach((link) => {
link.setAttribute("daa-ll", `Auto-Redact-API | ${link.textContent}`);
});

} else if (window.location.pathname.indexOf("contact/sales") >= 0) {
document
.querySelector(".Sales-ContactUs")
Expand Down Expand Up @@ -1719,21 +1757,6 @@ export const onRouteUpdate = ({ location, prevLocation }) => {

} else if (window.location.pathname.indexOf("contact/sales/seal") >= 0) {

} else if (window.location.pathname.indexOf("contact/sales/form-data-api") >= 0) {

document
.querySelector(".Form-Data-API-ContactUs")
.closest("main")
.setAttribute("daa-lh", "Body");

document
.querySelector(".Form-Data-API")
.setAttribute("daa-lh", "Form Data API");

document
.querySelector(".Hero-Banner")
.setAttribute("daa-lh", "Hero Banner");

} else if (window.location.pathname.indexOf("contact") >= 0) {
document
.querySelector(".Contact-Home")
Expand Down
Loading

0 comments on commit 21b2f53

Please sign in to comment.