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