diff --git a/acrobat/blocks/verb-widget/verb-widget.css b/acrobat/blocks/verb-widget/verb-widget.css index 08a9fa40..6857cfcd 100644 --- a/acrobat/blocks/verb-widget/verb-widget.css +++ b/acrobat/blocks/verb-widget/verb-widget.css @@ -249,6 +249,21 @@ margin-left: 15px; } +.verb-mobile-cta { + display: flex; + top: 324px; + left: 40px; + padding: 11px 25px; + border-radius: 47px; + background: #1473e6; + color: white; + white-space: nowrap; + font-weight: 700; + justify-content: center; + align-items: center; + width: 30%; +} + .verb-mobile-cta:hover, .verb-mobile-cta:active { background-color: #0054b6; @@ -263,20 +278,8 @@ flex: 1 1 55%; flex-direction: row; padding: 48px 0 48px 48px; - /* cursor: pointer; */ - } - .verb-mobile-cta { - background: #1473e6; - border-radius: 8px; - padding: 11px 27px; - color: #fff; - white-space: nowrap; - font-weight: 700; - display: flex; - justify-content: center; - align-items: center; - width: 30%; + /* cursor: pointer; */ } } @@ -315,19 +318,4 @@ .verb-cta { cursor: pointer; } - - .verb-mobile-cta { - display: flex; - top: 324px; - left: 40px; - padding: 11px 25px; - border-radius: 47px; - background: #1473e6; - color: white; - white-space: nowrap; - font-weight: 700; - justify-content: center; - align-items: center; - width: 30%; - } } diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 557e17ee..63bc2acd 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -87,7 +87,6 @@ export default async function init(element) { return; } - const ENV = getEnv(); const { locale } = getConfig(); const ppURL = window.mph['verb-widget-privacy-policy-url'] || `https://www.adobe.com${locale.prefix}/privacy/policy.html`; const touURL = window.mph['verb-widget-terms-of-use-url'] || `https://www.adobe.com${locale.prefix}/legal/terms.html`; @@ -270,6 +269,15 @@ export default async function init(element) { } }); + window.addEventListener('beforeunload', () => { + const date = new Date(); + date.setTime(date.getTime() + 1 * 60 * 1000); + const cookieExp = `expires=${date.toUTCString()}`; + if (exitFlag) { + document.cookie = `UTS_Redirect=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`; + } + }); + // Errors, Analytics & Logging const lanaOptions = { sampleRate: 1, diff --git a/acrobat/scripts/contentSecurityPolicy/prod.js b/acrobat/scripts/contentSecurityPolicy/prod.js index 2f22b272..86699c3c 100644 --- a/acrobat/scripts/contentSecurityPolicy/prod.js +++ b/acrobat/scripts/contentSecurityPolicy/prod.js @@ -25,7 +25,7 @@ const connectSrc = [ 'adobeioruntime.net', 'adobesearch.adobe.io', 'analytics.tiktok.com', - 'api.company-target.com/api/v2/', + 'api.company-target.com/', 'api.iperceptions.com', 'bat.bing.com/', 'c.go-mpulse.net', @@ -50,6 +50,8 @@ const connectSrc = [ 'px.ads.linkedin.com', 'tr6.snapchat.com', 'ad.doubleclick.net', + 'main--unity--adobecom.hlx.live', + 'main--unity--adobecom.hlx.page', ';', ]; @@ -243,6 +245,7 @@ const scriptSrc = [ 'yjtag.yahoo.co.jp', 'rum.hlx.page', 'tr.snapchat.com', + 'api.demandbase.com/api/v3', ';', ]; diff --git a/edgeworkers/Acrobat_DC_web_prod/utils/csp/prod.js b/edgeworkers/Acrobat_DC_web_prod/utils/csp/prod.js index 5d402f57..3195d999 100644 --- a/edgeworkers/Acrobat_DC_web_prod/utils/csp/prod.js +++ b/edgeworkers/Acrobat_DC_web_prod/utils/csp/prod.js @@ -25,7 +25,7 @@ const connectSrc = [ 'adobeioruntime.net', 'adobesearch.adobe.io', 'analytics.tiktok.com', - 'api.company-target.com/api/v2/', + 'api.company-target.com/', 'api.iperceptions.com', 'bat.bing.com/', 'c.go-mpulse.net', @@ -46,6 +46,18 @@ const connectSrc = [ 'trial-eum-clienttons-s.akamaihd.net/', '*.akstat.io/', 'rum.hlx.page', + 'rum.hlx.page', + 'facebook.com', + 'px.ads.linkedin.com', + 'tr6.snapchat.com', + 'ad.doubleclick.net', + 'rum.hlx.page', + 'facebook.com', + 'px.ads.linkedin.com', + 'tr6.snapchat.com', + 'ad.doubleclick.net', + 'main--unity--adobecom.hlx.live', + 'main--unity--adobecom.hlx.page', ';', ]; @@ -237,6 +249,7 @@ const scriptSrc = [ 's.yimg.jp', 'yjtag.yahoo.co.jp', 'rum.hlx.page', + 'api.demandbase.com/api/v3', ';', ];