-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
06f9b73
commit 8b8539d
Showing
5 changed files
with
108 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import 'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v3.0.0-rc.17/dist/cookieconsent.umd.js'; | ||
|
||
// Enable dark mode | ||
document.documentElement.classList.add('cc--darkmode'); | ||
|
||
CookieConsent.run({ | ||
guiOptions: { | ||
consentModal: { | ||
layout: "box", | ||
position: "bottom left", | ||
equalWeightButtons: true, | ||
flipButtons: false | ||
}, | ||
preferencesModal: { | ||
layout: "box", | ||
position: "right", | ||
equalWeightButtons: true, | ||
flipButtons: false | ||
} | ||
}, | ||
categories: { | ||
necessary: { | ||
readOnly: true | ||
}, | ||
analytics: {} | ||
}, | ||
language: { | ||
default: "en", | ||
autoDetect: "browser", | ||
translations: { | ||
en: { | ||
consentModal: { | ||
title: "Hello traveller, it's cookie time!", | ||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.", | ||
acceptAllBtn: "Accept all", | ||
acceptNecessaryBtn: "Reject all", | ||
showPreferencesBtn: "Manage preferences", | ||
footer: "<a href=\"#link\">Privacy Policy</a>\n<a href=\"#link\">Terms and conditions</a>" | ||
}, | ||
preferencesModal: { | ||
title: "Consent Preferences Center", | ||
acceptAllBtn: "Accept all", | ||
acceptNecessaryBtn: "Reject all", | ||
savePreferencesBtn: "Save preferences", | ||
closeIconLabel: "Close modal", | ||
serviceCounterLabel: "Service|Services", | ||
sections: [ | ||
{ | ||
title: "Cookie Usage", | ||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." | ||
}, | ||
{ | ||
title: "Strictly Necessary Cookies <span class=\"pm__badge\">Always Enabled</span>", | ||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", | ||
linkedCategory: "necessary" | ||
}, | ||
{ | ||
title: "Analytics Cookies", | ||
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", | ||
linkedCategory: "analytics" | ||
}, | ||
{ | ||
title: "More information", | ||
description: "For any query in relation to my policy on cookies and your choices, please <a class=\"cc__link\" href=\"#yourdomain.com\">contact me</a>." | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}); |
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