Browse Source

Maj de la lib tarteaucitron 20210509

pull/19/head
pierretux 11 months ago
parent
commit
7d12b2d291
  1. 8
      lib/tarteaucitron/css/tarteaucitron.css
  2. 1
      lib/tarteaucitron/lang/tarteaucitron.bg.js
  3. 1
      lib/tarteaucitron/lang/tarteaucitron.ca.js
  4. 1
      lib/tarteaucitron/lang/tarteaucitron.cn.js
  5. 15
      lib/tarteaucitron/lang/tarteaucitron.cs.js
  6. 3
      lib/tarteaucitron/lang/tarteaucitron.da.js
  7. 1
      lib/tarteaucitron/lang/tarteaucitron.de.js
  8. 1
      lib/tarteaucitron/lang/tarteaucitron.el.js
  9. 1
      lib/tarteaucitron/lang/tarteaucitron.en.js
  10. 1
      lib/tarteaucitron/lang/tarteaucitron.es.js
  11. 1
      lib/tarteaucitron/lang/tarteaucitron.fi.js
  12. 1
      lib/tarteaucitron/lang/tarteaucitron.fr.js
  13. 1
      lib/tarteaucitron/lang/tarteaucitron.hu.js
  14. 7
      lib/tarteaucitron/lang/tarteaucitron.it.js
  15. 3
      lib/tarteaucitron/lang/tarteaucitron.ja.js
  16. 85
      lib/tarteaucitron/lang/tarteaucitron.lt.js
  17. 1
      lib/tarteaucitron/lang/tarteaucitron.lv.js
  18. 1
      lib/tarteaucitron/lang/tarteaucitron.nl.js
  19. 5
      lib/tarteaucitron/lang/tarteaucitron.oc.js
  20. 1
      lib/tarteaucitron/lang/tarteaucitron.pl.js
  21. 3
      lib/tarteaucitron/lang/tarteaucitron.pt.js
  22. 1
      lib/tarteaucitron/lang/tarteaucitron.ro.js
  23. 7
      lib/tarteaucitron/lang/tarteaucitron.ru.js
  24. 1
      lib/tarteaucitron/lang/tarteaucitron.se.js
  25. 1
      lib/tarteaucitron/lang/tarteaucitron.sk.js
  26. 1
      lib/tarteaucitron/lang/tarteaucitron.sv.js
  27. 1
      lib/tarteaucitron/lang/tarteaucitron.tr.js
  28. 1
      lib/tarteaucitron/lang/tarteaucitron.vi.js
  29. 1
      lib/tarteaucitron/lang/tarteaucitron.zh.js
  30. 194
      lib/tarteaucitron/tarteaucitron.js
  31. 1415
      lib/tarteaucitron/tarteaucitron.services.js

8
lib/tarteaucitron/css/tarteaucitron.css

