Merge pull request #430 from nstCactus/feature/service-faciliti
✨ Add Facil'ITI service
This commit is contained in:
commit
43d3e3099b
|
|
@ -1699,7 +1699,7 @@ tarteaucitron.services.rumbletalk = {
|
||||||
var width = tarteaucitron.getElemWidth(x),
|
var width = tarteaucitron.getElemWidth(x),
|
||||||
height = tarteaucitron.getElemHeight(x),
|
height = tarteaucitron.getElemHeight(x),
|
||||||
id = x.getAttribute("data-id");
|
id = x.getAttribute("data-id");
|
||||||
|
|
||||||
return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
|
return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -1709,7 +1709,7 @@ tarteaucitron.services.rumbletalk = {
|
||||||
tarteaucitron.fallback(['rumbletalk'], function (elem) {
|
tarteaucitron.fallback(['rumbletalk'], function (elem) {
|
||||||
elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
|
elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
|
||||||
elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
|
elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
|
||||||
|
|
||||||
return tarteaucitron.engage(id);
|
return tarteaucitron.engage(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -3005,6 +3005,29 @@ tarteaucitron.services.youtubeapi = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 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);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// userlike
|
// userlike
|
||||||
tarteaucitron.services.userlike = {
|
tarteaucitron.services.userlike = {
|
||||||
"key": "userlike",
|
"key": "userlike",
|
||||||
|
|
@ -3021,3 +3044,4 @@ tarteaucitron.services.userlike = {
|
||||||
tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
|
tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue