-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/app/shared/components/phase-banner/phase-banner.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,71 @@ | ||
|
||
window.cookieManager.on('UserPreferencesLoaded', (preferences) => { | ||
var dataLayer = window.dataLayer || []; | ||
dataLayer.push({ 'event': 'Cookie Preferences', 'cookiePreferences': preferences }); | ||
}); | ||
var dataLayer = window.dataLayer || []; | ||
dataLayer.push({ 'event': 'Cookie Preferences', 'cookiePreferences': preferences }); | ||
}); | ||
|
||
window.cookieManager.on('UserPreferencesSaved', (preferences) => { | ||
var dataLayer = window.dataLayer || []; | ||
var dtrum = window.dtrum; | ||
window.cookieManager.on('UserPreferencesSaved', (preferences) => { | ||
var dataLayer = window.dataLayer || []; | ||
var dtrum = window.dtrum; | ||
|
||
dataLayer.push({ 'event': 'Cookie Preferences', 'cookiePreferences': preferences }); | ||
dataLayer.push({ 'event': 'Cookie Preferences', 'cookiePreferences': preferences }); | ||
|
||
if (dtrum !== undefined) { | ||
if (preferences.apm === 'on') { | ||
dtrum.enable(); | ||
dtrum.enableSessionReplay(); | ||
} else { | ||
dtrum.disableSessionReplay(); | ||
dtrum.disable(); | ||
} | ||
if (dtrum !== undefined) { | ||
if (preferences.apm === 'on') { | ||
dtrum.enable(); | ||
dtrum.enableSessionReplay(); | ||
} else { | ||
dtrum.disableSessionReplay(); | ||
dtrum.disable(); | ||
} | ||
}); | ||
} | ||
}); | ||
|
||
window.cookieManager.on('PreferenceFormSubmitted', () => { | ||
const message = document.querySelector('.cookie-preference-success'); | ||
message.style.display = 'block'; | ||
document.body.scrollTop = 0; // For Safari | ||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera | ||
}); | ||
window.cookieManager.on('PreferenceFormSubmitted', () => { | ||
const message = document.querySelector('.cookie-preference-success'); | ||
message.style.display = 'block'; | ||
document.body.scrollTop = 0; // For Safari | ||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera | ||
}); | ||
|
||
|
||
var config = { | ||
userPreferences: { | ||
cookieName: 'ccpay-bubble-cookie-preferences', | ||
var config = { | ||
userPreferences: { | ||
cookieName: 'ccpay-bubble-cookie-preferences', | ||
}, | ||
preferencesForm: { | ||
class: 'cookie-preferences-form', | ||
}, | ||
cookieManifest: [ | ||
{ | ||
categoryName: 'analytics', | ||
cookies: [ | ||
'_ga', | ||
'_gid', | ||
'_gat_UA-' | ||
] | ||
}, | ||
{ | ||
categoryName: 'apm', | ||
cookies: [ | ||
'dtCookie', | ||
'dtLatC', | ||
'dtPC', | ||
'dtSa', | ||
'rxVisitor', | ||
'rxvt' | ||
] | ||
}, | ||
preferencesForm: { | ||
class: 'cookie-preferences-form', | ||
{ | ||
categoryName: 'essential', | ||
optional: false, | ||
matchBy: 'exact', | ||
cookies: [ | ||
'_csrf', | ||
'__user-info', | ||
'__site-id' | ||
] | ||
}, | ||
cookieManifest: [ | ||
{ | ||
categoryName: 'analytics', | ||
cookies: [ | ||
'_ga', | ||
'_gid', | ||
'_gat_UA-' | ||
] | ||
}, | ||
{ | ||
categoryName: 'apm', | ||
cookies: [ | ||
'dtCookie', | ||
'dtLatC', | ||
'dtPC', | ||
'dtSa', | ||
'rxVisitor', | ||
'rxvt' | ||
] | ||
}, | ||
{ | ||
categoryName: 'essential', | ||
optional: false, | ||
matchBy: 'exact', | ||
cookies: [ | ||
'_csrf', | ||
'__user-info', | ||
'__site-id' | ||
] | ||
}, | ||
] | ||
}; | ||
] | ||
}; | ||
|
||
window.cookieManager.init(config); | ||
window.cookieManager.init(config); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters