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

@gus W-17274770 add cookie manager and links #566

Merged
merged 2 commits into from
Nov 19, 2024
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
18 changes: 18 additions & 0 deletions website/_analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';

if (ExecutionEnvironment.canUseDOM) {

// OptanonConsentNoticeStart

const script = document.createElement('script');

script.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
script.type = 'text/javascript';
script.setAttribute('data-domain-script', '019321c1-4b7e-7313-9372-ddbd938f50ea')
script.innerHTML="function OptanonWrapper() { }";

document.getElementsByTagName('head')[0].appendChild(script);

// OptanonConsentNoticeStart -->

}
35 changes: 27 additions & 8 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,26 @@ const getConfig = async () => {
items: [
{
label: 'Legal',
href: 'https://www.tableau.com/en-us/legal',
href: 'https://www.salesforce.com/company/legal/',
},
{
label: 'Privacy',
href: 'https://www.salesforce.com/company/privacy/'
label: 'Terms of Service',
href: 'https://www.salesforce.com/company/legal/sfdc-website-terms-of-service/',
},
{
label: 'Privacy',
href: 'https://www.salesforce.com/company/privacy/'
},
{
label: 'Responsible Disclosure',
href: 'https://www.salesforce.com/company/legal/disclosure/',
},
{
label: 'Trust',
href: 'https://trust.salesforce.com/',
},
{
html: `<a href="#" data-ignore-geolocation="true" class="optanon-toggle-display" style="color:#FFFFFF">Cookie Preferences</a>`,
}
]

Expand Down Expand Up @@ -250,6 +265,11 @@ const getConfig = async () => {

],

markdown: {

mermaid: true,

},

themes: [

Expand All @@ -272,12 +292,11 @@ const getConfig = async () => {
}),
],
],
markdown: {

mermaid: true,

clientModules: [
require.resolve('./_analytics.js'),
],

},
};
}

Expand Down
Loading