V1.2.5 : Mise à jour de la librairie, correction d'une faute d'orthographe dans la config

pull/11/head v1.2.5
pierrekuhn87 2 years ago
parent b4bf4150c1
commit b9f522f64f

@ -24,7 +24,7 @@
<p class="explication"><:tarteaucitron:cfg_btn_showIcon_explication:></p>
<div class="editer-groupe">
[(#SAISIE{radio, showIcon, label=<:tarteaucitron:cfg_btn_showIcon:>, defaut=true, datas=[(#ARRAY{true,Oui,false,Non})]})]
[(#SAISIE{radio, iconPosition, label=<:tarteaucitron:cfg_iconposition:>, defaut=BottomRight, datas=[(#ARRAY{BottomRight, En bas à doite, BottomLeft, En bas à gauche, TopRight, En haut à droite, TopLeft, En haut à gauche})]})]
[(#SAISIE{radio, iconPosition, label=<:tarteaucitron:cfg_iconposition:>, defaut=BottomRight, datas=[(#ARRAY{BottomRight, En bas à droite, BottomLeft, En bas à gauche, TopRight, En haut à droite, TopLeft, En haut à gauche})]})]
</div>
</fieldset>

@ -1,9 +1,9 @@
.modal-open{
.tarteaucitron-modal-open{
overflow: hidden;
height: 100%;
}
#contentWrapper {display:unset;}
#tarteaucitronContentWrapper {display:unset;}
/***
* Reset CSS
@ -869,15 +869,24 @@ span.tarteaucitronTitle.tarteaucitronH3 {
margin-top: 12px!important;
}
.spacer-20 {
#tarteaucitronCloseCross {
position:absolute;
color: #FFFF;
font-size:1.8rem;
cursor: pointer;
top: 10px;
right: 26px
}
.tarteaucitron-spacer-20 {
height: 20px;
display: block;
}
.display-block {
.tarteaucitron-display-block {
display: block;
}
.display-none {
.tarteaucitron-display-none {
display: none;
}

@ -196,8 +196,9 @@ var tarteaucitron = {
"use strict";
var cdn = tarteaucitron.cdn,
language = tarteaucitron.getLanguage(),
pathToLang = cdn + 'lang/tarteaucitron.' + language + '.js?v=' + tarteaucitron.version,
pathToServices = cdn + 'tarteaucitron.services.js?v=' + tarteaucitron.version,
useJSDelivrMinifiedJS = cdn.includes("cdn.jsdelivr.net"),
pathToLang = cdn + 'lang/tarteaucitron.' + language + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
pathToServices = cdn + 'tarteaucitron.services' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
linkElement = document.createElement('link'),
defaults = {
"adblocker": false,
@ -253,7 +254,7 @@ var tarteaucitron = {
if ( !tarteaucitron.parameters.useExternalCss ) {
linkElement.rel = 'stylesheet';
linkElement.type = 'text/css';
linkElement.href = cdn + 'css/tarteaucitron.css?v=' + tarteaucitron.version;
linkElement.href = cdn + 'css/tarteaucitron' + (useJSDelivrMinifiedJS ? '.min' : '') + '.css?v=' + tarteaucitron.version;
document.getElementsByTagName('head')[0].appendChild(linkElement);
}
// Step 2: load language and services
@ -362,7 +363,7 @@ var tarteaucitron = {
}
html += ' <li id="tarteaucitronNoServicesTitle" class="tarteaucitronLine">' + tarteaucitron.lang.noServices + '</li>';
html += ' </ul>';
html += ' <div class="tarteaucitronHidden spacer-20" id="tarteaucitronScrollbarChild"></div>';
html += ' <div class="tarteaucitronHidden tarteaucitron-spacer-20" id="tarteaucitronScrollbarChild"></div>';
if (tarteaucitron.parameters.removeCredit === false) {
html += ' <a class="tarteaucitronSelfLink" href="https://tarteaucitron.io/" rel="nofollow noreferrer noopener" target="_blank" title="tarteaucitron ' + tarteaucitron.lang.newWindow + '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAAeCAYAAAAWwoEYAAADl0lEQVRoge1Y0W3bQAx9CjKARlC+9GVUmqDJBHEmiDyB6wkcTxBngtgTxJ0gzgQW4C/9aYOmE6g4lTQo+k6y3Rb94QOERNQd+cjj8XiGwWAwGAwGg8FgMBgMBoPB8F8RNRXe+whEKe7c36ZCAeCRxC9Rig2PUd8kPgAsoxSfQ3YAzAA8D/HwYYCb05kBKKO0teFkmbC1jlKsAnq/Abjn+QBqAIsoRS30ttwG/HNz1wH/XIxWTicLdvtW7xTAGEAMtP685CNsBTe2d/BLydfXAG57SEnMAST0zgYZSUCPk02bCvkJduIzuJzDLfPolbY+tLKmar+/8+IRePy4qdpE03qHuH8fipFb4N2+XdA3AJ/0vaQxt7s9FvkIS2XvtqnwM0rxpOQfbnE5G2LhTCmUO2fHIngOmcv+KG3HafDchB6ntwjYqenR2PqC7sOZ3E7FXHB0vqxoFyUyLh7OEH7LOGouvhhN3eIBeKXv0n5MsufdHqXcwYR5U2EbpV35lSspVPJmQj4TcgRK7jTg5IzmPUhhwM5a2WHUFCx+NgiDucmgh7idikLovHFlL0pxQ9xzX+IIP9Y6FrJsqhjlQpZRAkFVDCjZfcCHt6bqJDmuh5ylCWx0RVnk3oumaknqTH5sqrY0fBWyULaHUIgAgxb46MxV3DbieAhxOxUxjSuljig9lMQ/Bcfoi9BTEv9aLORSndVxYOH525sUDC6u2gWxcNzBNRxPanyh3ktKinOgy3WoxPbtUM0t6RkbQnzBnFPgi9GCOEubY9UffIryz9iKRe8s/FUfEWosJJGxagp85bpUO3VywQ46lOtAWfNxKwa4JXQ+628+bpxYGXXMzp5rXH401VEyXwIdowXFaKWSMFHvMTVmGnc+P3oXV2QOiBCfgex8QtcQCbcQE/H+eoHzrkFo1KM7zVO4jVVj5s6lRiWF7zyXyfRMc97J3tzj87mYqZ7E2YjzUct9GUi4tjHLR8dVkBLjQcuHFleWvQfRNEhFR7uX7pkctOwvZXsft7sAtyldEUIN2UTeLxnEfxKYswzdi88BdbZ8hifUoSMftQvP+muRwN6+Q3DeqqRExP9QmTtcheiHh0Ot1x2i2km1bP9pbufw5zZdyWsOrh7vQae5OZWbsMv30pi7cd/CKj3coPEVaCP4Zhx4eQWhOZ1Y9MTXGyP8/iGjEyfa1T4fO/4Lea9vBoPBYDAYDAaDwWAwGAwGwz8GgF8siXCCbrSRhgAAAABJRU5ErkJggg==" alt="tarteaucitron.io" /></a>';
}
@ -470,12 +471,12 @@ var tarteaucitron = {
html += '</div>';
}
tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising.js?v=' + tarteaucitron.version, '', function () {
tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version, '', function () {
if (tarteaucitronNoAdBlocker === true || tarteaucitron.parameters.adblocker === false) {
// create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
/*var wrapper = document.createElement('div');
wrapper.id = "contentWrapper";
wrapper.id = "tarteaucitronContentWrapper";
while (document.body.firstChild)
{
@ -553,7 +554,7 @@ var tarteaucitron = {
if (tarteaucitron.parameters.adblocker === true) {
setTimeout(function () {
if (tarteaucitronNoAdBlocker === false) {
html = '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + ' display-block" role="alert" aria-live="polite">';
html = '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + ' tarteaucitron-display-block" role="alert" aria-live="polite">';
html += ' <p id="tarteaucitronDisclaimerAlert">';
html += ' ' + tarteaucitron.lang.adblock + '<br/>';
html += ' <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
@ -582,12 +583,8 @@ var tarteaucitron = {
let element = document.getElementById('tarteaucitronAlertBig');
let span = document.createElement('span')
span.textContent = 'X';
span.style.cssText = 'position:absolute; color: #FFFF; font-size:2rem; cursor: pointer; top: 10px; right: 26px';
span.setAttribute('id', "clossCross")
span.setAttribute('id', "tarteaucitronCloseCross")
element.insertBefore(span, element.firstElementChild)
document.getElementById("clossCross").onclick = () =>{
tarteaucitron.userInterface.closeAlert();
}
}
@ -596,6 +593,9 @@ var tarteaucitron = {
setTimeout(function () {
// Setup events
tarteaucitron.addClickEventToId("tarteaucitronCloseCross", function () {
tarteaucitron.userInterface.closeAlert();
});
tarteaucitron.addClickEventToId("tarteaucitronPersonalize", function () {
tarteaucitron.userInterface.openPanel();
});
@ -627,10 +627,10 @@ var tarteaucitron = {
tarteaucitron.userInterface.respondAll(true);
});
tarteaucitron.addClickEventToId("tarteaucitronAllDenied", function () {
tarteaucitron.userInterface.respondAll(false);
tarteaucitron.userInterface.respondAll(false, '', true);
});
tarteaucitron.addClickEventToId("tarteaucitronAllDenied2", function () {
tarteaucitron.userInterface.respondAll(false);
tarteaucitron.userInterface.respondAll(false, '', true);
if (tarteaucitron.reloadThePage === true) {
window.location.reload();
}
@ -864,7 +864,7 @@ var tarteaucitron = {
document.getElementById(id).classList.remove(className);
}
},
"respondAll": function (status) {
"respondAll": function (status, type, allowSafeAnalytics) {
"use strict";
var s = tarteaucitron.services,
service,
@ -872,6 +872,15 @@ var tarteaucitron = {
index = 0;
for (index = 0; index < tarteaucitron.job.length; index += 1) {
if (typeof type !== 'undefined' && type !== '' && s[tarteaucitron.job[index]].type !== type) {
continue;
}
if (allowSafeAnalytics && typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
continue;
}
service = s[tarteaucitron.job[index]];
key = service.key;
if (tarteaucitron.state[key] !== status) {
@ -932,7 +941,8 @@ var tarteaucitron = {
nbPending = 0,
nbAllowed = 0,
sum = tarteaucitron.job.length,
index;
index,
s = tarteaucitron.services;
if (status === true) {
document.getElementById(key + 'Line').classList.add('tarteaucitronIsAllowed');
@ -944,6 +954,12 @@ var tarteaucitron = {
// check if all services are allowed
for (index = 0; index < sum; index += 1) {
if (typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
sum -= 1;
continue;
}
if (tarteaucitron.state[tarteaucitron.job[index]] === false) {
nbDenied += 1;
} else if (tarteaucitron.state[tarteaucitron.job[index]] === undefined) {
@ -1005,7 +1021,7 @@ var tarteaucitron = {
tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
document.getElementById('tarteaucitronClosePanel').focus();
document.getElementsByTagName('body')[0].classList.add('modal-open');
document.getElementsByTagName('body')[0].classList.add('tarteaucitron-modal-open');
tarteaucitron.userInterface.focusTrap();
tarteaucitron.userInterface.jsSizing('main');
@ -1046,7 +1062,7 @@ var tarteaucitron = {
if (document.getElementById('tarteaucitronCloseAlert') !== null) {
document.getElementById('tarteaucitronCloseAlert').focus();
}
document.getElementsByTagName('body')[0].classList.remove('modal-open');
document.getElementsByTagName('body')[0].classList.remove('tarteaucitron-modal-open');
//ie compatibility
var tacClosePanelEvent;
@ -1510,7 +1526,7 @@ var tarteaucitron = {
html += '</div>';
}
html += '<div class="tarteaucitronHidden spacer-20"></div>';
html += '<div class="tarteaucitronHidden tarteaucitron-spacer-20"></div>';
if (document.getElementById('tarteaucitronCookiesList') !== null) {
document.getElementById('tarteaucitronCookiesList').innerHTML = html;
@ -1605,7 +1621,6 @@ var tarteaucitron = {
}
} else {
script = document.createElement('script');
script.type = 'text/javascript';
script.id = (id !== undefined) ? id : '';
script.async = true;
script.src = url;
@ -1667,7 +1682,7 @@ var tarteaucitron = {
tarteaucitron.makeAsync.antiGhost += 1;
tarteaucitron.addInternalScript(url, '', function () {
if (document.getElementById(id) !== null) {
document.getElementById(id).innerHTML += "<span class='display-none'>&nbsp;</span>" + tarteaucitron.makeAsync.buffer;
document.getElementById(id).innerHTML += "<span class='tarteaucitron-display-none'>&nbsp;</span>" + tarteaucitron.makeAsync.buffer;
tarteaucitron.makeAsync.buffer = '';
tarteaucitron.makeAsync.execJS(id);
}
@ -1782,7 +1797,7 @@ var tarteaucitron = {
url += 'status=' + encodeURIComponent(tarteaucitron.proTemp) + '&';
url += '_time=' + timestamp;
div.innerHTML = '<img src="' + url + '" class="display-none" alt="" />';
div.innerHTML = '<img src="' + url + '" class="tarteaucitron-display-none" alt="" />';
tarteaucitron.proTemp = '';
}
@ -1820,4 +1835,4 @@ var tarteaucitron = {
}
}
}
};
};

@ -30,6 +30,126 @@ tarteaucitron.services.iframe = {
}
};
// xandr
tarteaucitron.services.xandr = {
"key": "xandr",
"type": "ads",
"name": "Xandr",
"uri": "https://www.xandr.com/privacy/cookie-policy/",
"needConsent": true,
"cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
"js": function () {
"use strict";
if (tarteaucitron.user.xandrId === undefined) {
return;
}
if (!window.pixie) {
var n = window.pixie = function(e, i, a) {
n.actionQueue.push({
action: e,
actionValue: i,
params: a
})
};
n.actionQueue = [];
}
tarteaucitron.addScript('https://acdn.adnxs.com/dmp/up/pixie.js', '', function() {
window.pixie('init', tarteaucitron.user.xandrId);
window.pixie('event', 'PageView');
});
}
};
// helloasso
tarteaucitron.services.helloasso = {
"key": "helloasso",
"type": "api",
"name": "HelloAsso",
"uri": "https://www.helloasso.com/confidentialite",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['tac_helloasso'], function (x) {
var width = x.getAttribute("width"),
height = x.getAttribute("height"),
url = x.getAttribute("data-url");
return '<iframe id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="auto" allowtransparency allowfullscreen></iframe>';
});
},
"fallback": function () {
"use strict";
var id = 'helloasso';
tarteaucitron.fallback(['tac_helloasso'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// podcloud
tarteaucitron.services.podcloud = {
"key": "podcloud",
"type": "video",
"name": "podCloud",
"uri": "https://podcloud.fr/privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['tac_podcloud'], function (x) {
var width = x.getAttribute("width"),
height = x.getAttribute("height"),
url = x.getAttribute("data-url");
return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="auto" allowtransparency allowfullscreen></iframe>';
});
},
"fallback": function () {
"use strict";
var id = 'podcloud';
tarteaucitron.fallback(['tac_podcloud'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// facebookpost
tarteaucitron.services.facebookpost = {
"key": "facebookpost",
"type": "social",
"name": "Facebook (post)",
"uri": "https://www.facebook.com/help/325807937506242",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['tac_facebookpost'], function (x) {
var width = x.getAttribute("width"),
height = x.getAttribute("height"),
url = x.getAttribute("data-url"),
appId = x.getAttribute("data-appid");
return '<iframe src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&amp;width=' + width + '&amp;show_text=false&amp;appId=' + appId + '&amp;height=' + height + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="auto" allowtransparency allowfullscreen></iframe>';
});
},
"fallback": function () {
"use strict";
var id = 'facebookpost';
tarteaucitron.fallback(['tac_facebookpost'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// amplitude
tarteaucitron.services.amplitude = {
"key": "amplitude",
@ -523,6 +643,23 @@ tarteaucitron.services.clicmanager = {
}
};
// compteur
tarteaucitron.services.compteur = {
"key": "compteur",
"type": "analytic",
"name": "Compteur.fr",
"uri": "https://www.compteur.fr/help_privacy_policy.htm",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.compteurID === undefined) {
return;
}
tarteaucitron.addScript('https://server2.compteur.fr/log7.js', '', function() {wtslog7(tarteaucitron.user.compteurID,1);});
}
};
// contentsquare
tarteaucitron.services.contentsquare = {
"key": "contentsquare",
@ -620,6 +757,41 @@ tarteaucitron.services.criteo = {
}
};
// artetv
tarteaucitron.services.artetv = {
"key": "artetv",
"type": "video",
"name": "Arte.tv",
"uri": "https://www.arte.tv/sites/fr/corporate/donnees-personnelles/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['artetv_player'], function (x) {
var video_json = x.getAttribute("json"),
video_width = x.getAttribute("width"),
video_height = x.getAttribute("height"),
video_frame;
if (video_json === undefined) {
return "";
}
video_frame = '<iframe style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
return video_frame;
});
},
"fallback": function () {
"use strict";
var id = 'artetv';
tarteaucitron.fallback(['artetv_player'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// dailymotion
tarteaucitron.services.dailymotion = {
"key": "dailymotion",
@ -637,6 +809,7 @@ tarteaucitron.services.dailymotion = {
video_height = x.getAttribute("height"),
frame_height = 'height=',
video_frame,
embed_type = x.getAttribute("embedType"),
params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
if (video_id === undefined) {
@ -652,7 +825,10 @@ tarteaucitron.services.dailymotion = {
} else {
frame_height += '"" ';
}
video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
if (embed_type === undefined || !['video', 'playlist'].includes(embed_type) ) {
embed_type = "video";
}
video_frame = '<iframe src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
return video_frame;
});
},
@ -757,6 +933,70 @@ tarteaucitron.services.datingaffiliationpopup = {
}
};
// deezer
tarteaucitron.services.deezer = {
"key": "deezer",
"type": "video",
"name": "Deezer",
"uri": "https://www.deezer.com/legal/personal-datas",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
tarteaucitron.fallback(['deezer_player'], function (x) {
var deezer_id = x.getAttribute("deezerID"),
deezer_width = x.getAttribute("width"),
frame_width = 'width=',
deezer_height = x.getAttribute("height"),
frame_height = 'height=',
deezer_frame,
embed_theme = x.getAttribute("theme"),
embed_type = x.getAttribute("embedType"),
radius = x.getAttribute("radius"),
tracklist = x.getAttribute("tracklist"),
params;
if (deezer_id === undefined) {
return "";
}
if (deezer_width !== undefined) {
frame_width += '"' + deezer_width + '" ';
} else {
frame_width += '"" ';
}
if (deezer_height !== undefined) {
frame_height += '"' + deezer_height + '" ';
} else {
frame_height += '"" ';
}
if (embed_theme === undefined || !['auto', 'light', 'dark'].includes(embed_theme) ) {
embed_theme = "auto";
}
if (embed_type === undefined || !['album', 'track', 'playlist'].includes(embed_type) ) {
embed_type = "album";
}
if (radius === undefined || !['true', 'false'].includes(radius) ) {
radius = "true";
}
if (tracklist === undefined || !['true', 'false'].includes(tracklist) ) {
tracklist = "true";
}
params = 'tracklist=' + tracklist + '&radius=' + radius;
deezer_frame = '<iframe src="//widget.deezer.com/widget/' + embed_theme + '/' + embed_type + '/' + deezer_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
return deezer_frame;
});
},
"fallback": function () {
"use strict";
var id = 'deezer';
tarteaucitron.fallback(['deezer_player'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// leadforensics
tarteaucitron.services.leadforensics = {
"key": "leadforensics",
@ -775,7 +1015,7 @@ tarteaucitron.services.leadforensics = {
window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
(function() {
var sf14g = document.createElement('script'); sf14g.type = 'text/javascript'; sf14g.async = true;
var sf14g = document.createElement('script'); sf14g.async = true;
sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
})();
@ -941,6 +1181,27 @@ tarteaucitron.services.ferank = {
}
};
// pingdom
tarteaucitron.services.pingdom = {
"key": "pingdom",
"type": "api",
"name": "Pingdom",
"uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.pingdomId === undefined) {
return;
}
window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]];
tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js');
}
};
// simpleanalytics
tarteaucitron.services.simpleanalytics = {
@ -956,8 +1217,31 @@ tarteaucitron.services.simpleanalytics = {
}
};
// stonly
tarteaucitron.services.stonly = {
"key": "stonly",
"type": "api",
"name": "Stonly",
"uri": "https://stonly.com/privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.stonlyId === undefined) {
return;
}
window.STONLY_WID = tarteaucitron.user.stonlyId;
window.StonlyWidget || ((window.w = window.StonlyWidget = function() {
window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
}).queue = []);
tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
}
};
// stripe
tarteaucitron.services.stripe = {
/*tarteaucitron.services.stripe = {
"key": "stripe",
"type": "api",
"name": "Stripe",
@ -968,7 +1252,7 @@ tarteaucitron.services.stripe = {
"use strict";
tarteaucitron.addScript('https://js.stripe.com/v3/');
}
};
};*/
// ferank pub
tarteaucitron.services.ferankpub = {
@ -1504,6 +1788,52 @@ tarteaucitron.services.hubspot = {
}
};
// instagram
tarteaucitron.services.instagram = {
"key": "instagram",
"type": "social",
"name": "Instagram",
"uri": "https://www.instagram.com/legal/privacy/",
"needConsent": true,
"cookies": ['shbts', 'sessionid', 'csrftoken', 'rur', 'shbid', 'mid', 'ds_usr_id', 'ig_did', 'ig_cb', 'datr'],
"js": function () {
"use strict";
tarteaucitron.fallback(['instagram_post'], function (x) {
var post_id = x.getAttribute("postId"),
embed_width = x.getAttribute("width"),
frame_width = 'width=',
embed_height = x.getAttribute("height"),
frame_height = 'height=',
post_frame;
if (post_id === undefined) {
return "";
}
if (embed_width !== undefined) {
frame_width += '"' + embed_width + '" ';
} else {
frame_width += '"" ';
}
if (embed_height !== undefined) {
frame_height += '"' + embed_height + '" ';
} else {
frame_height += '"" ';
}
post_frame = '<iframe src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + ' frameborder="0"></iframe>';
return post_frame;
});
},
"fallback": function () {
"use strict";
var id = 'instagram';
tarteaucitron.fallback(['instagram_post'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// jsapi
tarteaucitron.services.jsapi = {
"key": "jsapi",
@ -1637,6 +1967,31 @@ tarteaucitron.services.microsoftcampaignanalytics = {
}
};
// onesignal
tarteaucitron.services.onesignal = {
"key": "onesignal",
"type": "api",
"name": "OneSignal",
"uri": "https://onesignal.com/privacy_policy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.onesignalAppId === undefined) {
return;
}
window.OneSignal = window.OneSignal || [];
window.OneSignal.push(function() {
window.OneSignal.init({
appId: tarteaucitron.user.onesignalAppId,
});
});
tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
}
};
// pinterest
tarteaucitron.services.pinterest = {
"key": "pinterest",
@ -1969,7 +2324,8 @@ tarteaucitron.services.soundcloud = {
showUser = x.getAttribute('data-show-user'),
showReposts = x.getAttribute('data-show-reposts'),
showTeaser = x.getAttribute('data-show-teaser'),
visual = x.getAttribute('data-visual');
visual = x.getAttribute('data-visual'),
artwork = x.getAttribute('data-artwork');
var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
@ -1978,15 +2334,16 @@ tarteaucitron.services.soundcloud = {
}
var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
if (hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
if (color.length > 0) qs += '&color=' + color.replace('#', '%23');
if (autoplay.length > 0) qs += '&auto_play=' + autoplay;
if (showComments.length > 0) qs += '&show_comments=' + showComments;
if (hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
if (showUser.length > 0) qs += '&show_user=' + showUser;
if (showReposts.length > 0) qs += '&show_reposts=' + showReposts;
if (showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
if (visual.length > 0) qs += '&visual=' + visual;
if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
if (visual && visual.length > 0) qs += '&visual=' + visual;
if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
return '<iframe width="100%" ' + frame_height + ' scrolling="no" frameborder="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
});
@ -2000,6 +2357,52 @@ tarteaucitron.services.soundcloud = {
}
};
// spotify
tarteaucitron.services.spotify = {
"key": "spotify",
"type": "video",
"name": "Spotify",
"uri": "https://www.spotify.com/us/legal/privacy-policy/",
"needConsent": true,
"cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
"js": function () {
"use strict";
tarteaucitron.fallback(['spotify_player'], function (x) {
var spotify_id = x.getAttribute("spotifyID"),
spotify_width = x.getAttribute("width"),
frame_width = 'width=',
spotify_height = x.getAttribute("height"),
frame_height = 'height=',
spotify_frame;
if (spotify_id === undefined) {
return "";
}
if (spotify_width !== undefined) {
frame_width += '"' + spotify_width + '" ';
} else {
frame_width += '"" ';
}
if (spotify_height !== undefined) {
frame_height += '"' + spotify_height + '" ';
} else {
frame_height += '"" ';
}
spotify_frame = '<iframe src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
return spotify_frame;
});
},
"fallback": function () {
"use strict";
var id = 'spotify';
tarteaucitron.fallback(['spotify_player'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// statcounter
tarteaucitron.services.statcounter = {
"key": "statcounter",
@ -2575,6 +2978,7 @@ tarteaucitron.services.atinternet = {
"name": "AT Internet (privacy by design)",
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
"needConsent": false,
"safeanalytic": true,
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
"js": function () {
"use strict";
@ -2584,12 +2988,106 @@ tarteaucitron.services.atinternet = {
tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
var tag = new ATInternet.Tracker.Tag();
window.tag = new ATInternet.Tracker.Tag();
if (typeof tarteaucitron.user.atMore === 'function') {
tarteaucitron.user.atMore();
}
})
if (typeof window.tag.privacy !== 'undefined') {
document.getElementById('atinternetLine').style.display = 'none';
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
window.tag.privacy.setVisitorMode('cnil', 'exempt');
}
tarteaucitron.addClickEventToElement(document.getElementById('atinternetDenied'), function () {
tarteaucitron.launch['atinternetoptout'] = false;
tarteaucitron.launch['atinternetoptin'] = false;
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
});
tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptoutDenied'), function () {
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
window.tag.privacy.setVisitorMode('cnil', 'exempt');
}
});
tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptinDenied'), function () {
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
window.tag.privacy.setVisitorMode('cnil', 'exempt');
}
});
}
setTimeout(function() {
tag.page.send();
}, 70);
});
}
};
// AT Internet (optin)
tarteaucitron.services.atinternetoptin = {
"key": "atinternetoptin",
"type": "analytic",
"name": "AT Internet",
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
"needConsent": true,
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
"js": function () {
"use strict";
tarteaucitron.launch['atinternetoptout'] = false;
setTimeout(function() {
tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
}, 50);
setTimeout(function() {
if (typeof window.tag.privacy !== 'undefined') {
window.tag.privacy.setVisitorOptin();
}
}, 60);
window.tarteaucitronHackNoSwitch = true;
setTimeout(function() {window.tarteaucitronHackNoSwitch = false;}, 200);
}
};
// AT Internet (optout)
tarteaucitron.services.atinternetoptout = {
"key": "atinternetoptout",
"type": "analytic",
"name": "AT Internet [minimal]",
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
"needConsent": true,
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
"js": function () {
"use strict";
// hack accept all
if (window.tarteaucitronHackNoSwitch) {
setTimeout(function() {
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
}, 60);
return;
}
tarteaucitron.launch['atinternetoptin'] = false;
setTimeout(function() {
tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
}, 50);
setTimeout(function() {
if (typeof window.tag.privacy !== 'undefined') {
window.tag.privacy.setVisitorOptout();
}
}, 60);
}
};
@ -3405,4 +3903,3 @@ tarteaucitron.services.woopra = {
woopra.track();
}
};

@ -1,7 +1,7 @@
<paquet
prefix="tarteaucitron"
categorie="communication"
version="1.2.4"
version="1.2.5"
etat="stable"
compatibilite="[3.1.0;3.3.*]"
logo="prive/themes/spip/images/tarteaucitron-64.png"

Loading…
Cancel
Save