More informations about installed cookies

This commit is contained in:
1002Studio 2015-01-10 15:46:22 +01:00
parent 6f3cd58f7d
commit f8e806cd2c
4 changed files with 24 additions and 14 deletions

View File

@ -57,7 +57,7 @@
#tarteaucitron a {
color: rgb(66, 66, 66);
font-size: 12px;
font-size: 11px;
font-style: italic;
text-decoration: none;
}
@ -235,17 +235,17 @@
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitronListCookies {
color: #333;
font-size: 11px;
font-size: 12px;
}
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitronListCookies b {
color: darkgreen;
font-size: 11px;
font-size: 12px;
}
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitronListCookies s {
color: gray;
font-size: 11px;
font-size: 12px;
}
#tarteaucitron #tarteaucitronFooter {

View File

@ -13,6 +13,9 @@ tarteaucitron.lang = {
"disclaimer": "By allowing these third party services, you accept theirs cookies and the use of tracking technologies necessary for their proper functioning.",
"allow": "Allow",
"deny": "Deny",
"noCookie": "This service does not use cookie to work.",
"useCookie": "This service can install",
"useCookieCurrent": "on this browser",
"more": "Read more",
"source": "View the official website",
"credit": "Cookies manager by tarteaucitron.js",

View File

@ -13,6 +13,9 @@ tarteaucitron.lang = {
"disclaimer": "En autorisant ces services tiers, vous acceptez le dépôt et la lecture de cookies et l'utilisation de technologies de suivi nécessaires à leur bon fonctionnement.",
"allow": "Autoriser",
"deny": "Interdire",
"noCookie": "Ce service ne dépose aucun cookie pour fonctionner.",
"useCookie": "Ce service peut déposer",
"useCookieCurrent": "sur ce navigateur",
"more": "En savoir plus",
"source": "Voir le site officiel",
"credit": "Gestion des cookies par tarteaucitron.js",

View File

@ -461,27 +461,31 @@ var tarteaucitron = {
"use strict";
var arr = tarteaucitron.services[key].cookies,
nb = arr.length,
html = nb + ' cookie',
nbCurrent = 0,
html = '',
htmlPlus = '',
i;
if (nb > 1) {
html += 's';
}
if (nb > 0) {
html += ' [';
html += tarteaucitron.lang.useCookie + ' ' + nb + ' cookie';
if (nb > 1) {
html += 's';
}
for (i = 0; i < nb; i += 1) {
if (document.cookie.indexOf(arr[i] + '=') !== -1) {
html += '<b>' + arr[i] + '</b> ';
htmlPlus += '<b>' + arr[i] + '</b> ';
nbCurrent += 1;
} else {
html += '<s>' + arr[i] + '</s> ';
htmlPlus += '<s>' + arr[i] + '</s> ';
}
}
html += ']';
html += ' (' + nbCurrent + ' ' + tarteaucitron.lang.useCookieCurrent + ')<br/>' + htmlPlus;
} else {
html += tarteaucitron.lang.noCookie;
}
document.getElementById('tacCL' + key).innerHTML = html;
}
},