From 06cbfb4a5dc2a2f7e803f809b795235d80c4bbc7 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 3 Mar 2021 17:19:14 +0100 Subject: [PATCH] Add podCloud --- tarteaucitron.services.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ab0838a..92adb8f 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -59,6 +59,35 @@ tarteaucitron.services.helloasso = { } }; +// 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 ''; + }); + }, + "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); + }); + } +}; + // amplitude tarteaucitron.services.amplitude = { "key": "amplitude",