@ -13,6 +13,14 @@ span.tarteaucitronReadmoreSeparator {
}
/******/
/** 09052021 **/
.tarteaucitronName .tacCurrentStatus, .tarteaucitronName .tarteaucitronReadmoreSeparator {
color: #333!important;
font-size: 12px!important;
text-transform: capitalize;
}
/**************/
/** 27032021 **/
button.tarteaucitron-toggle-group {
display: block;

1
lib/tarteaucitron/lang/tarteaucitron.bg.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Управление на бисквитките",
"cookieDetail": "Информация за",
"ourSite": "в нашият сайт",
"modalWindow": "(модален прозорец)",
"newWindow": "(нов прозорец)",
"allowAll": "Разреши всички",
"denyAll": "Забрани всички",

1
lib/tarteaucitron/lang/tarteaucitron.ca.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Panell de gestió de galetes",
"cookieDetail": "Detalls de les galetes per a",
"ourSite": "en la nostra web",
"modalWindow": "(finestra modale)",
"newWindow": "(finestra nova)",
"allowAll": "Permet totes les galetes",
"denyAll": "Denega totes les galetes",

1
lib/tarteaucitron/lang/tarteaucitron.cn.js

@ -33,6 +33,7 @@ tarteaucitron.lang = {
"title": "Cookie管理面板",
"cookieDetail": "Cookie详情",
"ourSite": "显示在我们的网站上",
"modalWindow": "(模态窗口)",
"newWindow": "(新建窗口)",
"allowAll": "允许",
"denyAll": "禁用",

15
lib/tarteaucitron/lang/tarteaucitron.cs.js

@ -31,13 +31,14 @@ tarteaucitron.lang = {
"source": "Zobrazit oficiální stránku",
"credit": "Správce cookies od tarteaucitron.js",
"toggleInfoBox": "Show/hide informations about cookie storage",
"title": "Cookies management panel",
"cookieDetail": "Cookie detail for",
"ourSite": "on our site",
"newWindow": "(new window)",
"allowAll": "Allow all cookies",
"denyAll": "Deny all cookies",
"toggleInfoBox": "Zobrazit/skrýt informace o ukládání souborů cookie",
"title": "Panel pro správu cookies",
"cookieDetail": "Podrobnosti o souboru cookie pro",
"ourSite": "na našem webu",
"modalWindow": "(modální okno)",
"newWindow": "(nové okno)",
"allowAll": "Povolit všechny soubory cookie",
"denyAll": "Odmítnout všechny cookies",
"icon": "Cookies",

3
lib/tarteaucitron/lang/tarteaucitron.da.js

@ -35,7 +35,8 @@ tarteaucitron.lang = {
"toggleInfoBox": "Vis / skjul informationer om opbevaring af cookies",
"title": "CCookie-styringspanel",
"cookieDetail": "Cookie detaljer for",
"ourSite": "på vores side",
"ourSite": "på vores site",
"modalWindow": "(modal vindue)",
"newWindow": "(nyt vindue)",
"allowAll": "Tillad alle cookies",
"denyAll": "Afvis alle cookies",

1
lib/tarteaucitron/lang/tarteaucitron.de.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Cookie-Einstellungen",
"cookieDetail": "Cookie Details für",
"ourSite": "auf unserer Seite",
"modalWindow": "(modales Fenster)",
"newWindow": "(neues Fenster)",
"allowAll": "Erlaube alle Cookies",
"denyAll": "Verbiete alle Cookies",

1
lib/tarteaucitron/lang/tarteaucitron.el.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Πίνακας διαχείρισης "Μπισκότων" (Cookies)",
"cookieDetail": "Λεπτομέρειες "μπισκότων" (cookies) για",
"ourSite": "στον ιστότοπο μας",
"modalWindow": "(modal παράθυρο)",
"newWindow": "(νέο παράθυρο)",
"allowAll": "Επέτρεψε όλα τα "μπισκότα" (cookies)",
"denyAll": "Απόρριψε όλα τα "μπισκότα" (cookies)",

1
lib/tarteaucitron/lang/tarteaucitron.en.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Cookies management panel",
"cookieDetail": "Cookie detail for",
"ourSite": "on our site",
"modalWindow": "(modal window)",
"newWindow": "(new window)",
"allowAll": "Allow all cookies",
"denyAll": "Deny all cookies",

1
lib/tarteaucitron/lang/tarteaucitron.es.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Panel de gestión de cookies",
"cookieDetail": "Detalles de las cookies para",
"ourSite": "en nuestra web",
"modalWindow": "(ventana modal)",
"newWindow": "(ventana nueva)",
"allowAll": "Permitir todas las cookies",
"denyAll": "Denegar todas las cookies",

1
lib/tarteaucitron/lang/tarteaucitron.fi.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Evästeiden hallintapaneeli",
"cookieDetail": "Evästetiedot",
"ourSite": "sivustollamme",
"modalWindow": "(modaalinen ikkuna)",
"newWindow": "uusi ikkuna",
"allowAll": "Hyväksy kaikki evästeet",
"denyAll": "Kiellä kaikki evästeet",

1
lib/tarteaucitron/lang/tarteaucitron.fr.js

@ -37,6 +37,7 @@ tarteaucitron.lang = {
"title": "Panneau de gestion des cookies",
"cookieDetail": "Détail des cookies",
"ourSite": "sur notre site",
"modalWindow": "(fenêtre modale)",
"newWindow": "(nouvelle fenêtre)",
"allowAll": "Tout accepter",
"denyAll": "Tout refuser",

1
lib/tarteaucitron/lang/tarteaucitron.hu.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Süti preferenciák",
"cookieDetail": "Süti adatok a következőhöz:",
"ourSite": "weboldalunkon",
"modalWindow": "(modális ablak)",
"newWindow": "(új ablak)",
"allowAll": "Elfogadom az öszeset",
"denyAll": "Elutasítom",

7
lib/tarteaucitron/lang/tarteaucitron.it.js

@ -35,9 +35,10 @@ tarteaucitron.lang = {
"title": "Cookies management panel",
"cookieDetail": "Cookie detail for",
"ourSite": "on our site",
"newWindow": "(new window)",
"allowAll": "Allow all cookies",
"denyAll": "Deny all cookies",
"modalWindow": "(finestra modale)",
"newWindow": "(nuova finestra)",
"allowAll": "Consenti tutti i cookie",
"denyAll": "Rifiuta tutti i cookie",
"icon": "Cookies",

3
lib/tarteaucitron/lang/tarteaucitron.ja.js

@ -36,7 +36,8 @@ tarteaucitron.lang = {
"title": "クッキー利用の管理について",
"cookieDetail": "Cookie detail for",
"ourSite": "on our site",
"newWindow": "(new window)",
"modalWindow": "(モーダルウィンドウ)",
"newWindow": "(新しい窓)",
"allowAll": "すべてのクッキーを許可する",
"denyAll": "すべてのクッキーを拒否する",

85
lib/tarteaucitron/lang/tarteaucitron.lt.js

@ -0,0 +1,85 @@
/*global tarteaucitron */
tarteaucitron.lang = {
"middleBarHead": "☝ 🍪",
"adblock": "Sveiki! Ši svetainė veikia skaidriai ir leidžia pasirinkti trečiosios šalies paslaugas, kurias norite leisti.",
"adblock_call": "Norėdami pradėti taikyti, išjunkite ,Adblocker",
"reload": "Atnaujinkite puslapį",
"alertBigScroll": "Tęsiant slankiojimą",
"alertBigClick": "Jei ir toliau naršote šioje svetainėje,",
"alertBig": "leidžiate naudotis visomis trečiųjų šalių paslaugomis",
"alertBigPrivacy": "Ši svetainė naudoja slapukus ir suteikia jums galimybę valdyti, ką norite suaktyvinti",
"alertSmall": "Tvarkykite paslaugas",
"personalize": "Suasmeninkite",
"acceptAll": "Gerai, priimu visus",
"close": "Uždaryti",
"privacyUrl": "Privatumo politika",
"all": "Pirmenybė visoms paslaugoms",
"info": "Jūsų privatumo apsauga",
"disclaimer": "Leisdami šias trečiųjų šalių paslaugas, jūs sutinkate su jų slapukais ir sekimo technologijų naudojimu, reikalingu jų tinkamam veikimui.",
"allow": "Leisti",
"deny": "Atsisakyti",
"noCookie": "Ši paslauga nenaudoja slapukų.",
"useCookie": "Ši paslauga gali būti įdiegta",
"useCookieCurrent": "Ši paslauga įdiegta",
"useNoCookie": "Ši paslauga neįdiegė jokių slapukų.",
"more": "Skaityti daugiau",
"source": "Peržiūrėkite oficialią svetainę",
"credit": "Slapukų tvarkyklė, kurią pateikė tarteaucitron.js",
"noServices": "Šioje svetainėje nenaudojami jokie slapukai, kuriems reikalingas jūsų sutikimas.",
"toggleInfoBox": "Rodyti / slėpti informaciją apie slapukų saugojimą",
"title": "Slapukų valdymo skydelis",
"cookieDetail": "Išsami slapuko informacija",
"ourSite": "mūsų svetainėje",
"modalWindow": "(modalinis langas)",
"newWindow": "(naujas langas)",
"allowAll": "Leisti visus slapukus",
"denyAll": "Atsisakyti visų slapukų",
"icon": "Cookies",
"fallback": "yra išjungtas.",
"allowed": "leidžiama",
"disallowed": "neleidžiama",
"ads": {
"title": "Reklamos tinklas",
"details": "Reklamos tinklai gali gauti pajamų, parduodami reklamos vietą svetainėje."
},
"analytic": {
"title": "Auditorijos matavimas",
"details": "Naudotos auditorijos vertinimo paslaugos generuoti naudingą statistinį lankomumą svetainės veiklos patobulinimui."
},
"social": {
"title": "Socialiniai tinklai",
"details": "Socialiniai tinklai gali pagerinti svetainės naudojimą ir padėti ją reklamuoti per akcijas."
},
"video": {
"title": "Vaizdo įrašai",
"details": "Vaizdo įrašų bendrinimo paslaugos padeda pritraukti gausesnę media į svetainę ir padidinti jos matomumą."
},
"comment": {
"title": "Komentarai",
"details": "Komentarų valdytojai palengvina komentarų sisteminimą ir kovoja su šlamštu."
},
"support": {
"title": "Pagalba",
"details": "Pagalbos paslaugos leidžia jums susisiekti su svetainės komanda ir padėti ją tobulinti."
},
"api": {
"title": "APIs (Aplikacijų programavimo sąsajos)",
"details": "API naudojamos tekstams įkelti: geografinė padėtis, paieškos sistemos, vertimai, ..."
},
"other": {
"title": "Kita",
"details": "Paslaugos, rodančios svetainės turinį."
},
"mandatoryTitle": "Privalomi slapukai",
"mandatoryText": "Ši svetainė naudoja slapukus, reikalingus tinkamam jos veikimui, kurių negalima išjungti."
};

1
lib/tarteaucitron/lang/tarteaucitron.lv.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Süti preferenciák",
"cookieDetail": "Süti adatok a következőhöz:",
"ourSite": "weboldalunkon",
"modalWindow": "(modal window)",
"newWindow": "(új ablak)",
"allowAll": "Elfogadom az öszeset",
"denyAll": "Elutasítom",

1
lib/tarteaucitron/lang/tarteaucitron.nl.js

@ -39,6 +39,7 @@ tarteaucitron.lang = {
"title": "Cookies beheer paneel",
"cookieDetail": "Cookie detail voor",
"ourSite": "op onze site",
"modalWindow": "(modaal venster)",
"newWindow": "(nieuw venster)",
"allowAll": "Sta alle cookies toe",
"denyAll": "Weiger alle cookies",

5
lib/tarteaucitron/lang/tarteaucitron.oc.js

@ -37,6 +37,7 @@ tarteaucitron.lang = {
"title": "Panèl de gestion dels cookies",
"cookieDetail": "Detalh dels cookies",
"ourSite": "sus nòstre site",
"modalWindow": "(modale fenèstra)",
"newWindow": "(novèla fenèstra)",
"allowAll": "Autorizar totes los cookies",
"denyAll": "Interdire totes los cookies",
@ -44,8 +45,8 @@ tarteaucitron.lang = {
"icon": "Cookies",
"fallback": "es desactivat.",
"allowed": "allowed",
"disallowed": "disallowed",
"allowed": "autorizat",
"disallowed": "interdit",
"ads": {
"title": "Regias publicitàrias",

1
lib/tarteaucitron/lang/tarteaucitron.pl.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Panel zarządzania plikami cookies",
"cookieDetail": "Szczegóły plików cookie dla",
"ourSite": "na naszej stronie",
"modalWindow": "(okno modalne)",
"newWindow": "(nowe okno)",
"allowAll": "Zezwól na wszystkie pliki cookies",
"denyAll": "Zablokuj wszystkie pliki cookies",

3
lib/tarteaucitron/lang/tarteaucitron.pt.js

@ -34,7 +34,8 @@ tarteaucitron.lang = {
"title": "Painel de Gerenciamento de Cookies",
"cookieDetail": "Detalhe do Cookie",
"ourSite": "em nosso site",
"newWindow": "(nova janela)",
"modalWindow": "(janela modal)",
"newWindow": "(janela nova)",
"allowAll": "Permite todos os cookies",
"denyAll": "Proibe todos cookies",

1
lib/tarteaucitron/lang/tarteaucitron.ro.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Panoul de gestionare a panourilor cookie",
"cookieDetail": "Detaliile cookie pentru",
"ourSite": "pe site-ul nostru",
"modalWindow": "(fereastra modală)",
"newWindow": "(fereastră nouă)",
"allowAll": "Permiteți toate cookie-urile",
"denyAll": "Respinge toate cookie-urile",

7
lib/tarteaucitron/lang/tarteaucitron.ru.js

@ -33,9 +33,10 @@ tarteaucitron.lang = {
"toggleInfoBox": "Show/hide informations about cookie storage",
"title": "Панель управления cookies",
"cookieDetail": "Cookie detail for",
"ourSite": "on our site",
"newWindow": "(new window)",
"cookieDetail": "Информация о файлах cookie для",
"ourSite": "на нашем сайте",
"modalWindow": "(модальное окно)",
"newWindow": "(новое окно)",
"allowAll": "Разрешить использование cookies",
"denyAll": "Запретить использование cookies",

1
lib/tarteaucitron/lang/tarteaucitron.se.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Cookie- hanteringspanel",
"cookieDetail": "cookie- detalj för",
"ourSite": "på vår webbplats",
"modalWindow": "(modalt fönster)",
"newWindow": "(nytt fönster)",
"allowAll": "Tillåt alla cookie",
"denyAll": "Neka alla cookies",

1
lib/tarteaucitron/lang/tarteaucitron.sk.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Panel riadenia súborov cookie",
"cookieDetail": "Podrobnosti súboru cookie pre",
"ourSite": "na našich stránkach",
"modalWindow": "(modálne okno)",
"newWindow": "(nové okno)",
"allowAll": "Povoľte všetky súbory cookie",
"denyAll": "Odmietnuť všetky súbory cookie",

1
lib/tarteaucitron/lang/tarteaucitron.sv.js

@ -35,6 +35,7 @@ tarteaucitron.lang = {
"title": "Cookie- hanteringspanel",
"cookieDetail": "cookie- detalj för",
"ourSite": "på vår webbplats",
"modalWindow": "(modalt fönster)",
"newWindow": "(nytt fönster)",
"allowAll": "Tillåt alla cookie",
"denyAll": "Neka alla cookies",

1
lib/tarteaucitron/lang/tarteaucitron.tr.js

@ -37,6 +37,7 @@ tarteaucitron.lang = {
"title": "Çerez yönetimi paneli",
"cookieDetail": "Ayrıntı çerezleri",
"ourSite": "sitemizde",
"modalWindow": "(kalıcı pencere)",
"newWindow": "(yeni pencere)",
"allowAll": "Tüm çerezlere izin verin",
"denyAll": "Tüm çerezleri yasaklayın",

1
lib/tarteaucitron/lang/tarteaucitron.vi.js

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Bảng quản lý cookie",
"cookieDetail": "Cookie chi tiết",
"ourSite": "trên site của chúng ta",
"modalWindow": "(cửa sổ phương thức)",
"newWindow": "(Cửa sổ mới)",
"allowAll": "Cho phép tất cả các Cookies",
"denyAll": "Từ chối cất cả cookies",

1
lib/tarteaucitron/lang/tarteaucitron.zh.js

@ -33,6 +33,7 @@ tarteaucitron.lang = {
"title": "Cookie管理面板",
"cookieDetail": "Cookie详情",
"ourSite": "显示在我们的网站上",
"modalWindow": "(模态窗口)",
"newWindow": "(新建窗口)",
"allowAll": "允许",
"denyAll": "禁用",

194
lib/tarteaucitron/tarteaucitron.js

@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'),
var tarteaucitron = {
"version": 20210422,
"version": 20210509,
"cdn": cdn,
"user": {},
"lang": {},
@ -250,6 +250,7 @@ var tarteaucitron = {
tarteaucitron.hashtag = tarteaucitron.parameters.hashtag;
tarteaucitron.highPrivacy = tarteaucitron.parameters.highPrivacy;
tarteaucitron.handleBrowserDNTRequest = tarteaucitron.parameters.handleBrowserDNTRequest;
tarteaucitron.customCloserId = tarteaucitron.parameters.customCloserId;
// Step 1: load css
if ( !tarteaucitron.parameters.useExternalCss ) {
@ -293,7 +294,7 @@ var tarteaucitron = {
}
document.getElementsByTagName('head')[0].appendChild(customThemePopup);
}
var body = document.body,
div = document.createElement('div'),
html = '',
@ -310,9 +311,17 @@ var tarteaucitron = {
// Step 3: prepare the html
html += '<div id="tarteaucitronPremium"></div>';
html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '"></button>';
html += '<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">';
html += ' <button type="button" id="tarteaucitronClosePanel">';
if (tarteaucitron.reloadThePage) {
html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')"></button>';
} else {
html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '"></button>';
}
html += '<div id="tarteaucitron" role="dialog" aria-modal="true" aria-describedby="tarteaucitronInfo" aria-labelledby="dialogTitle" tabindex="-1">';
if (tarteaucitron.reloadThePage) {
html += ' <button type="button" id="tarteaucitronClosePanel" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
} else {
html += ' <button type="button" id="tarteaucitronClosePanel">';
}
html += ' ' + tarteaucitron.lang.close;
html += ' </button>';
html += ' <div id="tarteaucitronServices">';
@ -322,7 +331,7 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.disclaimer;
if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <br/><br/>';
html += ' <button type="button" id="tarteaucitronPrivacyUrlDialog">';
html += ' <button type="button" id="tarteaucitronPrivacyUrlDialog" role="link">';
html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>';
}
@ -397,12 +406,12 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.alertBigPrivacy;
html += ' </span>';
//html += ' <span class="tarteaucitronAlertBigBtnWrapper">';
html += ' <button type="button" id="tarteaucitronPersonalize">';
html += ' <button type="button" id="tarteaucitronPersonalize" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
html += ' ' + tarteaucitron.lang.personalize;
html += ' </button>';
if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <button type="button" id="tarteaucitronPrivacyUrl">';
html += ' <button role="link" type="button" id="tarteaucitronPrivacyUrl">';
html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>';
}
@ -429,18 +438,22 @@ var tarteaucitron = {
if (tarteaucitron.parameters.DenyAllCta) {
if (tarteaucitron.reloadThePage) {
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2" aria-label="' + tarteaucitron.lang.denyAll + ' (' + tarteaucitron.lang.reload + ')">';
} else {
html += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
}
html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
html += ' </button>';
//html += ' <br/><br/>';
}
html += ' <button type="button" id="tarteaucitronCloseAlert">';
html += ' <button type="button" id="tarteaucitronCloseAlert" aria-label="' + tarteaucitron.lang.personalize + ' ' + tarteaucitron.lang.modalWindow + '">';
html += ' ' + tarteaucitron.lang.personalize;
html += ' </button>';
if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <button type="button" id="tarteaucitronPrivacyUrl">';
html += ' <button type="button" id="tarteaucitronPrivacyUrl" role="link">';
html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>';
}
@ -454,14 +467,14 @@ var tarteaucitron = {
if (tarteaucitron.parameters.showIcon === true) {
html += '<div id="tarteaucitronIcon" class="tarteaucitronIcon' + tarteaucitron.parameters.iconPosition + '">';
html += ' <button type="button" id="tarteaucitronManager">';
html += ' <img src="' + (tarteaucitron.parameters.iconSrc ? tarteaucitron.parameters.iconSrc : 'data:image/png;base64,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') + '" alt="' + tarteaucitron.lang.icon + '" title="' + tarteaucitron.lang.icon + '">';
html += ' <img src="' + (tarteaucitron.parameters.iconSrc ? tarteaucitron.parameters.iconSrc : 'data:image/png;base64,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') + '" alt="' + tarteaucitron.lang.icon + ' ' + tarteaucitron.lang.modalWindow + '" title="' + tarteaucitron.lang.icon + ' ' + tarteaucitron.lang.modalWindow + '">';
html += ' </button>';
html += '</div>';
}
if (tarteaucitron.parameters.showAlertSmall === true) {
html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
html += ' <button type="button" id="tarteaucitronManager">';
html += ' <button type="button" id="tarteaucitronManager" aria-label="' + tarteaucitron.lang.alertSmall + ' ' + tarteaucitron.lang.modalWindow + '">';
html += ' ' + tarteaucitron.lang.alertSmall;
html += ' <span id="tarteaucitronDot">';
html += ' <span id="tarteaucitronDotGreen"></span>';
@ -472,7 +485,11 @@ var tarteaucitron = {
html += ' </button><!-- @whitespace';
html += ' --><button type="button" id="tarteaucitronCookiesNumber">0</button>';
html += ' <div id="tarteaucitronCookiesListContainer">';
html += ' <button type="button" id="tarteaucitronClosePanelCookie">';
if (tarteaucitron.reloadThePage) {
html += ' <button type="button" id="tarteaucitronClosePanelCookie" aria-label="' + tarteaucitron.lang.close + ' (' + tarteaucitron.lang.reload + ')">';
} else {
html += ' <button type="button" id="tarteaucitronClosePanelCookie">';
}
html += ' ' + tarteaucitron.lang.close;
html += ' </button>';
html += ' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
@ -517,13 +534,13 @@ var tarteaucitron = {
var tacRootAvailableEvent;
if(typeof(Event) === 'function') {
tacRootAvailableEvent = new Event("tac.root_available");
}else{
}else if (typeof(document.createEvent) === 'function'){
tacRootAvailableEvent = document.createEvent('Event');
tacRootAvailableEvent.initEvent("tac.root_available", true, true);
}
//end ie compatibility
window.dispatchEvent(tacRootAvailableEvent);
if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacRootAvailableEvent);}
if (tarteaucitron.job !== undefined) {
tarteaucitron.job = tarteaucitron.cleanArray(tarteaucitron.job);
@ -622,15 +639,15 @@ var tarteaucitron = {
var html = '';
html += '<li class="tarteaucitronLine">';
html += ' <div class="tarteaucitronName">';
html += ' <span class="tarteaucitronH3" role="heading" aria-level="3">'+tarteaucitron.lang[cat].title+'</span>';
html += ' <span class="tarteaucitronH3" role="heading" aria-level="2">'+tarteaucitron.lang[cat].title+'</span>';
html += ' <span>'+tarteaucitron.lang[cat].details+'</span>';
html += ' <button type="button" class="tarteaucitron-toggle-group" id="tarteaucitron-toggle-group-'+cat+'">'+tarteaucitron.lang.alertSmall+' ('+document.getElementById("tarteaucitronServices_"+cat).childElementCount+')</button>';
html += ' <button type="button" aria-expanded="false" class="tarteaucitron-toggle-group" id="tarteaucitron-toggle-group-'+cat+'">'+tarteaucitron.lang.alertSmall+' ('+document.getElementById("tarteaucitronServices_"+cat).childElementCount+')</button>';
html += ' </div>';
html += ' <div class="tarteaucitronAsk" id="tarteaucitron-group-'+cat+'">';
html += ' <button type="button" class="tarteaucitronAllow" id="tarteaucitron-accept-group-'+cat+'">';
html += ' <button type="button" aria-label="' + tarteaucitron.lang.allow + ' ' + tarteaucitron.lang[cat].title + '" class="tarteaucitronAllow" id="tarteaucitron-accept-group-'+cat+'">';
html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
html += ' </button> ';
html += ' <button type="button" class="tarteaucitronDeny" id="tarteaucitron-reject-group-'+cat+'">';
html += ' <button type="button" aria-label="' + tarteaucitron.lang.deny + ' ' + tarteaucitron.lang[cat].title + '" class="tarteaucitronDeny" id="tarteaucitron-reject-group-'+cat+'">';
html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
html += ' </button>';
html += ' </div>';
@ -643,8 +660,10 @@ var tarteaucitron = {
tarteaucitron.userInterface.toggle('tarteaucitronServices_' + cat);
if (document.getElementById('tarteaucitronServices_' + cat).style.display == 'block') {
tarteaucitron.userInterface.addClass('tarteaucitronServicesTitle_' + cat, 'tarteaucitronIsExpanded');
document.getElementById('tarteaucitron-toggle-group-'+cat).setAttribute('aria-expanded', 'true');
} else {
tarteaucitron.userInterface.removeClass('tarteaucitronServicesTitle_' + cat, 'tarteaucitronIsExpanded');
document.getElementById('tarteaucitron-toggle-group-'+cat).setAttribute('aria-expanded', 'false');
}
});
tarteaucitron.addClickEventToId("tarteaucitron-accept-group-" + cat, function () {
@ -660,7 +679,7 @@ var tarteaucitron = {
// add a little timeout to be sure everything is accessible
setTimeout(function () {
// Setup events
tarteaucitron.addClickEventToId("tarteaucitronCloseCross", function () {
tarteaucitron.userInterface.closeAlert();
@ -735,7 +754,7 @@ var tarteaucitron = {
tarteaucitron.events.load();
}
}, 500);
});
});
},
@ -761,9 +780,10 @@ var tarteaucitron = {
html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
html += ' <div class="tarteaucitronName">';
html += ' <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + ' (<span id="tacCurrentStatus' + service.key + '">'+currentStatus+'</span>)</span>';
html += ' <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + '</span>';
html += ' <span class="tacCurrentStatus" id="tacCurrentStatus' + service.key + '">'+currentStatus+'</span>';
html += ' <span class="tarteaucitronReadmoreSeparator"> - </span>';
html += ' <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
if (tarteaucitron.parameters.moreInfoLink == true) {
var link = 'https://tarteaucitron.io/service/' + service.key + '/';
@ -777,17 +797,17 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.more;
html += ' </a>';
html += ' <span class="tarteaucitronReadmoreSeparator"> - </span>';
html += ' <a href="' + service.uri + '" target="_blank" rel="noreferrer noopener" title="' + service.name + ' ' + tarteaucitron.lang.newWindow + '" class="tarteaucitronReadmoreOfficial">';
html += ' <a href="' + service.uri + '" target="_blank" rel="noreferrer noopener" title="' + tarteaucitron.lang.source + ' ' + service.name + ' ' + tarteaucitron.lang.newWindow + '" class="tarteaucitronReadmoreOfficial">';
html += ' ' + tarteaucitron.lang.source;
html += ' </a>';
}
html += ' </div>';
html += ' <div class="tarteaucitronAsk">';
html += ' <button type="button" id="' + service.key + 'Allowed" class="tarteaucitronAllow">';
html += ' <button type="button" aria-label="' + tarteaucitron.lang.allow + ' ' + service.name + '" id="' + service.key + 'Allowed" class="tarteaucitronAllow">';
html += ' <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
html += ' </button> ';
html += ' <button type="button" id="' + service.key + 'Denied" class="tarteaucitronDeny">';
html += ' <button type="button" aria-label="' + tarteaucitron.lang.deny + ' ' + service.name + '" id="' + service.key + 'Denied" class="tarteaucitronDeny">';
html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
html += ' </button>';
html += ' </div>';
@ -862,7 +882,7 @@ var tarteaucitron = {
var send_event_item;
if(typeof(Event) === 'function') {
send_event_item = new Event(event_key);
}else{
}else if (typeof(document.createEvent) === 'function'){
send_event_item = document.createEvent('Event');
send_event_item.initEvent(event_key, true, true);
}
@ -908,12 +928,12 @@ var tarteaucitron = {
} else {
document.getElementById(id).style[property] = value;
if (property == "display" && value == "block" && (id == "tarteaucitron" || id == "tarteaucitronAlertBig")) {
document.getElementById(id).style["opacity"] = "0";
setTimeout(function() {document.getElementById(id).style["opacity"] = "1";}, 1);
}
if (property == "display" && value == "block" && id == "tarteaucitronBack") {
document.getElementById(id).style["opacity"] = "0";
setTimeout(function() {document.getElementById(id).style["opacity"] = "0.7";}, 1);
@ -923,13 +943,13 @@ var tarteaucitron = {
},
"addClass": function (id, className) {
"use strict";
if (document.getElementById(id) !== null) {
if (document.getElementById(id) !== null && document.getElementById(id).classList !== undefined) {
document.getElementById(id).classList.add(className);
}
},
"removeClass": function (id, className) {
"use strict";
if (document.getElementById(id) !== null) {
if (document.getElementById(id) !== null && document.getElementById(id).classList !== undefined) {
document.getElementById(id).classList.remove(className);
}
},
@ -955,6 +975,10 @@ var tarteaucitron = {
if (tarteaucitron.state[key] !== status) {
if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = true;
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
}
}
if (tarteaucitron.launch[key] !== true && status === true) {
@ -992,6 +1016,10 @@ var tarteaucitron = {
if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = true;
if (tarteaucitron.checkIfExist('tarteaucitronClosePanel')) {
var ariaCloseValue = document.getElementById('tarteaucitronClosePanel').textContent.trim() + ' (' + tarteaucitron.lang.reload + ')';
document.getElementById('tarteaucitronClosePanel').setAttribute("aria-label", ariaCloseValue);
}
}
// if not already launched... launch the service
@ -1001,8 +1029,8 @@ var tarteaucitron = {
tarteaucitron.pro('!' + key + '=engage');
tarteaucitron.launch[key] = true;
tarteaucitron.sendEvent(key + '_loaded');
if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
tarteaucitron.sendEvent(key + '_loaded');
}
}
var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
@ -1028,11 +1056,18 @@ var tarteaucitron = {
if (key !== "") {
if (status === true) {
document.getElementById(key + 'Line').classList.add('tarteaucitronIsAllowed');
document.getElementById(key + 'Line').classList.remove('tarteaucitronIsDenied');
tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsAllowed');
tarteaucitron.userInterface.removeClass(key + 'Line', 'tarteaucitronIsDenied');
document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'true');
document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
} else if (status === false) {
document.getElementById(key + 'Line').classList.remove('tarteaucitronIsAllowed');
document.getElementById(key + 'Line').classList.add('tarteaucitronIsDenied');
tarteaucitron.userInterface.removeClass(key + 'Line', 'tarteaucitronIsAllowed');
tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsDenied');
document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'true');
} else {
document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
}
// check if all services are allowed
@ -1064,18 +1099,29 @@ var tarteaucitron = {
tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsAllowed');
tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'false');
document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'true');
} else if (nbAllowed === 0 && nbPending === 0) {
tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
tarteaucitron.userInterface.addClass(c + 'AllDenied', c + 'IsSelected');
tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsDenied');
document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'true');
document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'false');
} else {
tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
tarteaucitron.userInterface.removeClass(c + 'AllDenied', c + 'IsSelected');
tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'false');
document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'false');
}
// close the alert if all service have been reviewed
@ -1110,26 +1156,41 @@ var tarteaucitron = {
groupallowed = 0;
for (var ii = 0; ii < doc.children.length; ii++) {
if (doc.children[ii].className == "tarteaucitronLine tarteaucitronIsDenied") {
groupdenied++;
groupdenied++;
}
if (doc.children[ii].className == "tarteaucitronLine tarteaucitronIsAllowed") {
groupallowed++;
groupallowed++;
}
}
if (total === groupallowed) {
tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
tarteaucitron.userInterface.addClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'false');
document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'true');
}
}
if (total === groupdenied) {
tarteaucitron.userInterface.addClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'true');
document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'false');
}
}
if (total !== groupdenied && total !== groupallowed) {
tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'false');
document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'false');
}
}
groupdenied = 0;
groupallowed = 0;
groupdenied = 0;
groupallowed = 0;
});
},
@ -1141,7 +1202,9 @@ var tarteaucitron = {
tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
document.getElementById('tarteaucitronClosePanel').focus();
document.getElementsByTagName('body')[0].classList.add('tarteaucitron-modal-open');
if (document.getElementsByTagName('body')[0].classList !== undefined) {
document.getElementsByTagName('body')[0].classList.add('tarteaucitron-modal-open');
}
tarteaucitron.userInterface.focusTrap();
tarteaucitron.userInterface.jsSizing('main');
@ -1149,13 +1212,13 @@ var tarteaucitron = {
var tacOpenPanelEvent;
if(typeof(Event) === 'function') {
tacOpenPanelEvent = new Event("tac.open_panel");
}else{
}else if (typeof(document.createEvent) === 'function'){
tacOpenPanelEvent = document.createEvent('Event');
tacOpenPanelEvent.initEvent("tac.open_panel", true, true);
}
//end ie compatibility
window.dispatchEvent(tacOpenPanelEvent);
if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacOpenPanelEvent);}
},
"closePanel": function () {
"use strict";
@ -1179,22 +1242,28 @@ var tarteaucitron = {
} else {
tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
}
if (document.getElementById('tarteaucitronCloseAlert') !== null) {
if (tarteaucitron.checkIfExist('tarteaucitronCloseAlert')) {
document.getElementById('tarteaucitronCloseAlert').focus();
} else if (tarteaucitron.checkIfExist('tarteaucitronManager')) {
document.getElementById('tarteaucitronManager').focus();
} else if (tarteaucitron.customCloserId && tarteaucitron.checkIfExist(tarteaucitron.customCloserId)) {
document.getElementById(tarteaucitron.customCloserId).focus();
}
if (document.getElementsByTagName('body')[0].classList !== undefined) {
document.getElementsByTagName('body')[0].classList.remove('tarteaucitron-modal-open');
}
document.getElementsByTagName('body')[0].classList.remove('tarteaucitron-modal-open');
//ie compatibility
var tacClosePanelEvent;
if(typeof(Event) === 'function') {
tacClosePanelEvent = new Event("tac.close_panel");
}else{
}else if (typeof(document.createEvent) === 'function'){
tacClosePanelEvent = document.createEvent('Event');
tacClosePanelEvent.initEvent("tac.close_panel", true, true);
}
//end ie compatibility
window.dispatchEvent(tacClosePanelEvent);
if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacClosePanelEvent);}
},
"focusTrap": function() {
"use strict";
@ -1249,7 +1318,7 @@ var tarteaucitron = {
var tacOpenAlertEvent;
if(typeof(Event) === 'function') {
tacOpenAlertEvent = new Event("tac.open_alert");
}else{
}else if (typeof(document.createEvent) === 'function'){
tacOpenAlertEvent = document.createEvent('Event');
tacOpenAlertEvent.initEvent("tac.open_alert", true, true);
}
@ -1259,7 +1328,7 @@ var tarteaucitron = {
document.getElementById('tarteaucitronAlertBig').focus();
}
window.dispatchEvent(tacOpenAlertEvent);
if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacOpenAlertEvent);}
},
"closeAlert": function () {
"use strict";
@ -1275,13 +1344,13 @@ var tarteaucitron = {
var tacCloseAlertEvent;
if(typeof(Event) === 'function') {
tacCloseAlertEvent = new Event("tac.close_alert");
}else{
}else if (typeof(document.createEvent) === 'function'){
tacCloseAlertEvent = document.createEvent('Event');
tacCloseAlertEvent.initEvent("tac.close_alert", true, true);
}
//end ie compatibility
window.dispatchEvent(tacCloseAlertEvent);
if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacCloseAlertEvent);}
},
"toggleCookiesList": function () {
"use strict";
@ -1529,9 +1598,13 @@ var tarteaucitron = {
var i;
for (i = 0; i < arr.length; i += 1) {
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
var rgxpCookie = new RegExp("^(.*;)?\\s*" + arr[i] + "\\s*=\\s*[^;]+(.*)?$");
if (document.cookie.match(rgxpCookie)) {
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
}
}
},
"checkCount": function (key) {
@ -1685,7 +1758,7 @@ var tarteaucitron = {
"getLanguage": function () {
"use strict";
var availableLanguages = 'bg,ca,cn,cs,da,de,el,en,es,fi,fr,hu,it,ja,lv,nl,no,oc,pl,pt,ro,ru,se,sk,sv,tr,vi,zh',
var availableLanguages = 'bg,ca,cn,cs,da,de,el,en,es,fi,fr,hu,it,ja,lt,lv,nl,no,oc,pl,pt,ro,ru,se,sk,sv,tr,vi,zh',
defaultLanguage = 'en';
if (tarteaucitronForceLanguage !== '') {
@ -1774,6 +1847,10 @@ var tarteaucitron = {
"addInternalScript": function (url, id, callback, execute, attrName, attrVal) {
tarteaucitron.addScript(url, id, callback, execute, attrName, attrVal, true);
},
"checkIfExist": function (elemId) {
"use strict";
return document.getElementById(elemId) !== null && document.getElementById(elemId).offsetWidth !== 0 && document.getElementById(elemId).offsetHeight !== 0;
},
"makeAsync": {
"antiGhost": 0,
"buffer": '',
@ -1906,7 +1983,7 @@ var tarteaucitron = {
},
"proPing": function () {
"use strict";
if (tarteaucitron.uuid !== '' && tarteaucitron.uuid !== undefined && tarteaucitron.proTemp !== '') {
if (tarteaucitron.uuid !== '' && tarteaucitron.uuid !== undefined && tarteaucitron.proTemp !== '' && tarteaucitronStatsEnabled) {
var div = document.getElementById('tarteaucitronPremium'),
timestamp = new Date().getTime(),
url = 'https://tarteaucitron.io/log/?';
@ -1931,7 +2008,7 @@ var tarteaucitron = {
/**
Utility function to Add or update the fields of obj1 with the ones in obj2
*/
for(key in custom){
for(var key in custom){
if(custom[key] instanceof Object){
source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
}else{
@ -1946,6 +2023,9 @@ var tarteaucitron = {
"getElemHeight": function(elem) {
return elem.getAttribute('height') || elem.clientHeight;
},
"getElemAttr": function (elem, attr) {
return elem.getAttribute('data-' + attr) || elem.getAttribute(attr);
},
"addClickEventToId": function (elemId, func) {
tarteaucitron.addClickEventToElement(document.getElementById(elemId), func);
},

1415
lib/tarteaucitron/tarteaucitron.services.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save