Accessibility improvements

This commit is contained in:
Nicolas Zerr 2021-08-20 18:28:17 +02:00
parent 28cff26d20
commit ae483254dc
29 changed files with 88 additions and 27 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -36,6 +36,7 @@ tarteaucitron.lang = {
"title": "Slapukų valdymo skydelis", "title": "Slapukų valdymo skydelis",
"cookieDetail": "Išsami slapuko informacija", "cookieDetail": "Išsami slapuko informacija",
"ourSite": "mūsų svetainėje", "ourSite": "mūsų svetainėje",
"modalWindow": "(modalinis langas)",
"newWindow": "(naujas langas)", "newWindow": "(naujas langas)",
"allowAll": "Leisti visus slapukus", "allowAll": "Leisti visus slapukus",
"denyAll": "Atsisakyti visų slapukų", "denyAll": "Atsisakyti visų slapukų",

View File

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

View File

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

View File

@ -37,6 +37,7 @@ tarteaucitron.lang = {
"title": "Panèl de gestion dels cookies", "title": "Panèl de gestion dels cookies",
"cookieDetail": "Detalh dels cookies", "cookieDetail": "Detalh dels cookies",
"ourSite": "sus nòstre site", "ourSite": "sus nòstre site",
"modalWindow": "(modale fenèstra)",
"newWindow": "(novèla fenèstra)", "newWindow": "(novèla fenèstra)",
"allowAll": "Autorizar totes los cookies", "allowAll": "Autorizar totes los cookies",
"denyAll": "Interdire totes los cookies", "denyAll": "Interdire totes los cookies",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -250,6 +250,7 @@ var tarteaucitron = {
tarteaucitron.hashtag = tarteaucitron.parameters.hashtag; tarteaucitron.hashtag = tarteaucitron.parameters.hashtag;
tarteaucitron.highPrivacy = tarteaucitron.parameters.highPrivacy; tarteaucitron.highPrivacy = tarteaucitron.parameters.highPrivacy;
tarteaucitron.handleBrowserDNTRequest = tarteaucitron.parameters.handleBrowserDNTRequest; tarteaucitron.handleBrowserDNTRequest = tarteaucitron.parameters.handleBrowserDNTRequest;
tarteaucitron.customCloserId = tarteaucitron.parameters.customCloserId;
// Step 1: load css // Step 1: load css
if ( !tarteaucitron.parameters.useExternalCss ) { if ( !tarteaucitron.parameters.useExternalCss ) {
@ -310,9 +311,17 @@ var tarteaucitron = {
// Step 3: prepare the html // Step 3: prepare the html
html += '<div id="tarteaucitronPremium"></div>'; html += '<div id="tarteaucitronPremium"></div>';
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 += '<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">'; 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 += ' <button type="button" id="tarteaucitronClosePanel">';
}
html += ' ' + tarteaucitron.lang.close; html += ' ' + tarteaucitron.lang.close;
html += ' </button>'; html += ' </button>';
html += ' <div id="tarteaucitronServices">'; html += ' <div id="tarteaucitronServices">';
@ -322,7 +331,7 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.disclaimer; html += ' ' + tarteaucitron.lang.disclaimer;
if (tarteaucitron.parameters.privacyUrl !== "") { if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <br/><br/>'; html += ' <br/><br/>';
html += ' <button type="button" id="tarteaucitronPrivacyUrlDialog">'; html += ' <button type="button" id="tarteaucitronPrivacyUrlDialog" role="link">';
html += ' ' + tarteaucitron.lang.privacyUrl; html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>'; html += ' </button>';
} }
@ -397,12 +406,12 @@ var tarteaucitron = {
html += ' ' + tarteaucitron.lang.alertBigPrivacy; html += ' ' + tarteaucitron.lang.alertBigPrivacy;
html += ' </span>'; html += ' </span>';
//html += ' <span class="tarteaucitronAlertBigBtnWrapper">'; //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 += ' ' + tarteaucitron.lang.personalize;
html += ' </button>'; html += ' </button>';
if (tarteaucitron.parameters.privacyUrl !== "") { if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <button type="button" id="tarteaucitronPrivacyUrl">'; html += ' <button role="link" type="button" id="tarteaucitronPrivacyUrl">';
html += ' ' + tarteaucitron.lang.privacyUrl; html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>'; html += ' </button>';
} }
@ -429,18 +438,22 @@ var tarteaucitron = {
if (tarteaucitron.parameters.DenyAllCta) { 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 += ' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
}
html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll; html += ' <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
html += ' </button>'; html += ' </button>';
//html += ' <br/><br/>'; //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 += ' ' + tarteaucitron.lang.personalize;
html += ' </button>'; html += ' </button>';
if (tarteaucitron.parameters.privacyUrl !== "") { if (tarteaucitron.parameters.privacyUrl !== "") {
html += ' <button type="button" id="tarteaucitronPrivacyUrl">'; html += ' <button type="button" id="tarteaucitronPrivacyUrl" role="link">';
html += ' ' + tarteaucitron.lang.privacyUrl; html += ' ' + tarteaucitron.lang.privacyUrl;
html += ' </button>'; html += ' </button>';
} }
@ -454,14 +467,14 @@ var tarteaucitron = {
if (tarteaucitron.parameters.showIcon === true) { if (tarteaucitron.parameters.showIcon === true) {
html += '<div id="tarteaucitronIcon" class="tarteaucitronIcon' + tarteaucitron.parameters.iconPosition + '">'; html += '<div id="tarteaucitronIcon" class="tarteaucitronIcon' + tarteaucitron.parameters.iconPosition + '">';
html += ' <button type="button" id="tarteaucitronManager">'; html += ' <button type="button" id="tarteaucitronManager">';
html += ' <img src="' + (tarteaucitron.parameters.iconSrc ? tarteaucitron.parameters.iconSrc : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAGA0lEQVRoge1a207bWBRdBtJwLYZhKDMVmlSK1LxNkPo+ZH6g8B6p5AuALwC+APoFoVLeoT8whPeRSt+CZKmZVu3AiIsRlEtCktGyjy8xzuXYhvahS0JJHJ/4rLP3XnuffcAPfGdQ7mM6jRLSAF4BxqsbewB2lRS2o35mpEQaJcwCyANIdLi1DGBNSWEzqmdHRqRRwjqAJclhtExOSUEP+/xIiDRKhhUWfL7ShTtBuJnqcw+/z4Ql0xNmMEwSSz4kuNIzSgpjSsqYJP/GeE185wYJroedRyiLNEpGLLzzrHSuk+83SgbxvOcyyRaDziWsRVZkSRDinpzPbwVGWIucuohsKynMS47fAQyls/BMSRmKJo3AFhG5wm2N1wF+Zs3zebbFfR0RxrXcJHQlgH+LMW616pR/WiIMEXfW3mtzXyeEGWsjKot8c4TOI98L+iKaR5PS6IUk88RLAO9F8UjrbYoYMOosNavpfmODIiwRXRR/G3ohaWVo1RU/c30jV8ab2mV8qVGzHWBOLyTLZiWs5Rolg/C3ySOi0tXP/k4aEwOwSBKPJs7Rp16ABJTe+p1xVX0It/owqqdDEMRoqd3RFxqDPh20Ig6VEPVC0i5RSCD+6wl6HlW7GksSlUMV11/GrUs5NasFLusDE9ELSVphXemtJwaT/8Jy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FRR6D/04DwkFGvHPXM3Qda/Jb4nPgI7hQLVM1q5HIBt2MzQNa57Z1DiiLAGa5Mi+O4Sz3Mpp6laPHO6InII3ITnX1QtI+EOX+m9ZxleOZ/j9PiuKoLi3aqXPuEoSye/Vhkm+LalbLtHhMS0R6zu7aZ3vP2jOjL7QVv4McxhcDnZIelAQibGIbULOapf3PuE1Vs9qeaOTdkVKr00gCQiw4NlBzDvf1Lxx+uP5r3Dgv5KQZRzWn+GRwz8jmDS8itUg7iB6vLuJCF5Uty4A9mVKkFR6MiJDachST/oHvHgD+B4SoUIitpF05AAAAAElFTkSuQmCC') + '" alt="' + tarteaucitron.lang.icon + '" title="' + tarteaucitron.lang.icon + '">'; html += ' <img src="' + (tarteaucitron.parameters.iconSrc ? tarteaucitron.parameters.iconSrc : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAGA0lEQVRoge1a207bWBRdBtJwLYZhKDMVmlSK1LxNkPo+ZH6g8B6p5AuALwC+APoFoVLeoT8whPeRSt+CZKmZVu3AiIsRlEtCktGyjy8xzuXYhvahS0JJHJ/4rLP3XnuffcAPfGdQ7mM6jRLSAF4BxqsbewB2lRS2o35mpEQaJcwCyANIdLi1DGBNSWEzqmdHRqRRwjqAJclhtExOSUEP+/xIiDRKhhUWfL7ShTtBuJnqcw+/z4Ql0xNmMEwSSz4kuNIzSgpjSsqYJP/GeE185wYJroedRyiLNEpGLLzzrHSuk+83SgbxvOcyyRaDziWsRVZkSRDinpzPbwVGWIucuohsKynMS47fAQyls/BMSRmKJo3AFhG5wm2N1wF+Zs3zebbFfR0RxrXcJHQlgH+LMW616pR/WiIMEXfW3mtzXyeEGWsjKot8c4TOI98L+iKaR5PS6IUk88RLAO9F8UjrbYoYMOosNavpfmODIiwRXRR/G3ohaWVo1RU/c30jV8ab2mV8qVGzHWBOLyTLZiWs5Rolg/C3ySOi0tXP/k4aEwOwSBKPJs7Rp16ABJTe+p1xVX0It/owqqdDEM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c2XcVSORnh9Q81q3k599ETgkNnjg0nGzi10K7rX+bZpHbrblPcY5A4Zxk2xcjzCvTpd9027Aa0QtouyyrKFRR6D/04DwkFGvHPXM3Qda/Jb4nPgI7hQLVM1q5HIBt2MzQNa57Z1DiiLAGa5Mi+O4Sz3Mpp6laPHO6InII3ITnX1QtI+EOX+m9ZxleOZ/j9PiuKoLi3aqXPuEoSye/Vhkm+LalbLtHhMS0R6zu7aZ3vP2jOjL7QVv4McxhcDnZIelAQibGIbULOapf3PuE1Vs9qeaOTdkVKr00gCQiw4NlBzDvf1Lxx+uP5r3Dgv5KQZRzWn+GRwz8jmDS8itUg7iB6vLuJCF5Uty4A9mVKkFR6MiJDachST/oHvHgD+B4SoUIitpF05AAAAAElFTkSuQmCC') + '" alt="' + tarteaucitron.lang.icon + ' ' + tarteaucitron.lang.modalWindow + '" title="' + tarteaucitron.lang.icon + ' ' + tarteaucitron.lang.modalWindow + '">';
html += ' </button>'; html += ' </button>';
html += '</div>'; html += '</div>';
} }
if (tarteaucitron.parameters.showAlertSmall === true) { if (tarteaucitron.parameters.showAlertSmall === true) {
html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">'; 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 += ' ' + tarteaucitron.lang.alertSmall;
html += ' <span id="tarteaucitronDot">'; html += ' <span id="tarteaucitronDot">';
html += ' <span id="tarteaucitronDotGreen"></span>'; html += ' <span id="tarteaucitronDotGreen"></span>';
@ -472,7 +485,11 @@ var tarteaucitron = {
html += ' </button><!-- @whitespace'; html += ' </button><!-- @whitespace';
html += ' --><button type="button" id="tarteaucitronCookiesNumber">0</button>'; html += ' --><button type="button" id="tarteaucitronCookiesNumber">0</button>';
html += ' <div id="tarteaucitronCookiesListContainer">'; html += ' <div id="tarteaucitronCookiesListContainer">';
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 += ' <button type="button" id="tarteaucitronClosePanelCookie">';
}
html += ' ' + tarteaucitron.lang.close; html += ' ' + tarteaucitron.lang.close;
html += ' </button>'; html += ' </button>';
html += ' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">'; html += ' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
@ -958,6 +975,10 @@ var tarteaucitron = {
if (tarteaucitron.state[key] !== status) { if (tarteaucitron.state[key] !== status) {
if (status === false && tarteaucitron.launch[key] === true) { if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = 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) { if (tarteaucitron.launch[key] !== true && status === true) {
@ -995,6 +1016,10 @@ var tarteaucitron = {
if (status === false && tarteaucitron.launch[key] === true) { if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = 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 // if not already launched... launch the service
@ -1217,8 +1242,12 @@ var tarteaucitron = {
} else { } else {
tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none'); tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
} }
if (document.getElementById('tarteaucitronCloseAlert') !== null) { if (tarteaucitron.checkIfExist('tarteaucitronCloseAlert')) {
document.getElementById('tarteaucitronCloseAlert').focus(); 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) { 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');
@ -1818,6 +1847,10 @@ var tarteaucitron = {
"addInternalScript": function (url, id, callback, execute, attrName, attrVal) { "addInternalScript": function (url, id, callback, execute, attrName, attrVal) {
tarteaucitron.addScript(url, id, callback, execute, attrName, attrVal, true); 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": { "makeAsync": {
"antiGhost": 0, "antiGhost": 0,
"buffer": '', "buffer": '',