From fcba3b094e7c0dca70b75d42b4dadc0ea6333e15 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 13 Dec 2021 18:03:07 +0100 Subject: [PATCH] Fix #826 --- tarteaucitron.services.js | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ac41f75..0bd653b 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4893,3 +4893,62 @@ tarteaucitron.services.studizz = { } }; +// meteofrance +tarteaucitron.services.meteofrance = { + "key": "meteofrance", + "type": "api", + "name": "Météo France", + "uri": "https://meteofrance.com/politique-de-confidentialite", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['tac_meteofrance'], function (x) { + var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Météo France iframe'), + width = x.getAttribute("width"), + height = x.getAttribute("height"), + insee = x.getAttribute("data-insee"), + allowfullscreen = x.getAttribute("allowfullscreen"); + + return ''; + }); + }, + "fallback": function () { + "use strict"; + var id = 'meteofrance'; + tarteaucitron.fallback(['tac_meteofrance'], function (elem) { + elem.style.width = elem.getAttribute('width') + 'px'; + elem.style.height = elem.getAttribute('height') + 'px'; + return tarteaucitron.engage(id); + }); + } +}; + +// m6meteo +tarteaucitron.services.m6meteo = { + "key": "m6meteo", + "type": "api", + "name": "M6 Météo", + "uri": "https://gdpr.m6tech.net/charte-confidentialite-m6-web-meteocity.pdf", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.fallback(['tac_m6meteo'], function (x) { + var id = x.getAttribute("data-id"); + + tarteaucitron.getScript('https://www.meteocity.com/widget/js/'+id); + + return '
'; + }); + }, + "fallback": function () { + "use strict"; + var id = 'm6meteo'; + tarteaucitron.fallback(['tac_m6meteo'], function (elem) { + + return tarteaucitron.engage(id); + }); + } +}; +