From ae2938a177b84a1960dd9086534241c8914796c7 Mon Sep 17 00:00:00 2001 From: Joaquin Rivero Date: Wed, 23 Oct 2024 22:57:35 +0800 Subject: [PATCH 1/6] Match desktop shape on mobile --- acrobat/blocks/verb-widget/verb-widget.css | 44 ++++++++-------------- 1 file changed, 16 insertions(+), 28 deletions(-) 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%; - } } From 66aebfc4929062c1ec1fd20d64a15f5b96d03c7d Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 24 Oct 2024 12:59:02 -0600 Subject: [PATCH 2/6] test 1 --- acrobat/blocks/verb-widget/verb-widget.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 557e17ee..91f53c70 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,17 @@ 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}`; + // adobe.com:acrobat:online:sign-pdf:transition + verbAnalytics('acom-redirect', VERB); + } + }); + // Errors, Analytics & Logging const lanaOptions = { sampleRate: 1, From e34d36909ed2093d9a25179b702600435b82b1d2 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 24 Oct 2024 13:11:07 -0600 Subject: [PATCH 3/6] test 2 --- acrobat/blocks/verb-widget/verb-widget.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 91f53c70..966868bb 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -277,6 +277,20 @@ export default async function init(element) { document.cookie = `UTS_Redirect=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`; // adobe.com:acrobat:online:sign-pdf:transition verbAnalytics('acom-redirect', VERB); + const event = { + documentUnloading: true, + data: { + eventType: 'web.webinteraction.linkClicks', + web: { + webInteraction: { + linkClicks: { value: 1 }, + type: 'other', + name: `acrobat:verb-${VERB}:acom-redirect`, + }, + }, + }, + }; + window?._satellite?.track('event', event); } }); From 7121b35254aff93e505a36ca3a1a2febd16a20cd Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 24 Oct 2024 13:21:52 -0600 Subject: [PATCH 4/6] test failed, leaving cookie --- acrobat/blocks/verb-widget/verb-widget.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 966868bb..63bc2acd 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -275,22 +275,6 @@ export default async function init(element) { const cookieExp = `expires=${date.toUTCString()}`; if (exitFlag) { document.cookie = `UTS_Redirect=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`; - // adobe.com:acrobat:online:sign-pdf:transition - verbAnalytics('acom-redirect', VERB); - const event = { - documentUnloading: true, - data: { - eventType: 'web.webinteraction.linkClicks', - web: { - webInteraction: { - linkClicks: { value: 1 }, - type: 'other', - name: `acrobat:verb-${VERB}:acom-redirect`, - }, - }, - }, - }; - window?._satellite?.track('event', event); } }); From b799bb0644c8d7f364822d0828c3db2211d7191a Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Mon, 28 Oct 2024 10:23:07 -0600 Subject: [PATCH 5/6] MWPW-161088 --- acrobat/scripts/contentSecurityPolicy/prod.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acrobat/scripts/contentSecurityPolicy/prod.js b/acrobat/scripts/contentSecurityPolicy/prod.js index 7e0a4742..26befd85 100644 --- a/acrobat/scripts/contentSecurityPolicy/prod.js +++ b/acrobat/scripts/contentSecurityPolicy/prod.js @@ -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', ';', ]; From b41163b5764ec9422dada8a119c14f48b4596bf9 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Mon, 28 Oct 2024 11:07:59 -0600 Subject: [PATCH 6/6] MWPW-161088 a few more --- acrobat/scripts/contentSecurityPolicy/prod.js | 3 ++- edgeworkers/Acrobat_DC_web_prod/utils/csp/prod.js | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/acrobat/scripts/contentSecurityPolicy/prod.js b/acrobat/scripts/contentSecurityPolicy/prod.js index 26befd85..d241e632 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', @@ -245,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', ';', ];