tarteaucitron.services.js 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr, PCWidget*/
  2. /*jslint regexp: true, nomen: true*/
  3. // addthis
  4. tarteaucitron.services.addthis = {
  5. "key": "addthis",
  6. "type": "social",
  7. "name": "AddThis",
  8. "uri": "http://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  9. "needConsent": true,
  10. "cookies": ['__atuvc', '__atuvs'],
  11. "js": function () {
  12. "use strict";
  13. if (tarteaucitron.user.addthisPubId === undefined) {
  14. return;
  15. }
  16. if (tarteaucitron.isAjax === true) {
  17. window.addthis = null;
  18. window._adr = null;
  19. window._atc = null;
  20. window._atd = null;
  21. window._ate = null;
  22. window._atr = null;
  23. window._atw = null;
  24. }
  25. tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
  26. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  27. },
  28. "fallback": function () {
  29. "use strict";
  30. var id = 'addthis';
  31. tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
  32. }
  33. };
  34. // addtoanyfeed
  35. tarteaucitron.services.addtoanyfeed = {
  36. "key": "addtoanyfeed",
  37. "type": "social",
  38. "name": "AddToAny (feed)",
  39. "uri": "https://www.addtoany.com/privacy",
  40. "needConsent": true,
  41. "cookies": [],
  42. "js": function () {
  43. "use strict";
  44. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  45. return;
  46. }
  47. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  48. window.a2a_config = window.a2a_config || {};
  49. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  50. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  51. },
  52. "fallback": function () {
  53. "use strict";
  54. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  55. }
  56. };
  57. // addtoanyshare
  58. tarteaucitron.services.addtoanyshare = {
  59. "key": "addtoanyshare",
  60. "type": "social",
  61. "name": "AddToAny (share)",
  62. "uri": "https://www.addtoany.com/privacy",
  63. "needConsent": true,
  64. "cookies": [],
  65. "js": function () {
  66. "use strict";
  67. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  68. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  69. },
  70. "fallback": function () {
  71. "use strict";
  72. var id = 'addtoanyshare';
  73. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  74. }
  75. };
  76. // alexa
  77. tarteaucitron.services.alexa = {
  78. "key": "alexa",
  79. "type": "analytic",
  80. "name": "Alexa",
  81. "uri": "http://www.alexa.com/help/privacy",
  82. "needConsent": true,
  83. "cookies": ['__asc', '__auc'],
  84. "js": function () {
  85. "use strict";
  86. if (tarteaucitron.user.alexaAccountID === undefined) {
  87. return;
  88. }
  89. window._atrk_opts = {
  90. atrk_acct: tarteaucitron.user.alexaAccountID,
  91. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  92. dynamic: true
  93. };
  94. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  95. }
  96. };
  97. // amazon
  98. tarteaucitron.services.amazon = {
  99. "key": "amazon",
  100. "type": "ads",
  101. "name": "Amazon",
  102. "uri": "http://www.amazon.fr/gp/help/customer/display.html?ie=UTF8&*Version*=1&*entries*=0&nodeId=201149360",
  103. "needConsent": true,
  104. "cookies": [],
  105. "js": function () {
  106. "use strict";
  107. tarteaucitron.fallback(['amazon_product'], function (x) {
  108. var amazonId = x.getAttribute("amazonid"),
  109. productId = x.getAttribute("productid"),
  110. url = '//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=' + tarteaucitron.getLanguage().toUpperCase() + '&source=ss&ref=ss_til&ad_type=product_link&tracking_id=' + amazonId + '&marketplace=amazon&region=' + tarteaucitron.getLanguage().toUpperCase() + '&placement=' + productId + '&asins=' + productId + '&show_border=true&link_opens_in_new_window=true',
  111. iframe = '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="' + url + '"></iframe>';
  112. return iframe;
  113. });
  114. },
  115. "fallback": function () {
  116. "use strict";
  117. var id = 'amazon';
  118. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  119. }
  120. };
  121. // calameo
  122. tarteaucitron.services.calameo = {
  123. "key": "calameo",
  124. "type": "video",
  125. "name": "Calameo",
  126. "uri": "http://fr.calameo.com/privacy",
  127. "needConsent": true,
  128. "cookies": [],
  129. "js": function () {
  130. "use strict";
  131. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  132. var id = x.getAttribute("data-id"),
  133. width = x.getAttribute("width"),
  134. height = x.getAttribute("height"),
  135. url = '//v.calameo.com/?bkcode=' + id;
  136. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  137. });
  138. },
  139. "fallback": function () {
  140. "use strict";
  141. var id = 'calameo';
  142. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  143. elem.style.width = elem.getAttribute('width') + 'px';
  144. elem.style.height = elem.getAttribute('height') + 'px';
  145. return tarteaucitron.engage(id);
  146. });
  147. }
  148. };
  149. // clicky
  150. tarteaucitron.services.clicky = {
  151. "key": "clicky",
  152. "type": "analytic",
  153. "name": "Clicky",
  154. "uri": "https://clicky.com/terms",
  155. "needConsent": true,
  156. "cookies": ['_jsuid', '_eventqueue', '_referrer_og', '_utm_og', '_first_pageview', 'clicky_olark', 'no_trackyy_' + tarteaucitron.user.clickyId, 'unpoco_' + tarteaucitron.user.clickyId, 'heatmaps_g2g_' + tarteaucitron.user.clickyId],
  157. "js": function () {
  158. "use strict";
  159. if (tarteaucitron.user.clickyId === undefined) {
  160. return;
  161. }
  162. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  163. if (typeof clicky.init === 'function') {
  164. clicky.init(tarteaucitron.user.clickyId);
  165. }
  166. if (typeof tarteaucitron.user.clickyMore === 'function') {
  167. tarteaucitron.user.clickyMore();
  168. }
  169. });
  170. }
  171. };
  172. // clicmanager
  173. tarteaucitron.services.clicmanager = {
  174. "key": "clicmanager",
  175. "type": "ads",
  176. "name": "Clicmanager",
  177. "uri": "http://www.clicmanager.fr/infos_legales.php",
  178. "needConsent": true,
  179. "cookies": [],
  180. "js": function () {
  181. "use strict";
  182. var uniqIds = [],
  183. i,
  184. uri;
  185. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  186. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  187. uniqIds.push(uniqId);
  188. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  189. });
  190. for (i = 0; i < uniqIds.length; i += 1) {
  191. uri = '//ads.clicmanager.fr/exe.php?';
  192. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  193. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  194. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  195. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  196. }
  197. },
  198. "fallback": function () {
  199. "use strict";
  200. var id = 'clicmanager';
  201. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  202. }
  203. };
  204. // crazyegg
  205. tarteaucitron.services.crazyegg = {
  206. "key": "crazyegg",
  207. "type": "analytic",
  208. "name": "Crazy Egg",
  209. "uri": "https://www.crazyegg.com/privacy",
  210. "needConsent": true,
  211. "cookies": [],
  212. "js": function () {
  213. "use strict";
  214. if (tarteaucitron.user.crazyeggId === undefined) {
  215. return;
  216. }
  217. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  218. }
  219. };
  220. // criteo
  221. tarteaucitron.services.criteo = {
  222. "key": "criteo",
  223. "type": "ads",
  224. "name": "Criteo",
  225. "uri": "http://www.criteo.com/privacy/",
  226. "needConsent": true,
  227. "cookies": [],
  228. "js": function () {
  229. "use strict";
  230. document.MAX_ct0 = '';
  231. var uniqIds = [],
  232. i,
  233. uri;
  234. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  235. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  236. uniqIds.push(uniqId);
  237. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  238. });
  239. for (i = 0; i < uniqIds.length; i += 1) {
  240. uri = '//cas.criteo.com/delivery/ajs.php?';
  241. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  242. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  243. uri += '&loc=' + encodeURI(window.location);
  244. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  245. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  246. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  247. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  248. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  249. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  250. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  251. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  252. }
  253. },
  254. "fallback": function () {
  255. "use strict";
  256. var id = 'criteo';
  257. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  258. }
  259. };
  260. // dailymotion
  261. tarteaucitron.services.dailymotion = {
  262. "key": "dailymotion",
  263. "type": "video",
  264. "name": "Dailymotion",
  265. "uri": "http://www.dailymotion.com/legal/privacy",
  266. "needConsent": true,
  267. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  268. "js": function () {
  269. "use strict";
  270. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  271. var video_id = x.getAttribute("videoID"),
  272. video_width = x.getAttribute("width"),
  273. frame_width = 'width=',
  274. video_height = x.getAttribute("height"),
  275. frame_height = 'height=',
  276. video_frame,
  277. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  278. if (video_id === undefined) {
  279. return "";
  280. }
  281. if (video_width !== undefined) {
  282. frame_width += '"' + video_width + '" ';
  283. } else {
  284. frame_width += '"" ';
  285. }
  286. if (video_height !== undefined) {
  287. frame_height += '"' + video_height + '" ';
  288. } else {
  289. frame_height += '"" ';
  290. }
  291. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  292. return video_frame;
  293. });
  294. },
  295. "fallback": function () {
  296. "use strict";
  297. var id = 'dailymotion';
  298. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  299. elem.style.width = elem.getAttribute('width') + 'px';
  300. elem.style.height = elem.getAttribute('height') + 'px';
  301. return tarteaucitron.engage(id);
  302. });
  303. }
  304. };
  305. // dating affiliation
  306. tarteaucitron.services.datingaffiliation = {
  307. "key": "datingaffiliation",
  308. "type": "ads",
  309. "name": "Dating Affiliation",
  310. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  311. "needConsent": true,
  312. "cookies": [],
  313. "js": function () {
  314. "use strict";
  315. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  316. var comfrom = x.getAttribute("data-comfrom"),
  317. r = x.getAttribute("data-r"),
  318. p = x.getAttribute("data-p"),
  319. cf0 = x.getAttribute("data-cf0"),
  320. langue = x.getAttribute("data-langue"),
  321. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  322. cf2 = x.getAttribute("data-cf2"),
  323. cfsa2 = x.getAttribute("data-cfsa2"),
  324. width = x.getAttribute("width"),
  325. height = x.getAttribute("height"),
  326. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  327. return '<iframe src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
  328. });
  329. },
  330. "fallback": function () {
  331. "use strict";
  332. var id = 'datingaffiliation';
  333. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  334. elem.style.width = elem.getAttribute('width') + 'px';
  335. elem.style.height = elem.getAttribute('height') + 'px';
  336. return tarteaucitron.engage(id);
  337. });
  338. }
  339. };
  340. // dating affiliation popup
  341. tarteaucitron.services.datingaffiliationpopup = {
  342. "key": "datingaffiliationpopup",
  343. "type": "ads",
  344. "name": "Dating Affiliation (Pop Up)",
  345. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  346. "needConsent": true,
  347. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  348. "js": function () {
  349. "use strict";
  350. var uniqIds = [],
  351. i,
  352. uri;
  353. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  354. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  355. uniqIds.push(uniqId);
  356. return '<div id="' + uniqId + '" uri="' + x.getAttribute('uri') + '" comfrom="' + x.getAttribute('comfrom') + '" promo="' + x.getAttribute('promo') + '" productid="' + x.getAttribute('productid') + '" submitconfig="' + x.getAttribute('submitconfig') + '" ur="' + x.getAttribute('ur') + '" brand="' + x.getAttribute('brand') + '" lang="' + x.getAttribute('lang') + '" cf0="' + x.getAttribute('cf0') + '" cf2="' + x.getAttribute('cf2') + '" subid1="' + x.getAttribute('subid1') + '" cfsa2="' + x.getAttribute('cfsa2') + '" subid2="' + x.getAttribute('subid2') + '" nicheid="' + x.getAttribute('nicheid') + '" degreid="' + x.getAttribute('degreid') + '" bt="' + x.getAttribute('bt') + '" vis="' + x.getAttribute('vis') + '" hid="' + x.getAttribute('hid') + '" snd="' + x.getAttribute('snd') + '" aabd="' + x.getAttribute('aabd') + '" aabs="' + x.getAttribute('aabs') + '"></div>';
  357. });
  358. for (i = 0; i < uniqIds.length; i += 1) {
  359. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  360. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  361. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  362. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  363. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  364. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  365. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  366. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  367. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  368. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  369. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  370. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  371. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  372. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  373. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  374. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  375. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  376. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  377. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  378. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  379. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  380. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  381. }
  382. },
  383. "fallback": function () {
  384. "use strict";
  385. var id = 'datingaffiliationpopup';
  386. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  387. }
  388. };
  389. // disqus
  390. tarteaucitron.services.disqus = {
  391. "key": "disqus",
  392. "type": "comment",
  393. "name": "Disqus",
  394. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  395. "needConsent": true,
  396. "cookies": [],
  397. "js": function () {
  398. "use strict";
  399. if (tarteaucitron.user.disqusShortname === undefined) {
  400. return;
  401. }
  402. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  403. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  404. },
  405. "fallback": function () {
  406. "use strict";
  407. var id = 'disqus';
  408. if (document.getElementById('disqus_thread')) {
  409. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  410. }
  411. }
  412. };
  413. // ekomi
  414. tarteaucitron.services.ekomi = {
  415. "key": "ekomi",
  416. "type": "social",
  417. "name": "eKomi",
  418. "uri": "http://www.ekomi-us.com/us/privacy/",
  419. "needConsent": true,
  420. "cookies": [],
  421. "js": function () {
  422. "use strict";
  423. if (tarteaucitron.user.ekomiCertId === undefined) {
  424. return;
  425. }
  426. window.eKomiIntegrationConfig = [
  427. {certId: tarteaucitron.user.ekomiCertId}
  428. ];
  429. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  430. }
  431. };
  432. // etracker
  433. tarteaucitron.services.etracker = {
  434. "key": "etracker",
  435. "type": "analytic",
  436. "name": "eTracker",
  437. "uri": "https://www.etracker.com/en/data-protection.html",
  438. "needConsent": true,
  439. "cookies": [],
  440. "js": function () {
  441. "use strict";
  442. if (tarteaucitron.user.etracker === undefined) {
  443. return;
  444. }
  445. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  446. }
  447. };
  448. // facebook
  449. tarteaucitron.services.facebook = {
  450. "key": "facebook",
  451. "type": "social",
  452. "name": "Facebook",
  453. "uri": "https://www.facebook.com/help/cookies/",
  454. "needConsent": true,
  455. "cookies": [],
  456. "js": function () {
  457. "use strict";
  458. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  459. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  460. if (tarteaucitron.isAjax === true) {
  461. if (typeof FB !== "undefined") {
  462. FB.XFBML.parse();
  463. }
  464. }
  465. },
  466. "fallback": function () {
  467. "use strict";
  468. var id = 'facebook';
  469. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  470. }
  471. };
  472. // facebooklikebox
  473. tarteaucitron.services.facebooklikebox = {
  474. "key": "facebooklikebox",
  475. "type": "social",
  476. "name": "Facebook (like box)",
  477. "uri": "https://www.facebook.com/help/cookies/",
  478. "needConsent": true,
  479. "cookies": [],
  480. "js": function () {
  481. "use strict";
  482. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  483. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  484. if (tarteaucitron.isAjax === true) {
  485. if (typeof FB !== "undefined") {
  486. FB.XFBML.parse();
  487. }
  488. }
  489. },
  490. "fallback": function () {
  491. "use strict";
  492. var id = 'facebooklikebox';
  493. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  494. }
  495. };
  496. // facebookcomment
  497. tarteaucitron.services.facebookcomment = {
  498. "key": "facebookcomment",
  499. "type": "comment",
  500. "name": "Facebook (commentaire)",
  501. "uri": "https://www.facebook.com/help/cookies/",
  502. "needConsent": true,
  503. "cookies": [],
  504. "js": function () {
  505. "use strict";
  506. tarteaucitron.fallback(['fb-comments'], '');
  507. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  508. if (tarteaucitron.isAjax === true) {
  509. if (typeof FB !== "undefined") {
  510. FB.XFBML.parse();
  511. }
  512. }
  513. },
  514. "fallback": function () {
  515. "use strict";
  516. var id = 'facebookcomment';
  517. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  518. }
  519. };
  520. // ferank
  521. tarteaucitron.services.ferank = {
  522. "key": "ferank",
  523. "type": "analytic",
  524. "name": "FERank",
  525. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  526. "needConsent": false,
  527. "cookies": [],
  528. "js": function () {
  529. "use strict";
  530. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  531. if (typeof tarteaucitron.user.ferankMore === 'function') {
  532. tarteaucitron.user.ferankMore();
  533. }
  534. });
  535. }
  536. };
  537. // ferank pub
  538. tarteaucitron.services.ferankpub = {
  539. "key": "ferankpub",
  540. "type": "ads",
  541. "name": "FERank (pub)",
  542. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  543. "needConsent": false,
  544. "cookies": [],
  545. "js": function () {
  546. "use strict";
  547. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  548. if (tarteaucitron.isAjax === true) {
  549. if (typeof ferankReady === 'function') {
  550. ferankReady();
  551. }
  552. }
  553. },
  554. "fallback": function () {
  555. "use strict";
  556. var id = 'ferankpub';
  557. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  558. }
  559. };
  560. // get+
  561. tarteaucitron.services.getplus = {
  562. "key": "getplus",
  563. "type": "analytic",
  564. "name": "Get+",
  565. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  566. "needConsent": true,
  567. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  568. "js": function () {
  569. "use strict";
  570. if (tarteaucitron.user.getplusId === undefined) {
  571. return;
  572. }
  573. window.webleads_site_ids = window.webleads_site_ids || [];
  574. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  575. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  576. }
  577. };
  578. // google+
  579. tarteaucitron.services.gplus = {
  580. "key": "gplus",
  581. "type": "social",
  582. "name": "Google+",
  583. "uri": "http://www.google.fr/intl/policies/privacy/",
  584. "needConsent": true,
  585. "cookies": [],
  586. "js": function () {
  587. "use strict";
  588. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  589. },
  590. "fallback": function () {
  591. "use strict";
  592. var id = 'gplus';
  593. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  594. }
  595. };
  596. // google+ badge
  597. tarteaucitron.services.gplusbadge = {
  598. "key": "gplusbadge",
  599. "type": "social",
  600. "name": "Google+ (badge)",
  601. "uri": "http://www.google.fr/intl/policies/privacy/",
  602. "needConsent": true,
  603. "cookies": [],
  604. "js": function () {
  605. "use strict";
  606. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  607. },
  608. "fallback": function () {
  609. "use strict";
  610. var id = 'gplusbadge';
  611. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  612. }
  613. };
  614. // google adsense
  615. tarteaucitron.services.adsense = {
  616. "key": "adsense",
  617. "type": "ads",
  618. "name": "Google Adsense",
  619. "uri": "http://www.google.com/ads/preferences/",
  620. "needConsent": true,
  621. "cookies": [],
  622. "js": function () {
  623. "use strict";
  624. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  625. },
  626. "fallback": function () {
  627. "use strict";
  628. var id = 'adsense';
  629. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  630. }
  631. };
  632. // google partners badge
  633. tarteaucitron.services.googlepartners = {
  634. "key": "googlepartners",
  635. "type": "ads",
  636. "name": "Google Partners Badge",
  637. "uri": "http://www.google.com/ads/preferences/",
  638. "needConsent": true,
  639. "cookies": [],
  640. "js": function () {
  641. "use strict";
  642. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  643. },
  644. "fallback": function () {
  645. "use strict";
  646. var id = 'googlepartners';
  647. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  648. }
  649. };
  650. // google adsense search (form)
  651. tarteaucitron.services.adsensesearchform = {
  652. "key": "adsensesearchform",
  653. "type": "ads",
  654. "name": "Google Adsense Search (form)",
  655. "uri": "http://www.google.com/ads/preferences/",
  656. "needConsent": true,
  657. "cookies": [],
  658. "js": function () {
  659. "use strict";
  660. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  661. }
  662. };
  663. // google adsense search (result)
  664. tarteaucitron.services.adsensesearchresult = {
  665. "key": "adsensesearchresult",
  666. "type": "ads",
  667. "name": "Google Adsense Search (result)",
  668. "uri": "http://www.google.com/ads/preferences/",
  669. "needConsent": true,
  670. "cookies": [],
  671. "js": function () {
  672. "use strict";
  673. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  674. return;
  675. }
  676. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  677. },
  678. "fallback": function () {
  679. "use strict";
  680. var id = 'adsensesearchresult';
  681. if (document.getElementById('gcse_searchresults')) {
  682. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  683. }
  684. }
  685. };
  686. // googleadwordsconversion
  687. tarteaucitron.services.googleadwordsconversion = {
  688. "key": "googleadwordsconversion",
  689. "type": "ads",
  690. "name": "Google Adwords (conversion)",
  691. "uri": "https://www.google.com/settings/ads",
  692. "needConsent": true,
  693. "cookies": [],
  694. "js": function () {
  695. "use strict";
  696. if (tarteaucitron.user.adwordsconversionId === undefined) {
  697. return;
  698. }
  699. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  700. window.google_trackConversion({
  701. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  702. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  703. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  704. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  705. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  706. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  707. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  708. google_custom_params: {
  709. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  710. parameter2: tarteaucitron.user.adwordsconversionCustom2
  711. }
  712. });
  713. });
  714. }
  715. };
  716. // googleadwordsremarketing
  717. tarteaucitron.services.googleadwordsremarketing = {
  718. "key": "googleadwordsremarketing",
  719. "type": "ads",
  720. "name": "Google Adwords (remarketing)",
  721. "uri": "https://www.google.com/settings/ads",
  722. "needConsent": true,
  723. "cookies": [],
  724. "js": function () {
  725. "use strict";
  726. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  727. return;
  728. }
  729. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  730. window.google_trackConversion({
  731. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  732. google_remarketing_only: true
  733. });
  734. });
  735. }
  736. };
  737. // google analytics (old)
  738. tarteaucitron.services.gajs = {
  739. "key": "gajs",
  740. "type": "analytic",
  741. "name": "Google Analytics (ga.js)",
  742. "uri": "https://support.google.com/analytics/answer/6004245",
  743. "needConsent": true,
  744. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  745. "js": function () {
  746. "use strict";
  747. window._gaq = window._gaq || [];
  748. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  749. window._gaq.push(['_trackPageview']);
  750. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  751. if (typeof tarteaucitron.user.gajsMore === 'function') {
  752. tarteaucitron.user.gajsMore();
  753. }
  754. });
  755. }
  756. };
  757. // google analytics
  758. tarteaucitron.services.analytics = {
  759. "key": "analytics",
  760. "type": "analytic",
  761. "name": "Google Analytics (universal)",
  762. "uri": "https://support.google.com/analytics/answer/6004245",
  763. "needConsent": true,
  764. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  765. "js": function () {
  766. "use strict";
  767. window.GoogleAnalyticsObject = 'ga';
  768. window.ga = window.ga || function () {
  769. window.ga.q = window.ga.q || [];
  770. window.ga.q.push(arguments);
  771. };
  772. window.ga.l = new Date();
  773. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  774. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  775. ga('send', 'pageview');
  776. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  777. tarteaucitron.user.analyticsMore();
  778. }
  779. });
  780. }
  781. };
  782. // google analytics
  783. tarteaucitron.services.gtag = {
  784. "key": "gtag",
  785. "type": "analytic",
  786. "name": "Google Analytics (gtag.js)",
  787. "uri": "https://support.google.com/analytics/answer/6004245",
  788. "needConsent": true,
  789. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  790. "js": function () {
  791. "use strict";
  792. window.dataLayer = window.dataLayer || [];
  793. tarteaucitron.addScript('//www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  794. function gtag(){dataLayer.push(arguments);}
  795. gtag('js', new Date());
  796. gtag('config', tarteaucitron.user.gtagUa);
  797. if (typeof tarteaucitron.user.gtagMore === 'function') {
  798. tarteaucitron.user.gtagMore();
  799. }
  800. });
  801. }
  802. };
  803. // google maps
  804. tarteaucitron.services.googlemaps = {
  805. "key": "googlemaps",
  806. "type": "api",
  807. "name": "Google Maps",
  808. "uri": "http://www.google.com/ads/preferences/",
  809. "needConsent": true,
  810. "cookies": [],
  811. "js": function () {
  812. "use strict";
  813. var mapOptions,
  814. map,
  815. uniqIds = [],
  816. i;
  817. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback=tac_googlemaps_callback');
  818. window.tac_googlemaps_callback = function () {
  819. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  820. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  821. uniqIds.push(uniqId);
  822. return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>';
  823. });
  824. for (i = 0; i < uniqIds.length; i += 1) {
  825. mapOptions = {
  826. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  827. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  828. };
  829. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  830. }
  831. };
  832. },
  833. "fallback": function () {
  834. "use strict";
  835. var id = 'googlemaps';
  836. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  837. }
  838. };
  839. // google tag manager
  840. tarteaucitron.services.googletagmanager = {
  841. "key": "googletagmanager",
  842. "type": "api",
  843. "name": "Google Tag Manager",
  844. "uri": "http://www.google.com/ads/preferences/",
  845. "needConsent": true,
  846. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  847. "js": function () {
  848. "use strict";
  849. if (tarteaucitron.user.googletagmanagerId === undefined) {
  850. return;
  851. }
  852. window.dataLayer = window.dataLayer || [];
  853. window.dataLayer.push({
  854. 'gtm.start': new Date().getTime(),
  855. event: 'gtm.js'
  856. });
  857. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  858. }
  859. };
  860. // jsapi
  861. tarteaucitron.services.jsapi = {
  862. "key": "jsapi",
  863. "type": "api",
  864. "name": "Google jsapi",
  865. "uri": "http://www.google.com/policies/privacy/",
  866. "needConsent": true,
  867. "cookies": [],
  868. "js": function () {
  869. "use strict";
  870. tarteaucitron.addScript('//www.google.com/jsapi');
  871. }
  872. };
  873. // linkedin
  874. tarteaucitron.services.linkedin = {
  875. "key": "linkedin",
  876. "type": "social",
  877. "name": "Linkedin",
  878. "uri": "https://www.linkedin.com/legal/cookie_policy",
  879. "needConsent": true,
  880. "cookies": [],
  881. "js": function () {
  882. "use strict";
  883. tarteaucitron.fallback(['tacLinkedin'], '');
  884. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  885. if (tarteaucitron.isAjax === true) {
  886. if (typeof IN !== "undefined") {
  887. IN.parse();
  888. }
  889. }
  890. },
  891. "fallback": function () {
  892. "use strict";
  893. var id = 'linkedin';
  894. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  895. }
  896. };
  897. // microsoftcampaignanalytics
  898. tarteaucitron.services.microsoftcampaignanalytics = {
  899. "key": "microsoftcampaignanalytics",
  900. "type": "analytic",
  901. "name": "Microsoft Campaign Analytics",
  902. "uri": "https://www.microsoft.com/fr-fr/privacystatement/Default.aspx",
  903. "needConsent": true,
  904. "cookies": [],
  905. "js": function () {
  906. "use strict";
  907. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  908. return;
  909. }
  910. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  911. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  912. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  913. });
  914. }
  915. };
  916. // pinterest
  917. tarteaucitron.services.pinterest = {
  918. "key": "pinterest",
  919. "type": "social",
  920. "name": "Pinterest",
  921. "uri": "https://about.pinterest.com/privacy-policy",
  922. "needConsent": true,
  923. "cookies": [],
  924. "js": function () {
  925. "use strict";
  926. tarteaucitron.fallback(['tacPinterest'], '');
  927. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  928. },
  929. "fallback": function () {
  930. "use strict";
  931. var id = 'pinterest';
  932. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  933. }
  934. };
  935. // prelinker
  936. tarteaucitron.services.prelinker = {
  937. "key": "prelinker",
  938. "type": "ads",
  939. "name": "Prelinker",
  940. "uri": "http://www.prelinker.com/index/index/cgu/",
  941. "needConsent": true,
  942. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  943. "js": function () {
  944. "use strict";
  945. var uniqIds = [],
  946. i,
  947. uri;
  948. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  949. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  950. uniqIds.push(uniqId);
  951. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  952. });
  953. for (i = 0; i < uniqIds.length; i += 1) {
  954. uri = 'http://promo.easy-dating.org/banner/index?';
  955. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  956. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  957. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  958. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  959. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  960. }
  961. },
  962. "fallback": function () {
  963. "use strict";
  964. var id = 'prelinker';
  965. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  966. }
  967. };
  968. // prezi
  969. tarteaucitron.services.prezi = {
  970. "key": "prezi",
  971. "type": "video",
  972. "name": "Prezi",
  973. "uri": "https://prezi.com/privacy-policy/",
  974. "needConsent": true,
  975. "cookies": [],
  976. "js": function () {
  977. "use strict";
  978. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  979. var id = x.getAttribute("data-id"),
  980. width = x.getAttribute("width"),
  981. height = x.getAttribute("height"),
  982. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  983. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  984. });
  985. },
  986. "fallback": function () {
  987. "use strict";
  988. var id = 'prezi';
  989. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  990. elem.style.width = elem.getAttribute('width') + 'px';
  991. elem.style.height = elem.getAttribute('height') + 'px';
  992. return tarteaucitron.engage(id);
  993. });
  994. }
  995. };
  996. // pubdirecte
  997. tarteaucitron.services.pubdirecte = {
  998. "key": "pubdirecte",
  999. "type": "ads",
  1000. "name": "Pubdirecte",
  1001. "uri": "http://pubdirecte.com/contact.php",
  1002. "needConsent": true,
  1003. "cookies": [],
  1004. "js": function () {
  1005. "use strict";
  1006. var uniqIds = [],
  1007. i,
  1008. uri;
  1009. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1010. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1011. uniqIds.push(uniqId);
  1012. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1013. });
  1014. for (i = 0; i < uniqIds.length; i += 1) {
  1015. uri = '//www.pubdirecte.com/script/banniere.php?';
  1016. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1017. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1018. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1019. }
  1020. },
  1021. "fallback": function () {
  1022. "use strict";
  1023. var id = 'pubdirecte';
  1024. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1025. }
  1026. };
  1027. // purechat
  1028. tarteaucitron.services.purechat = {
  1029. "key": "purechat",
  1030. "type": "support",
  1031. "name": "PureChat",
  1032. "uri": "https://www.purechat.com/privacy",
  1033. "needConsent": true,
  1034. "cookies": [],
  1035. "js": function () {
  1036. "use strict";
  1037. if (tarteaucitron.user.purechatId === undefined) {
  1038. return;
  1039. }
  1040. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1041. try {
  1042. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1043. } catch (e) {}
  1044. });
  1045. }
  1046. };
  1047. // shareaholic
  1048. tarteaucitron.services.shareaholic = {
  1049. "key": "shareaholic",
  1050. "type": "social",
  1051. "name": "Shareaholic",
  1052. "uri": "https://shareaholic.com/privacy/choices",
  1053. "needConsent": true,
  1054. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1055. "js": function () {
  1056. "use strict";
  1057. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1058. return;
  1059. }
  1060. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1061. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1062. try {
  1063. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1064. } catch (e) {}
  1065. });
  1066. },
  1067. "fallback": function () {
  1068. "use strict";
  1069. var id = 'shareaholic';
  1070. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1071. }
  1072. };
  1073. // shareasale
  1074. tarteaucitron.services.shareasale = {
  1075. "key": "shareasale",
  1076. "type": "ads",
  1077. "name": "ShareASale",
  1078. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1079. "needConsent": true,
  1080. "cookies": [],
  1081. "js": function () {
  1082. "use strict";
  1083. var uniqIds = [],
  1084. i,
  1085. uri;
  1086. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1087. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1088. uniqIds.push(uniqId);
  1089. return '<div id="' + uniqId + '" amount="' + x.getAttribute('amount') + '" tracking="' + x.getAttribute('tracking') + '" transtype="' + x.getAttribute('transtype') + '" persale="' + x.getAttribute('persale') + '" perlead="' + x.getAttribute('perlead') + '" perhit="' + x.getAttribute('perhit') + '" merchantID="' + x.getAttribute('merchantID') + '"></div>';
  1090. });
  1091. for (i = 0; i < uniqIds.length; i += 1) {
  1092. uri = 'https://shareasale.com/sale.cfm?';
  1093. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1094. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1095. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1096. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1097. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1098. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1099. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1100. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1101. }
  1102. },
  1103. "fallback": function () {
  1104. "use strict";
  1105. var id = 'shareasale';
  1106. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1107. }
  1108. };
  1109. // sharethis
  1110. tarteaucitron.services.sharethis = {
  1111. "key": "sharethis",
  1112. "type": "social",
  1113. "name": "ShareThis",
  1114. "uri": "http://www.sharethis.com/legal/privacy/",
  1115. "needConsent": true,
  1116. "cookies": ['__unam'],
  1117. "js": function () {
  1118. "use strict";
  1119. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1120. return;
  1121. }
  1122. var switchTo5x = true,
  1123. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1124. tarteaucitron.fallback(['tacSharethis'], '');
  1125. tarteaucitron.addScript(uri, '', function () {
  1126. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1127. });
  1128. if (tarteaucitron.isAjax === true) {
  1129. if (typeof stButtons !== "undefined") {
  1130. stButtons.locateElements();
  1131. }
  1132. }
  1133. },
  1134. "fallback": function () {
  1135. "use strict";
  1136. var id = 'sharethis';
  1137. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1138. }
  1139. };
  1140. // slideshare
  1141. tarteaucitron.services.slideshare = {
  1142. "key": "slideshare",
  1143. "type": "video",
  1144. "name": "SlideShare",
  1145. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1146. "needConsent": true,
  1147. "cookies": [],
  1148. "js": function () {
  1149. "use strict";
  1150. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1151. var id = x.getAttribute("data-id"),
  1152. width = x.getAttribute("width"),
  1153. height = x.getAttribute("height"),
  1154. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1155. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1156. });
  1157. },
  1158. "fallback": function () {
  1159. "use strict";
  1160. var id = 'slideshare';
  1161. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1162. elem.style.width = elem.getAttribute('width') + 'px';
  1163. elem.style.height = elem.getAttribute('height') + 'px';
  1164. return tarteaucitron.engage(id);
  1165. });
  1166. }
  1167. };
  1168. // statcounter
  1169. tarteaucitron.services.statcounter = {
  1170. "key": "statcounter",
  1171. "type": "analytic",
  1172. "name": "StatCounter",
  1173. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1174. "needConsent": true,
  1175. "cookies": ['sc_is_visitor_unique'],
  1176. "js": function () {
  1177. "use strict";
  1178. var uniqIds = [],
  1179. i,
  1180. uri = '//statcounter.com/counter/counter.js';
  1181. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1182. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1183. uniqIds.push(uniqId);
  1184. return '<div id="' + uniqId + '"></div>';
  1185. });
  1186. for (i = 0; i < uniqIds.length; i += 1) {
  1187. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1188. }
  1189. },
  1190. "fallback": function () {
  1191. "use strict";
  1192. var id = 'statcounter';
  1193. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1194. }
  1195. };
  1196. // timelinejs
  1197. tarteaucitron.services.timelinejs = {
  1198. "key": "timelinejs",
  1199. "type": "api",
  1200. "name": "Timeline JS",
  1201. "uri": "http://timeline.knightlab.com/#help",
  1202. "needConsent": true,
  1203. "cookies": [],
  1204. "js": function () {
  1205. "use strict";
  1206. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1207. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1208. width = x.getAttribute("width"),
  1209. height = x.getAttribute("height"),
  1210. lang = x.getAttribute("lang_2_letter"),
  1211. font = x.getAttribute("font"),
  1212. map = x.getAttribute("map"),
  1213. start_at_end = x.getAttribute("start_at_end"),
  1214. hash_bookmark = x.getAttribute("hash_bookmark"),
  1215. start_at_slide = x.getAttribute("start_at_slide"),
  1216. start_zoom = x.getAttribute("start_zoom"),
  1217. url = '//cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=' + spreadsheet_id + '&font=' + font + '&maptype=' + map + '&lang=' + lang + '&start_at_end=' + start_at_end + '&hash_bookmark=' + hash_bookmark + '&start_at_slide=' + start_at_slide + '&start_zoom_adjust=' + start_zoom + '&height=' + height;
  1218. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1219. });
  1220. },
  1221. "fallback": function () {
  1222. "use strict";
  1223. var id = 'timelinejs';
  1224. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1225. elem.style.width = elem.getAttribute('width') + 'px';
  1226. elem.style.height = elem.getAttribute('height') + 'px';
  1227. return tarteaucitron.engage(id);
  1228. });
  1229. }
  1230. };
  1231. // typekit
  1232. tarteaucitron.services.typekit = {
  1233. "key": "typekit",
  1234. "type": "api",
  1235. "name": "Typekit (adobe)",
  1236. "uri": "http://www.adobe.com/fr/privacy.html",
  1237. "needConsent": true,
  1238. "cookies": [],
  1239. "js": function () {
  1240. "use strict";
  1241. if (tarteaucitron.user.typekitId === undefined) {
  1242. return;
  1243. }
  1244. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1245. try {
  1246. Typekit.load();
  1247. } catch (e) {}
  1248. });
  1249. }
  1250. };
  1251. // twenga
  1252. tarteaucitron.services.twenga = {
  1253. "key": "twenga",
  1254. "type": "ads",
  1255. "name": "Twenga",
  1256. "uri": "http://www.twenga.com/privacy.php",
  1257. "needConsent": true,
  1258. "cookies": [],
  1259. "js": function () {
  1260. "use strict";
  1261. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1262. return;
  1263. }
  1264. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1265. }
  1266. };
  1267. // twitter
  1268. tarteaucitron.services.twitter = {
  1269. "key": "twitter",
  1270. "type": "social",
  1271. "name": "Twitter",
  1272. "uri": "https://support.twitter.com/articles/20170514",
  1273. "needConsent": true,
  1274. "cookies": [],
  1275. "js": function () {
  1276. "use strict";
  1277. tarteaucitron.fallback(['tacTwitter'], '');
  1278. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1279. },
  1280. "fallback": function () {
  1281. "use strict";
  1282. var id = 'twitter';
  1283. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1284. }
  1285. };
  1286. // twitter embed
  1287. tarteaucitron.services.twitterembed = {
  1288. "key": "twitterembed",
  1289. "type": "social",
  1290. "name": "Twitter (cards)",
  1291. "uri": "https://support.twitter.com/articles/20170514",
  1292. "needConsent": true,
  1293. "cookies": [],
  1294. "js": function () {
  1295. "use strict";
  1296. var uniqIds = [],
  1297. i,
  1298. e,
  1299. html;
  1300. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1301. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1302. uniqIds.push(uniqId);
  1303. html = '<div id="' + uniqId + '" ';
  1304. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1305. html += 'theme="' + x.getAttribute('theme') + '" ';
  1306. html += 'cards="' + x.getAttribute('cards') + '" ';
  1307. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1308. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1309. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1310. html += '></div>';
  1311. return html;
  1312. });
  1313. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1314. for (i = 0; i < uniqIds.length; i += 1) {
  1315. e = document.getElementById(uniqIds[i]);
  1316. twttr.widgets.createTweet(
  1317. e.getAttribute('tweetid'),
  1318. e,
  1319. {
  1320. theme: e.getAttribute('theme'),
  1321. cards: e.getAttribute('cards'),
  1322. conversation: e.getAttribute('conversation'),
  1323. lang: tarteaucitron.getLanguage(),
  1324. dnt: true,
  1325. width: e.getAttribute('data-width'),
  1326. align: e.getAttribute('data-align')
  1327. }
  1328. );
  1329. }
  1330. });
  1331. },
  1332. "fallback": function () {
  1333. "use strict";
  1334. var id = 'twitterembed';
  1335. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1336. elem.style.width = elem.getAttribute('data-width') + 'px';
  1337. return tarteaucitron.engage(id);
  1338. });
  1339. }
  1340. };
  1341. // twitter timeline
  1342. tarteaucitron.services.twittertimeline = {
  1343. "key": "twittertimeline",
  1344. "type": "social",
  1345. "name": "Twitter (timelines)",
  1346. "uri": "https://support.twitter.com/articles/20170514",
  1347. "needConsent": true,
  1348. "cookies": [],
  1349. "js": function () {
  1350. "use strict";
  1351. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1352. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1353. },
  1354. "fallback": function () {
  1355. "use strict";
  1356. var id = 'twittertimeline';
  1357. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1358. }
  1359. };
  1360. // user voice
  1361. tarteaucitron.services.uservoice = {
  1362. "key": "uservoice",
  1363. "type": "support",
  1364. "name": "UserVoice",
  1365. "uri": "https://www.uservoice.com/privacy/",
  1366. "needConsent": true,
  1367. "cookies": [],
  1368. "js": function () {
  1369. "use strict";
  1370. if (tarteaucitron.user.userVoiceApi === undefined) {
  1371. return;
  1372. }
  1373. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1374. }
  1375. };
  1376. // vimeo
  1377. tarteaucitron.services.vimeo = {
  1378. "key": "vimeo",
  1379. "type": "video",
  1380. "name": "Vimeo",
  1381. "uri": "http://vimeo.com/privacy",
  1382. "needConsent": true,
  1383. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1384. "js": function () {
  1385. "use strict";
  1386. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1387. var video_id = x.getAttribute("videoID"),
  1388. video_width = x.getAttribute("width"),
  1389. frame_width = 'width=',
  1390. video_height = x.getAttribute("height"),
  1391. frame_height = 'height=',
  1392. video_frame;
  1393. if (video_id === undefined) {
  1394. return "";
  1395. }
  1396. if (video_width !== undefined) {
  1397. frame_width += '"' + video_width + '" ';
  1398. } else {
  1399. frame_width += '"" ';
  1400. }
  1401. if (video_height !== undefined) {
  1402. frame_height += '"' + video_height + '" ';
  1403. } else {
  1404. frame_height += '"" ';
  1405. }
  1406. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1407. return video_frame;
  1408. });
  1409. },
  1410. "fallback": function () {
  1411. "use strict";
  1412. var id = 'vimeo';
  1413. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1414. elem.style.width = elem.getAttribute('width') + 'px';
  1415. elem.style.height = elem.getAttribute('height') + 'px';
  1416. return tarteaucitron.engage(id);
  1417. });
  1418. }
  1419. };
  1420. // visualrevenue
  1421. tarteaucitron.services.visualrevenue = {
  1422. "key": "visualrevenue",
  1423. "type": "analytic",
  1424. "name": "VisualRevenue",
  1425. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1426. "needConsent": true,
  1427. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1428. "js": function () {
  1429. "use strict";
  1430. if (tarteaucitron.user.visualrevenueId === undefined) {
  1431. return;
  1432. }
  1433. window._vrq = window._vrq || [];
  1434. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1435. window._vrq.push(['automate', true]);
  1436. window._vrq.push(['track', function () {}]);
  1437. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1438. }
  1439. };
  1440. // vshop
  1441. tarteaucitron.services.vshop = {
  1442. "key": "vshop",
  1443. "type": "ads",
  1444. "name": "vShop",
  1445. "uri": "http://vshop.fr/privacy-policy",
  1446. "needConsent": true,
  1447. "cookies": [],
  1448. "js": function () {
  1449. "use strict";
  1450. tarteaucitron.fallback(['vcashW'], '');
  1451. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1452. },
  1453. "fallback": function () {
  1454. "use strict";
  1455. var id = 'vshop';
  1456. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1457. }
  1458. };
  1459. // wysistat
  1460. tarteaucitron.services.wysistat = {
  1461. "key": "wysistat",
  1462. "type": "analytic",
  1463. "name": "Wysistat",
  1464. "uri": "http://wysistat.net/contact/",
  1465. "needConsent": true,
  1466. "cookies": ['Wysistat'],
  1467. "js": function () {
  1468. "use strict";
  1469. if (tarteaucitron.user.wysistat === undefined) {
  1470. return;
  1471. }
  1472. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1473. window.stat(tarteaucitron.user.wysistat.cli, tarteaucitron.user.wysistat.frm, tarteaucitron.user.wysistat.prm, tarteaucitron.user.wysistat.ce, tarteaucitron.user.wysistat.page, tarteaucitron.user.wysistat.roi, tarteaucitron.user.wysistat.prof, tarteaucitron.user.wysistat.cpt);
  1474. });
  1475. }
  1476. };
  1477. // xiti
  1478. tarteaucitron.services.xiti = {
  1479. "key": "xiti",
  1480. "type": "analytic",
  1481. "name": "Xiti",
  1482. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1483. "needConsent": true,
  1484. "cookies": [],
  1485. "js": function () {
  1486. "use strict";
  1487. if (tarteaucitron.user.xitiId === undefined) {
  1488. return;
  1489. }
  1490. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1491. Xt_r,
  1492. Xt_h,
  1493. Xt_i,
  1494. Xt_s,
  1495. div = document.createElement('div');
  1496. try {
  1497. Xt_r = top.document.referrer;
  1498. } catch (e) {
  1499. Xt_r = document.referrer;
  1500. }
  1501. Xt_h = new Date();
  1502. Xt_i = '<img style="display:none" border="0" alt="" ';
  1503. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1504. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1505. if (parseFloat(navigator.appVersion) >= 4) {
  1506. Xt_s = screen;
  1507. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1508. }
  1509. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1510. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1511. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1512. tarteaucitron.user.xitiMore();
  1513. }
  1514. }
  1515. };
  1516. // youtube
  1517. tarteaucitron.services.youtube = {
  1518. "key": "youtube",
  1519. "type": "video",
  1520. "name": "YouTube",
  1521. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1522. "needConsent": true,
  1523. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1524. "js": function () {
  1525. "use strict";
  1526. tarteaucitron.fallback(['youtube_player'], function (x) {
  1527. var video_id = x.getAttribute("videoID"),
  1528. video_width = x.getAttribute("width"),
  1529. frame_width = 'width=',
  1530. video_height = x.getAttribute("height"),
  1531. frame_height = 'height=',
  1532. video_frame,
  1533. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1534. if (video_id === undefined) {
  1535. return "";
  1536. }
  1537. if (video_width !== undefined) {
  1538. frame_width += '"' + video_width + '" ';
  1539. } else {
  1540. frame_width += '"" ';
  1541. }
  1542. if (video_height !== undefined) {
  1543. frame_height += '"' + video_height + '" ';
  1544. } else {
  1545. frame_height += '"" ';
  1546. }
  1547. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1548. return video_frame;
  1549. });
  1550. },
  1551. "fallback": function () {
  1552. "use strict";
  1553. var id = 'youtube';
  1554. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1555. elem.style.width = elem.getAttribute('width') + 'px';
  1556. elem.style.height = elem.getAttribute('height') + 'px';
  1557. return tarteaucitron.engage(id);
  1558. });
  1559. }
  1560. };
  1561. // youtube playlist
  1562. tarteaucitron.services.youtubeplaylist = {
  1563. "key": "youtubeplaylist",
  1564. "type": "video",
  1565. "name": "YouTube (playlist)",
  1566. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1567. "needConsent": true,
  1568. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1569. "js": function () {
  1570. "use strict";
  1571. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1572. var playlist_id = x.getAttribute("playlistID"),
  1573. video_width = x.getAttribute("width"),
  1574. frame_width = 'width=',
  1575. video_height = x.getAttribute("height"),
  1576. frame_height = 'height=',
  1577. video_frame,
  1578. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1579. if (playlist_id === undefined) {
  1580. return "";
  1581. }
  1582. if (video_width !== undefined) {
  1583. frame_width += '"' + video_width + '" ';
  1584. } else {
  1585. frame_width += '"" ';
  1586. }
  1587. if (video_height !== undefined) {
  1588. frame_height += '"' + video_height + '" ';
  1589. } else {
  1590. frame_height += '"" ';
  1591. }
  1592. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1593. return video_frame;
  1594. });
  1595. },
  1596. "fallback": function () {
  1597. "use strict";
  1598. var id = 'youtubeplaylist';
  1599. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1600. elem.style.width = elem.getAttribute('width') + 'px';
  1601. elem.style.height = elem.getAttribute('height') + 'px';
  1602. return tarteaucitron.engage(id);
  1603. });
  1604. }
  1605. };
  1606. // zopim
  1607. tarteaucitron.services.zopim = {
  1608. "key": "zopim",
  1609. "type": "support",
  1610. "name": "Zopim",
  1611. "uri": "https://www.zopim.com/privacy",
  1612. "needConsent": true,
  1613. "cookies": ['__zlcid', '__zprivacy'],
  1614. "js": function () {
  1615. "use strict";
  1616. if (tarteaucitron.user.zopimID === undefined) {
  1617. return;
  1618. }
  1619. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1620. }
  1621. };
  1622. // xiti smartTag
  1623. tarteaucitron.services.xiti_smarttag = {
  1624. "key": "xiti_smarttag",
  1625. "type": "analytic",
  1626. "name": "Xiti (SmartTag)",
  1627. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1628. "needConsent": true,
  1629. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1630. "js": function () {
  1631. "use strict";
  1632. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1633. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1634. } else {
  1635. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1636. if (xitiSmarttagId === undefined) {
  1637. return;
  1638. }
  1639. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1640. }
  1641. }
  1642. };
  1643. // facebook pixel
  1644. tarteaucitron.services.facebookpixel = {
  1645. "key": "facebookpixel",
  1646. "type": "ads",
  1647. "name": "Facebook Pixel",
  1648. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1649. "needConsent": true,
  1650. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1651. "js": function () {
  1652. "use strict";
  1653. var n;
  1654. if(window.fbq)return;
  1655. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  1656. if(!window._fbq)window._fbq=n;
  1657. n.push=n;
  1658. n.loaded=!0;
  1659. n.version='2.0';
  1660. n.queue=[];
  1661. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  1662. fbq('init', tarteaucitron.user.facebookpixelId);
  1663. fbq('track', 'PageView');
  1664. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  1665. tarteaucitron.user.facebookpixelMore();
  1666. }
  1667. }
  1668. };