Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
eda2c0d9
Verified
Commit
eda2c0d9
authored
Apr 16, 2020
by
Laurent Heirendt
✈
Browse files
changes in js
parent
20017871
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/gdpr.js
View file @
eda2c0d9
...
...
@@ -97,16 +97,16 @@ $( document ).ready(function() {
var
cookieArray
=
decodeURIComponent
(
document
.
cookie
).
split
(
'
;
'
);
cookieArray
.
forEach
(
cookie
=>
{
if
(
cookie
.
indexOf
(
name
)
==
0
)
{
lapCookieAgree
=
cookie
.
substring
(
name
.
length
,
cookie
.
length
);
lapCookieAgree
=
parseInt
(
cookie
.
substring
(
name
.
length
,
cookie
.
length
)
)
;
}
});
// logic
if
(
lapCookieAgree
==
'
0
'
)
{
if
(
lapCookieAgree
==
0
)
{
/* visitor refused cookies => remove Matomo trace if present */
jQuery
(
'
.lap-cookies-refuse
'
).
addClass
(
'
disabled
'
);
clearCookies
();
}
else
if
(
lapCookieAgree
==
'
1
'
)
{
}
else
if
(
lapCookieAgree
==
1
)
{
/* visitor accepted cookies => load Matomo */
jQuery
(
'
.lap-cookies-accept
'
).
addClass
(
'
disabled
'
);
loadMatomo
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment