Selaa lähdekoodia

Add Kwanko Fix #993

Amauri CHAMPEAUX 2 vuotta sitten
vanhempi
commit
7e7e0757cf
1 muutettua tiedostoa jossa 25 lisäystä ja 0 poistoa
  1. 25 0
      tarteaucitron.services.js

+ 25 - 0
tarteaucitron.services.js

@@ -32,6 +32,31 @@ tarteaucitron.services.iframe = {
     }
 };
 
+// kwanko
+tarteaucitron.services.kwanko = {
+    "key": "kwanko",
+    "type": "ads",
+    "name": "Kwanko",
+    "uri": "https://www.kwanko.com/fr/rgpd/politique-gestion-donnees/",
+    "needConsent": true,
+    "cookies": [],
+    "js": function () {
+        "use strict";
+        tarteaucitron.fallback(['tac_kwanko'], function (x) {
+            var mclic = x.getAttribute("data-mclic");
+
+            return '<img src="https://action.metaffiliation.com/trk.php?mclic=' + mclic + '" width="1" height="1" border="0" />';
+        });
+    },
+    "fallback": function () {
+        "use strict";
+        var id = 'kwanko';
+        tarteaucitron.fallback(['tac_kwanko'], function (elem) {
+            return tarteaucitron.engage(id);
+        });
+    }
+};
+
 // trustpilot
 tarteaucitron.services.trustpilot = {
     "key": "trustpilot",