|
@@ -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 '<div style="position: relative; padding-bottom: 109.00%; padding-top: 0; height: 0;"><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" title="' + frame_title + '" src="https://view.genial.ly/' + geniallyid + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe></div>';
|
|
|
+ });
|
|
|
+ },
|
|
|
+ "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",
|