From 6d6f7a77db3124068cc39a54d48c14f670a59ba9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 28 Aug 2018 10:43:35 +0200 Subject: [PATCH] Add an option to hide the links to opt-out.ferank.eu and third party website --- tarteaucitron.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 8c7795c..e4f4588 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -207,7 +207,8 @@ var tarteaucitron = { "removeCredit": false, "showAlertSmall": true, "cookieslist": true, - "handleBrowserDNTRequest": false + "handleBrowserDNTRequest": false, + "moreInfoLink": true }, params = tarteaucitron.parameters; @@ -475,13 +476,15 @@ var tarteaucitron = { html += '
'; html += '

' + service.name + '


'; html += '
'; - html += ' '; - html += ' ' + tarteaucitron.lang.more; - html += ' '; - html += ' - '; - html += ' '; - html += ' ' + tarteaucitron.lang.source; - html += ' '; + if (tarteaucitron.parameters.moreInfoLink == true) { + html += ' '; + html += ' ' + tarteaucitron.lang.more; + html += ' '; + html += ' - '; + html += ' '; + html += ' ' + tarteaucitron.lang.source; + html += ' '; + } html += '
'; html += '
'; html += '