diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 5c120a6..2cec354 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1871,6 +1871,38 @@ tarteaucitron.services.firebase = { } }; +// genially +tarteaucitron.services.genially = { + "key": "genially", + "type": "api", + "name": "genially", + "uri": "https://www.genial.ly/cookies", + "needConsent": true, + "cookies": ['_gat', '_ga', '_gid'], + "js": function () { + "use strict"; + + tarteaucitron.fallback(['tac_genially'], function (x) { + var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'genially iframe'), + width = x.getAttribute("width"), + height = x.getAttribute("height"), + geniallyid = x.getAttribute("geniallyid"), + allowfullscreen= x.getAttribute("allowfullscreen"); + + return '
'; + }); + }, + "fallback": function () { + "use strict"; + var id = 'genially'; + tarteaucitron.fallback(['tac_genially'], function (elem) { + elem.style.width = elem.getAttribute('width') + 'px'; + elem.style.height = elem.getAttribute('height') + 'px'; + return tarteaucitron.engage(id); + }); + } +}; + // google maps tarteaucitron.services.googlemaps = { "key": "googlemaps",