mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-18 05:25:04 +00:00
67 lines
2.5 KiB
JavaScript
67 lines
2.5 KiB
JavaScript
![]() |
import './cookieconsent.umd.js';
|
||
|
import 'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.umd.js';
|
||
|
|
||
|
// Enable dark mode
|
||
|
document.documentElement.classList.add('cc--darkmode');
|
||
|
|
||
|
CookieConsent.run({
|
||
|
guiOptions: {
|
||
|
consentModal: {
|
||
|
layout: "bar",
|
||
|
position: "bottom",
|
||
|
equalWeightButtons: true,
|
||
|
flipButtons: true
|
||
|
},
|
||
|
preferencesModal: {
|
||
|
layout: "box",
|
||
|
position: "right",
|
||
|
equalWeightButtons: true,
|
||
|
flipButtons: true
|
||
|
}
|
||
|
},
|
||
|
categories: {
|
||
|
necessary: {
|
||
|
readOnly: true
|
||
|
},
|
||
|
analytics: {}
|
||
|
},
|
||
|
language: {
|
||
|
default: "en",
|
||
|
translations: {
|
||
|
en: {
|
||
|
consentModal: {
|
||
|
title: cookieBannerPopUpTitle,
|
||
|
description: cookieBannerPopUpDescription,
|
||
|
acceptAllBtn: cookieBannerPopUpAcceptAllBtn,
|
||
|
acceptNecessaryBtn: cookieBannerPopUpAcceptNecessaryBtn,
|
||
|
showPreferencesBtn: cookieBannerPopUpShowPreferencesBtn,
|
||
|
},
|
||
|
preferencesModal: {
|
||
|
title: cookieBannerPreferencesModalTitle,
|
||
|
acceptAllBtn: cookieBannerPreferencesModalAcceptAllBtn,
|
||
|
acceptNecessaryBtn: cookieBannerPreferencesModalAcceptNecessaryBtn,
|
||
|
savePreferencesBtn: cookieBannerPreferencesModalSavePreferencesBtn,
|
||
|
closeIconLabel: cookieBannerPreferencesModalCloseIconLabel,
|
||
|
serviceCounterLabel: cookieBannerPreferencesModalServiceCounterLabel,
|
||
|
sections: [
|
||
|
{
|
||
|
title: cookieBannerPreferencesModalSubtitle,
|
||
|
description: cookieBannerPreferencesModalDescription
|
||
|
},
|
||
|
{
|
||
|
title:cookieBannerPreferencesModalNecessaryTitle,
|
||
|
description: cookieBannerPreferencesModalNecessaryDescription,
|
||
|
linkedCategory: "necessary"
|
||
|
},
|
||
|
{
|
||
|
title: cookieBannerPreferencesModalAnalyticsTitle,
|
||
|
description: cookieBannerPreferencesModalAnalyticsDescription,
|
||
|
linkedCategory: "analytics"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|