@@ -18,7 +18,7 @@ You just have to install the code. When the user clicks on accept cookies, the g
18
18
## How to use
19
19
Add this code to your html ` <head> ` or ` <body> ` tag.
20
20
``` html
21
- <
script src =
" https://cdn.jsdelivr.net/gh/manucaralmo/[email protected] .1 /src/glowCookies.min.js" ></
script >
21
+ <
script src =
" https://cdn.jsdelivr.net/gh/manucaralmo/[email protected] .2 /src/glowCookies.min.js" ></
script >
22
22
<script >
23
23
glowCookies .start (' en' , {
24
24
style: 1 ,
@@ -43,55 +43,56 @@ Now you can choose between these available languages:
43
43
- French (` fr ` )
44
44
- Thai (` th ` )
45
45
- Slovak (` sk ` )
46
+ - Brazilian portugese (` pt_BR ` )
46
47
47
48
Set language in the first parameter of ` glowCookies.start('en', { }) ` method.
48
49
49
50
## Tracking options
50
51
These are the parameters that you can modify to add your tracking codes or custom scripts.
51
52
52
- | Parameter | Type | Values |
53
- | ------------- | ------------- | ------------- |
54
- | ` analytics ` | String | Example: ` "G-FH87DE17XF" ` (Analytics tracking code) |
55
- | ` facebookPixel ` | String | Example: ` "990955817632355" ` (Facebook Pixel code) |
56
- | ` HotjarTrackingCode ` | String | Example: ` "990955817632355" ` (Hotjar tracking code) |
57
- | ` customScript ` (Inline) | Object | Example: ` [{ type: 'custom', position: 'body', content: 'console.log('custom script');' }] ` |
58
- | ` customScript ` (src) | Object | Example: ` [{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }] ` |
53
+ | Parameter | Type | Values |
54
+ | ----------------------- | ------ | ------------------------------------------------------------------------------------------------------ ------------- |
55
+ | ` analytics ` | String | Example: ` "G-FH87DE17XF" ` (Analytics tracking code) |
56
+ | ` facebookPixel ` | String | Example: ` "990955817632355" ` (Facebook Pixel code) |
57
+ | ` HotjarTrackingCode ` | String | Example: ` "990955817632355" ` (Hotjar tracking code) |
58
+ | ` customScript ` (Inline) | Object | Example: ` [{ type: 'custom', position: 'body', content: 'console.log('custom script');' }] ` |
59
+ | ` customScript ` (src) | Object | Example: ` [{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }] ` |
59
60
60
61
## Config Banner
61
62
These are the parameters that you can modify to change certain banner options
62
63
63
- | Parameter | Type | Values |
64
- | ------------- | ------------- | ------------- |
65
- | ` policyLink ` | String | Example: ` "https://yourlink.com" ` (Your cookies policy link) |
66
- | ` hideAfterClick ` | Boolean | (` true ` or ` false ` ) Default: ` true ` (Hide banner after Accept or Reject cookies) |
64
+ | Parameter | Type | Values |
65
+ | ---------------- | ------- | ------------------------------------------------------------------- ------------- |
66
+ | ` policyLink ` | String | Example: ` "https://yourlink.com" ` (Your cookies policy link) |
67
+ | ` hideAfterClick ` | Boolean | (` true ` or ` false ` ) Default: ` true ` (Hide banner after Accept or Reject cookies) |
67
68
68
69
69
70
## Customize Banner
70
71
Now there are certain parameters that you can change to customize your banner.
71
72
72
- | Parameter | Type | Values |
73
- | ------------- | ------------- | ------------- |
74
- | ` border ` | String | (` "border" ` or ` "none" ` ) Default: ` "border" ` |
75
- | ` position ` | String | (` "left" ` or ` "right" ` ) Default: ` "left" ` |
76
- | ` bannerDescription ` | String | Example: ` "We use our own and third-party cookies to personalize content and to analyze web traffic." ` |
77
- | ` bannerLinkText ` | String | Example: ` "Read more about cookies" ` |
78
- | ` bannerBackground ` | String | Example: ` "#FAFAFA" ` Example: ` "lightblue" ` |
79
- | ` bannerColor ` | String | Example: ` "#000" ` Example: ` "blue" ` |
80
- | ` bannerHeading ` | String | Example: ` "Use of cookies" ` Default: None |
81
- | ` acceptBtnText ` | String | Example: ` "Accept cookies" ` |
82
- | ` acceptBtnColor ` | String | Example: ` "#000" ` Example: ` "blue" ` |
83
- | ` acceptBtnBackground ` | String | Example: ` "#fff" ` Example: ` "white" ` |
84
- | ` rejectBtnText ` | String | Example: ` "Reject" ` |
85
- | ` rejectBtnBackground ` | String | Example: ` "#000" ` Example: ` "blue" ` |
86
- | ` rejectBtnColor ` | String | Example: ` "#fff" ` Example: ` "white" ` |
87
- | ` manageColor ` | String | Example: ` "#fff" ` Example: ` "white" ` |
88
- | ` manageBackground ` | String | Example: ` "#f2f2f2" ` Example: ` "blue" ` |
89
- | ` manageText ` | String | Example: ` "Manage cookies" ` |
73
+ | Parameter | Type | Values |
74
+ | --------------------- | ------ | ----------------------------------------------------------------------------------------- ------------- |
75
+ | ` border ` | String | (` "border" ` or ` "none" ` ) Default: ` "border" ` |
76
+ | ` position ` | String | (` "left" ` or ` "right" ` ) Default: ` "left" ` |
77
+ | ` bannerDescription ` | String | Example: ` "We use our own and third-party cookies to personalize content and to analyze web traffic." ` |
78
+ | ` bannerLinkText ` | String | Example: ` "Read more about cookies" ` |
79
+ | ` bannerBackground ` | String | Example: ` "#FAFAFA" ` Example: ` "lightblue" ` |
80
+ | ` bannerColor ` | String | Example: ` "#000" ` Example: ` "blue" ` |
81
+ | ` bannerHeading ` | String | Example: ` "Use of cookies" ` Default: None |
82
+ | ` acceptBtnText ` | String | Example: ` "Accept cookies" ` |
83
+ | ` acceptBtnColor ` | String | Example: ` "#000" ` Example: ` "blue" ` |
84
+ | ` acceptBtnBackground ` | String | Example: ` "#fff" ` Example: ` "white" ` |
85
+ | ` rejectBtnText ` | String | Example: ` "Reject" ` |
86
+ | ` rejectBtnBackground ` | String | Example: ` "#000" ` Example: ` "blue" ` |
87
+ | ` rejectBtnColor ` | String | Example: ` "#fff" ` Example: ` "white" ` |
88
+ | ` manageColor ` | String | Example: ` "#fff" ` Example: ` "white" ` |
89
+ | ` manageBackground ` | String | Example: ` "#f2f2f2" ` Example: ` "blue" ` |
90
+ | ` manageText ` | String | Example: ` "Manage cookies" ` |
90
91
91
92
92
93
## Fully customized banner
93
94
``` html
94
- <
script src =
" https://cdn.jsdelivr.net/gh/manucaralmo/[email protected] .1 /src/glowCookies.min.js" ></
script >
95
+ <
script src =
" https://cdn.jsdelivr.net/gh/manucaralmo/[email protected] .2 /src/glowCookies.min.js" ></
script >
95
96
<script >
96
97
glowCookies .start (' en' , {
97
98
style: 2 ,
0 commit comments