Knotx / Knotx/knotx-website

Add opt-out of cookies/gdpr

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
HTML
Stars
2
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Add to the last item before the `` tag:

However, the colors of text,border & background need to be tweaked to knotx colors

```html

+
+
+window.addEventListener("load", function(){
+window.cookieconsent.initialise({
+ "palette": {
+ "popup": {
+ "background": "#64386b",
+ "text": "#ffcdfd"
+ },
+ "button": {
+ "background": "transparent",
+ "text": "#f8a8ff",
+ "border": "#f8a8ff"
+ }
+ },
+ "content": {
+ "message": "This website uses anonymous cookies to ensure we provide you the best experience. ",
+ "link": "Opt out!",
+ "href": "https://tools.google.com/dlpage/gaoptout/"
+ }
+})});
+
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the website template or page entry point whose final content appears before the closing tag. Add the cookieconsent stylesheet, script, and initialization shown in the issue, then adjust the popup and button colors to Knot.x colors and verify the generated site displays the opt-out prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.