Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets 32164 #18

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions head.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="stylesheet" href="/scripts/libs/flatpickr/flatpickr.min.css">
<!-- End of Generated code -->
<script src="/scripts/scripts.js" type="module"></script>
<script src="/scripts/custom-scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<link rel="stylesheet" href="/styles/gmo-styles.css"/>
<link rel="icon" href="data:,">
21 changes: 21 additions & 0 deletions scripts/custom-scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { getBrandingConfig } from "./site-config.js";
import { EventNames } from "./events.js";
import showToast from "./toast-message.js";

initLegalNotice();

async function initLegalNotice() {
const config = await getBrandingConfig();
document.addEventListener(EventNames.SESSION_STARTED, function() {

Check warning on line 9 in scripts/custom-scripts.js

View workflow job for this annotation

GitHub Actions / build

Unexpected unnamed function
showLegalNotice(config);
});
}

function showLegalNotice(config) {
const legalDefault = `NOTICE: Adobe records and uses your e-mail address for tracking purposes.`;
const legalToast = config?.legalMessage || legalDefault;
const legalDuration = 10000;
const toastType = "info";

showToast(legalToast, legalDuration, toastType, false);
}
4 changes: 4 additions & 0 deletions styles/gmo-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ header:empty {

header nav .nav-brand .adp-logo img {
min-height: 42px;
}

.adp-toast {
text-transform: none;
}
Loading