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
457b1141
Verified
Commit
457b1141
authored
Apr 15, 2020
by
Laurent Heirendt
✈
Browse files
minor bugs
parent
fdf4d3ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
_includes/policy.html
View file @
457b1141
<p>
<a
href=
"privacyPolicy"
>
Privacy Policy
</a>
(
<span
id=
"gdpr-result-text"
></span>
<a
href=
"javascript: showCookieBanner();"
>
change
</a>
)
(
<span
id=
"gdpr-result-text"
></span>
-
<a
href=
"javascript: showCookieBanner();"
>
change
</a>
)
</p>
assets/js/gdpr.js
View file @
457b1141
/* Matomo global variable
note: most code has been inspired from:
https://edps.europa.eu/sites/edp/modules/features/edpsweb_cookies/js/cookies-popup.js
*/
var
_paq
=
window
.
_paq
||
_paq
||
[];
/*
getCookie: retrieve a cookie that has been set.
inspired from https://www.w3schools.com/js/js_cookies.asp
*/
...
...
@@ -24,7 +28,6 @@ function getCookie(cname) {
/* loadMatomo: load the tracking code of the matomo instance */
function
loadMatomo
()
{
if
(
settings
.
siteID
>
0
)
{
var
_paq
=
window
.
_paq
||
_paq
||
[];
var
u
=
settings
.
matomoURL
;
_paq
.
push
([
'
setSiteId
'
,
settings
.
siteID
]);
_paq
.
push
([
'
setTrackerUrl
'
,
u
+
'
matomo.php
'
]);
...
...
@@ -86,10 +89,7 @@ $( document ).ready(function() {
jQuery
(
this
).
blur
();
// if the lap_cookie_agree is already set to one, do not load matomo again
lapCookieAgree
=
getCookie
(
'
lap_cookie_agree
'
);
if
(
lapCookieAgree
!=
'
1
'
){
loadMatomo
();
}
loadMatomo
();
setResultText
(
true
);
});
...
...
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