✨ Add Facil'ITI service
This commit is contained in:
parent
88af745341
commit
9aa2531700
|
|
@ -3004,3 +3004,27 @@ tarteaucitron.services.youtubeapi = {
|
||||||
tarteaucitron.addScript('https://www.youtube.com/player_api');
|
tarteaucitron.addScript('https://www.youtube.com/player_api');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Facil'ITI
|
||||||
|
tarteaucitron.services.faciliti = {
|
||||||
|
"key": "faciliti",
|
||||||
|
"type": "other",
|
||||||
|
"name": "Facil'ITI",
|
||||||
|
"uri": "https://ws.facil-iti.com/mentions-legales.html",
|
||||||
|
"needConsent": true,
|
||||||
|
"cookies": ['FACIL_ITI_LS'],
|
||||||
|
"js": function () {
|
||||||
|
"use strict";
|
||||||
|
if (tarteaucitron.user.facilitiID === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
(function(w, d, s, f) {
|
||||||
|
w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
|
||||||
|
var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
|
||||||
|
l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
|
||||||
|
}(window, document, 'script', 'FACIL_ITI'));
|
||||||
|
FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue