diff --git a/es-ds-components/components/es-footer.vue b/es-ds-components/components/es-footer.vue index c82926c7d..9acf03415 100644 --- a/es-ds-components/components/es-footer.vue +++ b/es-ds-components/components/es-footer.vue @@ -25,6 +25,25 @@ export default { return this.content.copyrightText.replace('{currentYear}', new Date().getFullYear()); }, }, + mounted() { + // https://energysage.atlassian.net/wiki/spaces/FG/pages/1427865649/One-trust+Consent+Initialization+and+GTM + window.addEventListener('OneTrustLoadedCb', () => { + (window as any).OneTrust.OnConsentChanged(() => { + // OneTrust modal should modify cookie values, a hard-refresh will + // trigger re-loading GTM with updated cookie values, which in turn + // will only fire tags aligned with new preferences + window.location.reload(); + return false; + }); + document.querySelectorAll('.toggle-info-display').forEach((elem) => { + // Function closure to ensure event only fires on one elem + elem.addEventListener('click', (e) => { + e.stopImmediatePropagation(); + (window as any).OneTrust.ToggleInfoDisplay(); + }); + }); + }); + }, }; @@ -120,16 +139,26 @@ export default {
-
+
+ class="col col-6 col-lg-auto mt-25 mb-50 pr-lg-300"> + class="text-reset font-weight-normal font-size-75 font-size-md-50 font-weight-md-normal"> {{ link.text }} +
+ + + {{ link.text }} + +
diff --git a/es-ds-components/components/icon/ccpa-opt-out.vue b/es-ds-components/components/icon/ccpa-opt-out.vue new file mode 100644 index 000000000..2d4822693 --- /dev/null +++ b/es-ds-components/components/icon/ccpa-opt-out.vue @@ -0,0 +1,61 @@ + + + diff --git a/es-ds-components/utils/get-es-footer-content.ts b/es-ds-components/utils/get-es-footer-content.ts index 2c790a5bb..2f20c3b1b 100644 --- a/es-ds-components/utils/get-es-footer-content.ts +++ b/es-ds-components/utils/get-es-footer-content.ts @@ -76,6 +76,7 @@ export default ( { text: 'Privacy policy', url: `${ES_DOMAIN}/privacy-policy/` }, { text: 'Mobile terms of use', url: `${ES_DOMAIN}/mobile-terms-of-use/` }, { text: 'Non-discrimination policy', url: `${ES_DOMAIN}/nondiscrimination/` }, + { text: 'Your privacy choices' }, ], copyrightText: '© Copyright 2009-{currentYear} EnergySage, Inc. All rights reserved.', trademarkText: `ENERGYSAGE is a registered trademark and the EnergySage logo is a trademark of EnergySage, Inc.