tarteaucitron.services.js 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749
  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 adsense search (form)
  633. tarteaucitron.services.adsensesearchform = {
  634. "key": "adsensesearchform",
  635. "type": "ads",
  636. "name": "Google Adsense Search (form)",
  637. "uri": "http://www.google.com/ads/preferences/",
  638. "needConsent": true,
  639. "cookies": [],
  640. "js": function () {
  641. "use strict";
  642. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  643. }
  644. };
  645. // google adsense search (result)
  646. tarteaucitron.services.adsensesearchresult = {
  647. "key": "adsensesearchresult",
  648. "type": "ads",
  649. "name": "Google Adsense Search (result)",
  650. "uri": "http://www.google.com/ads/preferences/",
  651. "needConsent": true,
  652. "cookies": [],
  653. "js": function () {
  654. "use strict";
  655. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  656. return;
  657. }
  658. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  659. },
  660. "fallback": function () {
  661. "use strict";
  662. var id = 'adsensesearchresult';
  663. if (document.getElementById('gcse_searchresults')) {
  664. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  665. }
  666. }
  667. };
  668. // googleadwordsconversion
  669. tarteaucitron.services.googleadwordsconversion = {
  670. "key": "googleadwordsconversion",
  671. "type": "ads",
  672. "name": "Google Adwords (conversion)",
  673. "uri": "https://www.google.com/settings/ads",
  674. "needConsent": true,
  675. "cookies": [],
  676. "js": function () {
  677. "use strict";
  678. if (tarteaucitron.user.adwordsconversionId === undefined) {
  679. return;
  680. }
  681. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  682. window.google_trackConversion({
  683. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  684. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  685. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  686. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  687. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  688. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  689. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  690. google_custom_params: {
  691. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  692. parameter2: tarteaucitron.user.adwordsconversionCustom2
  693. }
  694. });
  695. });
  696. }
  697. };
  698. // googleadwordsremarketing
  699. tarteaucitron.services.googleadwordsremarketing = {
  700. "key": "googleadwordsremarketing",
  701. "type": "ads",
  702. "name": "Google Adwords (remarketing)",
  703. "uri": "https://www.google.com/settings/ads",
  704. "needConsent": true,
  705. "cookies": [],
  706. "js": function () {
  707. "use strict";
  708. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  709. return;
  710. }
  711. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  712. window.google_trackConversion({
  713. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  714. google_remarketing_only: true
  715. });
  716. });
  717. }
  718. };
  719. // google analytics (old)
  720. tarteaucitron.services.gajs = {
  721. "key": "gajs",
  722. "type": "analytic",
  723. "name": "Google Analytics (ga.js)",
  724. "uri": "https://support.google.com/analytics/answer/6004245",
  725. "needConsent": true,
  726. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  727. "js": function () {
  728. "use strict";
  729. window._gaq = window._gaq || [];
  730. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  731. window._gaq.push(['_trackPageview']);
  732. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  733. if (typeof tarteaucitron.user.gajsMore === 'function') {
  734. tarteaucitron.user.gajsMore();
  735. }
  736. });
  737. }
  738. };
  739. // google analytics
  740. tarteaucitron.services.analytics = {
  741. "key": "analytics",
  742. "type": "analytic",
  743. "name": "Google Analytics (universal)",
  744. "uri": "https://support.google.com/analytics/answer/6004245",
  745. "needConsent": true,
  746. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  747. "js": function () {
  748. "use strict";
  749. window.GoogleAnalyticsObject = 'ga';
  750. window.ga = window.ga || function () {
  751. window.ga.q = window.ga.q || [];
  752. window.ga.q.push(arguments);
  753. };
  754. window.ga.l = new Date();
  755. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  756. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  757. ga('send', 'pageview');
  758. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  759. tarteaucitron.user.analyticsMore();
  760. }
  761. });
  762. }
  763. };
  764. // google maps
  765. tarteaucitron.services.googlemaps = {
  766. "key": "googlemaps",
  767. "type": "api",
  768. "name": "Google Maps",
  769. "uri": "http://www.google.com/ads/preferences/",
  770. "needConsent": true,
  771. "cookies": [],
  772. "js": function () {
  773. "use strict";
  774. var mapOptions,
  775. map,
  776. uniqIds = [],
  777. i;
  778. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
  779. window.tac_googlemaps_callback = function () {
  780. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  781. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  782. uniqIds.push(uniqId);
  783. 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>';
  784. });
  785. for (i = 0; i < uniqIds.length; i += 1) {
  786. mapOptions = {
  787. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  788. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  789. };
  790. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  791. }
  792. };
  793. },
  794. "fallback": function () {
  795. "use strict";
  796. var id = 'googlemaps';
  797. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  798. }
  799. };
  800. // google tag manager
  801. tarteaucitron.services.googletagmanager = {
  802. "key": "googletagmanager",
  803. "type": "api",
  804. "name": "Google Tag Manager",
  805. "uri": "http://www.google.com/ads/preferences/",
  806. "needConsent": true,
  807. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  808. "js": function () {
  809. "use strict";
  810. if (tarteaucitron.user.googletagmanagerId === undefined) {
  811. return;
  812. }
  813. window.dataLayer = window.dataLayer || [];
  814. window.dataLayer.push({
  815. 'gtm.start': new Date().getTime(),
  816. event: 'gtm.js'
  817. });
  818. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  819. }
  820. };
  821. // jsapi
  822. tarteaucitron.services.jsapi = {
  823. "key": "jsapi",
  824. "type": "api",
  825. "name": "Google jsapi",
  826. "uri": "http://www.google.com/policies/privacy/",
  827. "needConsent": true,
  828. "cookies": [],
  829. "js": function () {
  830. "use strict";
  831. tarteaucitron.addScript('//www.google.com/jsapi');
  832. }
  833. };
  834. // linkedin
  835. tarteaucitron.services.linkedin = {
  836. "key": "linkedin",
  837. "type": "social",
  838. "name": "Linkedin",
  839. "uri": "https://www.linkedin.com/legal/cookie_policy",
  840. "needConsent": true,
  841. "cookies": [],
  842. "js": function () {
  843. "use strict";
  844. tarteaucitron.fallback(['tacLinkedin'], '');
  845. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  846. if (tarteaucitron.isAjax === true) {
  847. if (typeof IN !== "undefined") {
  848. IN.parse();
  849. }
  850. }
  851. },
  852. "fallback": function () {
  853. "use strict";
  854. var id = 'linkedin';
  855. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  856. }
  857. };
  858. // microsoftcampaignanalytics
  859. tarteaucitron.services.microsoftcampaignanalytics = {
  860. "key": "microsoftcampaignanalytics",
  861. "type": "analytic",
  862. "name": "Microsoft Campaign Analytics",
  863. "uri": "https://www.microsoft.com/fr-fr/privacystatement/Default.aspx",
  864. "needConsent": true,
  865. "cookies": [],
  866. "js": function () {
  867. "use strict";
  868. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  869. return;
  870. }
  871. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  872. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  873. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  874. });
  875. }
  876. };
  877. // pinterest
  878. tarteaucitron.services.pinterest = {
  879. "key": "pinterest",
  880. "type": "social",
  881. "name": "Pinterest",
  882. "uri": "https://about.pinterest.com/privacy-policy",
  883. "needConsent": true,
  884. "cookies": [],
  885. "js": function () {
  886. "use strict";
  887. tarteaucitron.fallback(['tacPinterest'], '');
  888. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  889. },
  890. "fallback": function () {
  891. "use strict";
  892. var id = 'pinterest';
  893. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  894. }
  895. };
  896. // prelinker
  897. tarteaucitron.services.prelinker = {
  898. "key": "prelinker",
  899. "type": "ads",
  900. "name": "Prelinker",
  901. "uri": "http://www.prelinker.com/index/index/cgu/",
  902. "needConsent": true,
  903. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  904. "js": function () {
  905. "use strict";
  906. var uniqIds = [],
  907. i,
  908. uri;
  909. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  910. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  911. uniqIds.push(uniqId);
  912. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  913. });
  914. for (i = 0; i < uniqIds.length; i += 1) {
  915. uri = 'http://promo.easy-dating.org/banner/index?';
  916. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  917. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  918. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  919. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  920. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  921. }
  922. },
  923. "fallback": function () {
  924. "use strict";
  925. var id = 'prelinker';
  926. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  927. }
  928. };
  929. // prezi
  930. tarteaucitron.services.prezi = {
  931. "key": "prezi",
  932. "type": "video",
  933. "name": "Prezi",
  934. "uri": "https://prezi.com/privacy-policy/",
  935. "needConsent": true,
  936. "cookies": [],
  937. "js": function () {
  938. "use strict";
  939. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  940. var id = x.getAttribute("data-id"),
  941. width = x.getAttribute("width"),
  942. height = x.getAttribute("height"),
  943. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  944. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  945. });
  946. },
  947. "fallback": function () {
  948. "use strict";
  949. var id = 'prezi';
  950. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  951. elem.style.width = elem.getAttribute('width') + 'px';
  952. elem.style.height = elem.getAttribute('height') + 'px';
  953. return tarteaucitron.engage(id);
  954. });
  955. }
  956. };
  957. // pubdirecte
  958. tarteaucitron.services.pubdirecte = {
  959. "key": "pubdirecte",
  960. "type": "ads",
  961. "name": "Pubdirecte",
  962. "uri": "http://pubdirecte.com/contact.php",
  963. "needConsent": true,
  964. "cookies": [],
  965. "js": function () {
  966. "use strict";
  967. var uniqIds = [],
  968. i,
  969. uri;
  970. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  971. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  972. uniqIds.push(uniqId);
  973. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  974. });
  975. for (i = 0; i < uniqIds.length; i += 1) {
  976. uri = '//www.pubdirecte.com/script/banniere.php?';
  977. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  978. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  979. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  980. }
  981. },
  982. "fallback": function () {
  983. "use strict";
  984. var id = 'pubdirecte';
  985. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  986. }
  987. };
  988. // purechat
  989. tarteaucitron.services.purechat = {
  990. "key": "purechat",
  991. "type": "support",
  992. "name": "PureChat",
  993. "uri": "https://www.purechat.com/privacy",
  994. "needConsent": true,
  995. "cookies": [],
  996. "js": function () {
  997. "use strict";
  998. if (tarteaucitron.user.purechatId === undefined) {
  999. return;
  1000. }
  1001. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1002. try {
  1003. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1004. } catch (e) {}
  1005. });
  1006. }
  1007. };
  1008. // shareaholic
  1009. tarteaucitron.services.shareaholic = {
  1010. "key": "shareaholic",
  1011. "type": "social",
  1012. "name": "Shareaholic",
  1013. "uri": "https://shareaholic.com/privacy/choices",
  1014. "needConsent": true,
  1015. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1016. "js": function () {
  1017. "use strict";
  1018. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1019. return;
  1020. }
  1021. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1022. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1023. try {
  1024. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1025. } catch (e) {}
  1026. });
  1027. },
  1028. "fallback": function () {
  1029. "use strict";
  1030. var id = 'shareaholic';
  1031. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1032. }
  1033. };
  1034. // shareasale
  1035. tarteaucitron.services.shareasale = {
  1036. "key": "shareasale",
  1037. "type": "ads",
  1038. "name": "ShareASale",
  1039. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1040. "needConsent": true,
  1041. "cookies": [],
  1042. "js": function () {
  1043. "use strict";
  1044. var uniqIds = [],
  1045. i,
  1046. uri;
  1047. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1048. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1049. uniqIds.push(uniqId);
  1050. 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>';
  1051. });
  1052. for (i = 0; i < uniqIds.length; i += 1) {
  1053. uri = 'https://shareasale.com/sale.cfm?';
  1054. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1055. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1056. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1057. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1058. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1059. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1060. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1061. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1062. }
  1063. },
  1064. "fallback": function () {
  1065. "use strict";
  1066. var id = 'shareasale';
  1067. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1068. }
  1069. };
  1070. // sharethis
  1071. tarteaucitron.services.sharethis = {
  1072. "key": "sharethis",
  1073. "type": "social",
  1074. "name": "ShareThis",
  1075. "uri": "http://www.sharethis.com/legal/privacy/",
  1076. "needConsent": true,
  1077. "cookies": ['__unam'],
  1078. "js": function () {
  1079. "use strict";
  1080. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1081. return;
  1082. }
  1083. var switchTo5x = true,
  1084. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1085. tarteaucitron.fallback(['tacSharethis'], '');
  1086. tarteaucitron.addScript(uri, '', function () {
  1087. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1088. });
  1089. if (tarteaucitron.isAjax === true) {
  1090. if (typeof stButtons !== "undefined") {
  1091. stButtons.locateElements();
  1092. }
  1093. }
  1094. },
  1095. "fallback": function () {
  1096. "use strict";
  1097. var id = 'sharethis';
  1098. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1099. }
  1100. };
  1101. // slideshare
  1102. tarteaucitron.services.slideshare = {
  1103. "key": "slideshare",
  1104. "type": "video",
  1105. "name": "SlideShare",
  1106. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1107. "needConsent": true,
  1108. "cookies": [],
  1109. "js": function () {
  1110. "use strict";
  1111. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1112. var id = x.getAttribute("data-id"),
  1113. width = x.getAttribute("width"),
  1114. height = x.getAttribute("height"),
  1115. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1116. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1117. });
  1118. },
  1119. "fallback": function () {
  1120. "use strict";
  1121. var id = 'slideshare';
  1122. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1123. elem.style.width = elem.getAttribute('width') + 'px';
  1124. elem.style.height = elem.getAttribute('height') + 'px';
  1125. return tarteaucitron.engage(id);
  1126. });
  1127. }
  1128. };
  1129. // statcounter
  1130. tarteaucitron.services.statcounter = {
  1131. "key": "statcounter",
  1132. "type": "analytic",
  1133. "name": "StatCounter",
  1134. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1135. "needConsent": true,
  1136. "cookies": ['sc_is_visitor_unique'],
  1137. "js": function () {
  1138. "use strict";
  1139. var uniqIds = [],
  1140. i,
  1141. uri = '//statcounter.com/counter/counter.js';
  1142. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1143. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1144. uniqIds.push(uniqId);
  1145. return '<div id="' + uniqId + '"></div>';
  1146. });
  1147. for (i = 0; i < uniqIds.length; i += 1) {
  1148. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1149. }
  1150. },
  1151. "fallback": function () {
  1152. "use strict";
  1153. var id = 'statcounter';
  1154. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1155. }
  1156. };
  1157. // timelinejs
  1158. tarteaucitron.services.timelinejs = {
  1159. "key": "timelinejs",
  1160. "type": "api",
  1161. "name": "Timeline JS",
  1162. "uri": "http://timeline.knightlab.com/#help",
  1163. "needConsent": true,
  1164. "cookies": [],
  1165. "js": function () {
  1166. "use strict";
  1167. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1168. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1169. width = x.getAttribute("width"),
  1170. height = x.getAttribute("height"),
  1171. lang = x.getAttribute("lang_2_letter"),
  1172. font = x.getAttribute("font"),
  1173. map = x.getAttribute("map"),
  1174. start_at_end = x.getAttribute("start_at_end"),
  1175. hash_bookmark = x.getAttribute("hash_bookmark"),
  1176. start_at_slide = x.getAttribute("start_at_slide"),
  1177. start_zoom = x.getAttribute("start_zoom"),
  1178. 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;
  1179. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1180. });
  1181. },
  1182. "fallback": function () {
  1183. "use strict";
  1184. var id = 'timelinejs';
  1185. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1186. elem.style.width = elem.getAttribute('width') + 'px';
  1187. elem.style.height = elem.getAttribute('height') + 'px';
  1188. return tarteaucitron.engage(id);
  1189. });
  1190. }
  1191. };
  1192. // typekit
  1193. tarteaucitron.services.typekit = {
  1194. "key": "typekit",
  1195. "type": "api",
  1196. "name": "Typekit (adobe)",
  1197. "uri": "http://www.adobe.com/fr/privacy.html",
  1198. "needConsent": true,
  1199. "cookies": [],
  1200. "js": function () {
  1201. "use strict";
  1202. if (tarteaucitron.user.typekitId === undefined) {
  1203. return;
  1204. }
  1205. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1206. try {
  1207. Typekit.load();
  1208. } catch (e) {}
  1209. });
  1210. }
  1211. };
  1212. // twenga
  1213. tarteaucitron.services.twenga = {
  1214. "key": "twenga",
  1215. "type": "ads",
  1216. "name": "Twenga",
  1217. "uri": "http://www.twenga.com/privacy.php",
  1218. "needConsent": true,
  1219. "cookies": [],
  1220. "js": function () {
  1221. "use strict";
  1222. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1223. return;
  1224. }
  1225. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1226. }
  1227. };
  1228. // twitter
  1229. tarteaucitron.services.twitter = {
  1230. "key": "twitter",
  1231. "type": "social",
  1232. "name": "Twitter",
  1233. "uri": "https://support.twitter.com/articles/20170514",
  1234. "needConsent": true,
  1235. "cookies": [],
  1236. "js": function () {
  1237. "use strict";
  1238. tarteaucitron.fallback(['tacTwitter'], '');
  1239. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1240. },
  1241. "fallback": function () {
  1242. "use strict";
  1243. var id = 'twitter';
  1244. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1245. }
  1246. };
  1247. // twitter embed
  1248. tarteaucitron.services.twitterembed = {
  1249. "key": "twitterembed",
  1250. "type": "social",
  1251. "name": "Twitter (cards)",
  1252. "uri": "https://support.twitter.com/articles/20170514",
  1253. "needConsent": true,
  1254. "cookies": [],
  1255. "js": function () {
  1256. "use strict";
  1257. var uniqIds = [],
  1258. i,
  1259. e,
  1260. html;
  1261. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1262. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1263. uniqIds.push(uniqId);
  1264. html = '<div id="' + uniqId + '" ';
  1265. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1266. html += 'theme="' + x.getAttribute('theme') + '" ';
  1267. html += 'cards="' + x.getAttribute('cards') + '" ';
  1268. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1269. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1270. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1271. html += '></div>';
  1272. return html;
  1273. });
  1274. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1275. for (i = 0; i < uniqIds.length; i += 1) {
  1276. e = document.getElementById(uniqIds[i]);
  1277. twttr.widgets.createTweet(
  1278. e.getAttribute('tweetid'),
  1279. e,
  1280. {
  1281. theme: e.getAttribute('theme'),
  1282. cards: e.getAttribute('cards'),
  1283. conversation: e.getAttribute('conversation'),
  1284. lang: tarteaucitron.getLanguage(),
  1285. dnt: true,
  1286. width: e.getAttribute('data-width'),
  1287. align: e.getAttribute('data-align')
  1288. }
  1289. );
  1290. }
  1291. });
  1292. },
  1293. "fallback": function () {
  1294. "use strict";
  1295. var id = 'twitterembed';
  1296. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1297. elem.style.width = elem.getAttribute('data-width') + 'px';
  1298. return tarteaucitron.engage(id);
  1299. });
  1300. }
  1301. };
  1302. // twitter timeline
  1303. tarteaucitron.services.twittertimeline = {
  1304. "key": "twittertimeline",
  1305. "type": "social",
  1306. "name": "Twitter (timelines)",
  1307. "uri": "https://support.twitter.com/articles/20170514",
  1308. "needConsent": true,
  1309. "cookies": [],
  1310. "js": function () {
  1311. "use strict";
  1312. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1313. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1314. },
  1315. "fallback": function () {
  1316. "use strict";
  1317. var id = 'twittertimeline';
  1318. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1319. }
  1320. };
  1321. // user voice
  1322. tarteaucitron.services.uservoice = {
  1323. "key": "uservoice",
  1324. "type": "support",
  1325. "name": "UserVoice",
  1326. "uri": "https://www.uservoice.com/privacy/",
  1327. "needConsent": true,
  1328. "cookies": [],
  1329. "js": function () {
  1330. "use strict";
  1331. if (tarteaucitron.user.userVoiceApi === undefined) {
  1332. return;
  1333. }
  1334. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1335. }
  1336. };
  1337. // vimeo
  1338. tarteaucitron.services.vimeo = {
  1339. "key": "vimeo",
  1340. "type": "video",
  1341. "name": "Vimeo",
  1342. "uri": "http://vimeo.com/privacy",
  1343. "needConsent": true,
  1344. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1345. "js": function () {
  1346. "use strict";
  1347. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1348. var video_id = x.getAttribute("videoID"),
  1349. video_width = x.getAttribute("width"),
  1350. frame_width = 'width=',
  1351. video_height = x.getAttribute("height"),
  1352. frame_height = 'height=',
  1353. video_frame;
  1354. if (video_id === undefined) {
  1355. return "";
  1356. }
  1357. if (video_width !== undefined) {
  1358. frame_width += '"' + video_width + '" ';
  1359. } else {
  1360. frame_width += '"" ';
  1361. }
  1362. if (video_height !== undefined) {
  1363. frame_height += '"' + video_height + '" ';
  1364. } else {
  1365. frame_height += '"" ';
  1366. }
  1367. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1368. return video_frame;
  1369. });
  1370. },
  1371. "fallback": function () {
  1372. "use strict";
  1373. var id = 'vimeo';
  1374. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1375. elem.style.width = elem.getAttribute('width') + 'px';
  1376. elem.style.height = elem.getAttribute('height') + 'px';
  1377. return tarteaucitron.engage(id);
  1378. });
  1379. }
  1380. };
  1381. // visualrevenue
  1382. tarteaucitron.services.visualrevenue = {
  1383. "key": "visualrevenue",
  1384. "type": "analytic",
  1385. "name": "VisualRevenue",
  1386. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1387. "needConsent": true,
  1388. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1389. "js": function () {
  1390. "use strict";
  1391. if (tarteaucitron.user.visualrevenueId === undefined) {
  1392. return;
  1393. }
  1394. window._vrq = window._vrq || [];
  1395. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1396. window._vrq.push(['automate', true]);
  1397. window._vrq.push(['track', function () {}]);
  1398. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1399. }
  1400. };
  1401. // vshop
  1402. tarteaucitron.services.vshop = {
  1403. "key": "vshop",
  1404. "type": "ads",
  1405. "name": "vShop",
  1406. "uri": "http://vshop.fr/privacy-policy",
  1407. "needConsent": true,
  1408. "cookies": [],
  1409. "js": function () {
  1410. "use strict";
  1411. tarteaucitron.fallback(['vcashW'], '');
  1412. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1413. },
  1414. "fallback": function () {
  1415. "use strict";
  1416. var id = 'vshop';
  1417. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1418. }
  1419. };
  1420. // wysistat
  1421. tarteaucitron.services.wysistat = {
  1422. "key": "wysistat",
  1423. "type": "analytic",
  1424. "name": "Wysistat",
  1425. "uri": "http://wysistat.net/contact/",
  1426. "needConsent": true,
  1427. "cookies": ['Wysistat'],
  1428. "js": function () {
  1429. "use strict";
  1430. if (tarteaucitron.user.wysistat === undefined) {
  1431. return;
  1432. }
  1433. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1434. 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);
  1435. });
  1436. }
  1437. };
  1438. // xiti
  1439. tarteaucitron.services.xiti = {
  1440. "key": "xiti",
  1441. "type": "analytic",
  1442. "name": "Xiti",
  1443. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1444. "needConsent": true,
  1445. "cookies": [],
  1446. "js": function () {
  1447. "use strict";
  1448. if (tarteaucitron.user.xitiId === undefined) {
  1449. return;
  1450. }
  1451. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1452. Xt_r,
  1453. Xt_h,
  1454. Xt_i,
  1455. Xt_s,
  1456. div = document.createElement('div');
  1457. try {
  1458. Xt_r = top.document.referrer;
  1459. } catch (e) {
  1460. Xt_r = document.referrer;
  1461. }
  1462. Xt_h = new Date();
  1463. Xt_i = '<img style="display:none" border="0" alt="" ';
  1464. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1465. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1466. if (parseFloat(navigator.appVersion) >= 4) {
  1467. Xt_s = screen;
  1468. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1469. }
  1470. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1471. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1472. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1473. tarteaucitron.user.xitiMore();
  1474. }
  1475. }
  1476. };
  1477. // youtube
  1478. tarteaucitron.services.youtube = {
  1479. "key": "youtube",
  1480. "type": "video",
  1481. "name": "YouTube",
  1482. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1483. "needConsent": true,
  1484. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1485. "js": function () {
  1486. "use strict";
  1487. tarteaucitron.fallback(['youtube_player'], function (x) {
  1488. var video_id = x.getAttribute("videoID"),
  1489. video_width = x.getAttribute("width"),
  1490. frame_width = 'width=',
  1491. video_height = x.getAttribute("height"),
  1492. frame_height = 'height=',
  1493. video_frame,
  1494. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1495. if (video_id === undefined) {
  1496. return "";
  1497. }
  1498. if (video_width !== undefined) {
  1499. frame_width += '"' + video_width + '" ';
  1500. } else {
  1501. frame_width += '"" ';
  1502. }
  1503. if (video_height !== undefined) {
  1504. frame_height += '"' + video_height + '" ';
  1505. } else {
  1506. frame_height += '"" ';
  1507. }
  1508. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1509. return video_frame;
  1510. });
  1511. },
  1512. "fallback": function () {
  1513. "use strict";
  1514. var id = 'youtube';
  1515. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1516. elem.style.width = elem.getAttribute('width') + 'px';
  1517. elem.style.height = elem.getAttribute('height') + 'px';
  1518. return tarteaucitron.engage(id);
  1519. });
  1520. }
  1521. };
  1522. // youtube playlist
  1523. tarteaucitron.services.youtubeplaylist = {
  1524. "key": "youtubeplaylist",
  1525. "type": "video",
  1526. "name": "YouTube (playlist)",
  1527. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1528. "needConsent": true,
  1529. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1530. "js": function () {
  1531. "use strict";
  1532. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1533. var playlist_id = x.getAttribute("playlistID"),
  1534. video_width = x.getAttribute("width"),
  1535. frame_width = 'width=',
  1536. video_height = x.getAttribute("height"),
  1537. frame_height = 'height=',
  1538. video_frame,
  1539. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1540. if (playlist_id === undefined) {
  1541. return "";
  1542. }
  1543. if (video_width !== undefined) {
  1544. frame_width += '"' + video_width + '" ';
  1545. } else {
  1546. frame_width += '"" ';
  1547. }
  1548. if (video_height !== undefined) {
  1549. frame_height += '"' + video_height + '" ';
  1550. } else {
  1551. frame_height += '"" ';
  1552. }
  1553. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1554. return video_frame;
  1555. });
  1556. },
  1557. "fallback": function () {
  1558. "use strict";
  1559. var id = 'youtubeplaylist';
  1560. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1561. elem.style.width = elem.getAttribute('width') + 'px';
  1562. elem.style.height = elem.getAttribute('height') + 'px';
  1563. return tarteaucitron.engage(id);
  1564. });
  1565. }
  1566. };
  1567. // zopim
  1568. tarteaucitron.services.zopim = {
  1569. "key": "zopim",
  1570. "type": "support",
  1571. "name": "Zopim",
  1572. "uri": "https://www.zopim.com/privacy",
  1573. "needConsent": true,
  1574. "cookies": ['__zlcid', '__zprivacy'],
  1575. "js": function () {
  1576. "use strict";
  1577. if (tarteaucitron.user.zopimID === undefined) {
  1578. return;
  1579. }
  1580. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1581. }
  1582. };
  1583. // xiti smartTag
  1584. tarteaucitron.services.xiti_smarttag = {
  1585. "key": "xiti_smarttag",
  1586. "type": "analytic",
  1587. "name": "Xiti (SmartTag)",
  1588. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1589. "needConsent": true,
  1590. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1591. "js": function () {
  1592. "use strict";
  1593. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1594. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1595. } else {
  1596. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1597. if (xitiSmarttagId === undefined) {
  1598. return;
  1599. }
  1600. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1601. }
  1602. }
  1603. };
  1604. // facebook pixel
  1605. tarteaucitron.services.facebookpixel = {
  1606. "key": "facebookpixel",
  1607. "type": "ads",
  1608. "name": "Facebook Pixel",
  1609. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1610. "needConsent": true,
  1611. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1612. "js": function () {
  1613. "use strict";
  1614. var n;
  1615. if(window.fbq)return;
  1616. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  1617. if(!window._fbq)window._fbq=n;
  1618. n.push=n;
  1619. n.loaded=!0;
  1620. n.version='2.0';
  1621. n.queue=[];
  1622. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  1623. fbq('init', tarteaucitron.user.facebookpixelId);
  1624. fbq('track', 'PageView');
  1625. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  1626. tarteaucitron.user.facebookpixelMore();
  1627. }
  1628. }
  1629. };