tarteaucitron.services.js 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr*/
  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. // disqus
  306. tarteaucitron.services.disqus = {
  307. "key": "disqus",
  308. "type": "comment",
  309. "name": "Disqus",
  310. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  311. "needConsent": true,
  312. "cookies": [],
  313. "js": function () {
  314. "use strict";
  315. if (tarteaucitron.user.disqusShortname === undefined) {
  316. return;
  317. }
  318. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  319. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  320. },
  321. "fallback": function () {
  322. "use strict";
  323. var id = 'disqus';
  324. if (document.getElementById('disqus_thread')) {
  325. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  326. }
  327. }
  328. };
  329. // ekomi
  330. tarteaucitron.services.ekomi = {
  331. "key": "ekomi",
  332. "type": "social",
  333. "name": "eKomi",
  334. "uri": "http://www.ekomi-us.com/us/privacy/",
  335. "needConsent": true,
  336. "cookies": [],
  337. "js": function () {
  338. "use strict";
  339. if (tarteaucitron.user.ekomiCertId === undefined) {
  340. return;
  341. }
  342. window.eKomiIntegrationConfig = [
  343. {certId: tarteaucitron.user.ekomiCertId}
  344. ];
  345. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  346. }
  347. };
  348. // facebook
  349. tarteaucitron.services.facebook = {
  350. "key": "facebook",
  351. "type": "social",
  352. "name": "Facebook",
  353. "uri": "https://www.facebook.com/help/cookies/",
  354. "needConsent": true,
  355. "cookies": [],
  356. "js": function () {
  357. "use strict";
  358. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  359. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  360. if (tarteaucitron.isAjax === true) {
  361. if (typeof FB !== "undefined") {
  362. FB.XFBML.parse();
  363. }
  364. }
  365. },
  366. "fallback": function () {
  367. "use strict";
  368. var id = 'facebook';
  369. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  370. }
  371. };
  372. // facebooklikebox
  373. tarteaucitron.services.facebooklikebox = {
  374. "key": "facebooklikebox",
  375. "type": "social",
  376. "name": "Facebook (like box)",
  377. "uri": "https://www.facebook.com/help/cookies/",
  378. "needConsent": true,
  379. "cookies": [],
  380. "js": function () {
  381. "use strict";
  382. tarteaucitron.fallback(['fb-like-box'], '');
  383. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  384. if (tarteaucitron.isAjax === true) {
  385. if (typeof FB !== "undefined") {
  386. FB.XFBML.parse();
  387. }
  388. }
  389. },
  390. "fallback": function () {
  391. "use strict";
  392. var id = 'facebooklikebox';
  393. tarteaucitron.fallback(['fb-like-box'], tarteaucitron.engage(id));
  394. }
  395. };
  396. // facebookcomment
  397. tarteaucitron.services.facebookcomment = {
  398. "key": "facebookcomment",
  399. "type": "comment",
  400. "name": "Facebook (commentaire)",
  401. "uri": "https://www.facebook.com/help/cookies/",
  402. "needConsent": true,
  403. "cookies": [],
  404. "js": function () {
  405. "use strict";
  406. tarteaucitron.fallback(['fb-comments'], '');
  407. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  408. if (tarteaucitron.isAjax === true) {
  409. if (typeof FB !== "undefined") {
  410. FB.XFBML.parse();
  411. }
  412. }
  413. },
  414. "fallback": function () {
  415. "use strict";
  416. var id = 'facebookcomment';
  417. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  418. }
  419. };
  420. // ferank
  421. tarteaucitron.services.ferank = {
  422. "key": "ferank",
  423. "type": "analytic",
  424. "name": "FERank",
  425. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  426. "needConsent": false,
  427. "cookies": [],
  428. "js": function () {
  429. "use strict";
  430. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  431. if (typeof tarteaucitron.user.ferankMore === 'function') {
  432. tarteaucitron.user.ferankMore();
  433. }
  434. });
  435. }
  436. };
  437. // ferank pub
  438. tarteaucitron.services.ferankpub = {
  439. "key": "ferankpub",
  440. "type": "ads",
  441. "name": "FERank (pub)",
  442. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  443. "needConsent": false,
  444. "cookies": [],
  445. "js": function () {
  446. "use strict";
  447. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  448. if (tarteaucitron.isAjax === true) {
  449. if (typeof ferankReady === 'function') {
  450. ferankReady();
  451. }
  452. }
  453. },
  454. "fallback": function () {
  455. "use strict";
  456. var id = 'ferankpub';
  457. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  458. }
  459. };
  460. // get+
  461. tarteaucitron.services.getplus = {
  462. "key": "getplus",
  463. "type": "analytic",
  464. "name": "Get+",
  465. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  466. "needConsent": true,
  467. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  468. "js": function () {
  469. "use strict";
  470. if (tarteaucitron.user.getplusId === undefined) {
  471. return;
  472. }
  473. window.webleads_site_ids = window.webleads_site_ids || [];
  474. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  475. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  476. }
  477. };
  478. // google+
  479. tarteaucitron.services.gplus = {
  480. "key": "gplus",
  481. "type": "social",
  482. "name": "Google+",
  483. "uri": "http://www.google.fr/intl/policies/privacy/",
  484. "needConsent": true,
  485. "cookies": [],
  486. "js": function () {
  487. "use strict";
  488. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  489. },
  490. "fallback": function () {
  491. "use strict";
  492. var id = 'gplus';
  493. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  494. }
  495. };
  496. // google+ badge
  497. tarteaucitron.services.gplusbadge = {
  498. "key": "gplusbadge",
  499. "type": "social",
  500. "name": "Google+ (badge)",
  501. "uri": "http://www.google.fr/intl/policies/privacy/",
  502. "needConsent": true,
  503. "cookies": [],
  504. "js": function () {
  505. "use strict";
  506. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  507. },
  508. "fallback": function () {
  509. "use strict";
  510. var id = 'gplusbadge';
  511. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  512. }
  513. };
  514. // google adsense
  515. tarteaucitron.services.adsense = {
  516. "key": "adsense",
  517. "type": "ads",
  518. "name": "Google Adsense",
  519. "uri": "http://www.google.com/ads/preferences/",
  520. "needConsent": true,
  521. "cookies": [],
  522. "js": function () {
  523. "use strict";
  524. tarteaucitron.addScript('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  525. },
  526. "fallback": function () {
  527. "use strict";
  528. var id = 'adsense';
  529. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  530. }
  531. };
  532. // google adsense search (form)
  533. tarteaucitron.services.adsensesearchform = {
  534. "key": "adsensesearchform",
  535. "type": "ads",
  536. "name": "Google Adsense Search (form)",
  537. "uri": "http://www.google.com/ads/preferences/",
  538. "needConsent": true,
  539. "cookies": [],
  540. "js": function () {
  541. "use strict";
  542. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  543. }
  544. };
  545. // google adsense search (result)
  546. tarteaucitron.services.adsensesearchresult = {
  547. "key": "adsensesearchresult",
  548. "type": "ads",
  549. "name": "Google Adsense Search (result)",
  550. "uri": "http://www.google.com/ads/preferences/",
  551. "needConsent": true,
  552. "cookies": [],
  553. "js": function () {
  554. "use strict";
  555. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  556. return;
  557. }
  558. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  559. },
  560. "fallback": function () {
  561. "use strict";
  562. var id = 'adsensesearchresult';
  563. if (document.getElementById('gcse_searchresults')) {
  564. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  565. }
  566. }
  567. };
  568. // googleadwordsconversion
  569. tarteaucitron.services.googleadwordsconversion = {
  570. "key": "googleadwordsconversion",
  571. "type": "ads",
  572. "name": "Google Adwords (conversion)",
  573. "uri": "https://www.google.com/settings/ads",
  574. "needConsent": true,
  575. "cookies": [],
  576. "js": function () {
  577. "use strict";
  578. if (tarteaucitron.user.adwordsconversionId === undefined) {
  579. return;
  580. }
  581. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  582. window.google_trackConversion({
  583. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  584. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  585. google_custom_params: {
  586. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  587. parameter2: tarteaucitron.user.adwordsconversionCustom2
  588. }
  589. });
  590. });
  591. }
  592. };
  593. // googleadwordsremarketing
  594. tarteaucitron.services.googleadwordsremarketing = {
  595. "key": "googleadwordsremarketing",
  596. "type": "ads",
  597. "name": "Google Adwords (remarketing)",
  598. "uri": "https://www.google.com/settings/ads",
  599. "needConsent": true,
  600. "cookies": [],
  601. "js": function () {
  602. "use strict";
  603. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  604. return;
  605. }
  606. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  607. window.google_trackConversion({
  608. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  609. google_remarketing_only: true
  610. });
  611. });
  612. }
  613. };
  614. // google analytics (old)
  615. tarteaucitron.services.gajs = {
  616. "key": "gajs",
  617. "type": "analytic",
  618. "name": "Google Analytics (ga.js)",
  619. "uri": "https://support.google.com/analytics/answer/6004245",
  620. "needConsent": true,
  621. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  622. "js": function () {
  623. "use strict";
  624. window._gaq = window._gaq || [];
  625. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  626. window._gaq.push(['_trackPageview']);
  627. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  628. if (typeof tarteaucitron.user.gajsMore === 'function') {
  629. tarteaucitron.user.gajsMore();
  630. }
  631. });
  632. }
  633. };
  634. // google analytics
  635. tarteaucitron.services.analytics = {
  636. "key": "analytics",
  637. "type": "analytic",
  638. "name": "Google Analytics (universal)",
  639. "uri": "https://support.google.com/analytics/answer/6004245",
  640. "needConsent": true,
  641. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  642. "js": function () {
  643. "use strict";
  644. window.GoogleAnalyticsObject = 'ga';
  645. window.ga = window.ga || function () {
  646. window.ga.q = window.ga.q || [];
  647. window.ga.q.push(arguments);
  648. };
  649. window.ga.l = new Date();
  650. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  651. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  652. ga('send', 'pageview');
  653. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  654. tarteaucitron.user.analyticsMore();
  655. }
  656. });
  657. }
  658. };
  659. // google maps
  660. tarteaucitron.services.googlemaps = {
  661. "key": "googlemaps",
  662. "type": "api",
  663. "name": "Google Maps",
  664. "uri": "http://www.google.com/ads/preferences/",
  665. "needConsent": true,
  666. "cookies": [],
  667. "js": function () {
  668. "use strict";
  669. var mapOptions,
  670. map,
  671. uniqIds = [],
  672. i;
  673. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
  674. window.tac_googlemaps_callback = function () {
  675. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  676. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  677. uniqIds.push(uniqId);
  678. 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>';
  679. });
  680. for (i = 0; i < uniqIds.length; i += 1) {
  681. mapOptions = {
  682. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  683. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  684. };
  685. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  686. }
  687. };
  688. },
  689. "fallback": function () {
  690. "use strict";
  691. var id = 'googlemaps';
  692. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  693. }
  694. };
  695. // google tag manager
  696. tarteaucitron.services.googletagmanager = {
  697. "key": "googletagmanager",
  698. "type": "api",
  699. "name": "Google Tag Manager",
  700. "uri": "http://www.google.com/ads/preferences/",
  701. "needConsent": true,
  702. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  703. "js": function () {
  704. "use strict";
  705. if (tarteaucitron.user.googletagmanagerId === undefined) {
  706. return;
  707. }
  708. window.dataLayer = window.dataLayer || [];
  709. window.dataLayer.push({
  710. 'gtm.start': new Date().getTime(),
  711. event: 'gtm.js'
  712. });
  713. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  714. }
  715. };
  716. // jsapi
  717. tarteaucitron.services.jsapi = {
  718. "key": "jsapi",
  719. "type": "api",
  720. "name": "Google jsapi",
  721. "uri": "http://www.google.com/policies/privacy/",
  722. "needConsent": true,
  723. "cookies": [],
  724. "js": function () {
  725. "use strict";
  726. tarteaucitron.addScript('//www.google.com/jsapi');
  727. }
  728. };
  729. // linkedin
  730. tarteaucitron.services.linkedin = {
  731. "key": "linkedin",
  732. "type": "social",
  733. "name": "Linkedin",
  734. "uri": "https://www.linkedin.com/legal/cookie_policy",
  735. "needConsent": true,
  736. "cookies": [],
  737. "js": function () {
  738. "use strict";
  739. tarteaucitron.fallback(['tacLinkedin'], '');
  740. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  741. if (tarteaucitron.isAjax === true) {
  742. if (typeof IN !== "undefined") {
  743. IN.parse();
  744. }
  745. }
  746. },
  747. "fallback": function () {
  748. "use strict";
  749. var id = 'linkedin';
  750. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  751. }
  752. };
  753. // pinterest
  754. tarteaucitron.services.pinterest = {
  755. "key": "pinterest",
  756. "type": "social",
  757. "name": "Pinterest",
  758. "uri": "https://about.pinterest.com/privacy-policy",
  759. "needConsent": true,
  760. "cookies": [],
  761. "js": function () {
  762. "use strict";
  763. tarteaucitron.fallback(['tacPinterest'], '');
  764. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  765. },
  766. "fallback": function () {
  767. "use strict";
  768. var id = 'pinterest';
  769. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  770. }
  771. };
  772. // prezi
  773. tarteaucitron.services.prezi = {
  774. "key": "prezi",
  775. "type": "video",
  776. "name": "Prezi",
  777. "uri": "https://prezi.com/privacy-policy/",
  778. "needConsent": true,
  779. "cookies": [],
  780. "js": function () {
  781. "use strict";
  782. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  783. var id = x.getAttribute("data-id"),
  784. width = x.getAttribute("width"),
  785. height = x.getAttribute("height"),
  786. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  787. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  788. });
  789. },
  790. "fallback": function () {
  791. "use strict";
  792. var id = 'prezi';
  793. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  794. elem.style.width = elem.getAttribute('width') + 'px';
  795. elem.style.height = elem.getAttribute('height') + 'px';
  796. return tarteaucitron.engage(id);
  797. });
  798. }
  799. };
  800. // pubdirecte
  801. tarteaucitron.services.pubdirecte = {
  802. "key": "pubdirecte",
  803. "type": "ads",
  804. "name": "Pubdirecte",
  805. "uri": "http://pubdirecte.com/contact.php",
  806. "needConsent": true,
  807. "cookies": [],
  808. "js": function () {
  809. "use strict";
  810. var uniqIds = [],
  811. i,
  812. uri;
  813. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  814. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  815. uniqIds.push(uniqId);
  816. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  817. });
  818. for (i = 0; i < uniqIds.length; i += 1) {
  819. uri = '//www.pubdirecte.com/script/banniere.php?';
  820. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  821. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  822. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  823. }
  824. },
  825. "fallback": function () {
  826. "use strict";
  827. var id = 'pubdirecte';
  828. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  829. }
  830. };
  831. // shareaholic
  832. tarteaucitron.services.shareaholic = {
  833. "key": "shareaholic",
  834. "type": "social",
  835. "name": "Shareaholic",
  836. "uri": "https://shareaholic.com/privacy/choices",
  837. "needConsent": true,
  838. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  839. "js": function () {
  840. "use strict";
  841. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  842. return;
  843. }
  844. tarteaucitron.fallback(['shareaholic-canvas'], '');
  845. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  846. try {
  847. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  848. } catch (e) {}
  849. });
  850. },
  851. "fallback": function () {
  852. "use strict";
  853. var id = 'shareaholic';
  854. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  855. }
  856. };
  857. // sharethis
  858. tarteaucitron.services.sharethis = {
  859. "key": "sharethis",
  860. "type": "social",
  861. "name": "ShareThis",
  862. "uri": "http://www.sharethis.com/legal/privacy/",
  863. "needConsent": true,
  864. "cookies": ['__unam'],
  865. "js": function () {
  866. "use strict";
  867. if (tarteaucitron.user.sharethisPublisher === undefined) {
  868. return;
  869. }
  870. var switchTo5x = true,
  871. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  872. tarteaucitron.fallback(['tacSharethis'], '');
  873. tarteaucitron.addScript(uri, '', function () {
  874. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  875. });
  876. if (tarteaucitron.isAjax === true) {
  877. if (typeof stButtons !== "undefined") {
  878. stButtons.locateElements();
  879. }
  880. }
  881. },
  882. "fallback": function () {
  883. "use strict";
  884. var id = 'sharethis';
  885. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  886. }
  887. };
  888. // slideshare
  889. tarteaucitron.services.slideshare = {
  890. "key": "slideshare",
  891. "type": "video",
  892. "name": "SlideShare",
  893. "uri": "https://www.linkedin.com/legal/privacy-policy",
  894. "needConsent": true,
  895. "cookies": [],
  896. "js": function () {
  897. "use strict";
  898. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  899. var id = x.getAttribute("data-id"),
  900. width = x.getAttribute("width"),
  901. height = x.getAttribute("height"),
  902. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  903. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  904. });
  905. },
  906. "fallback": function () {
  907. "use strict";
  908. var id = 'slideshare';
  909. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  910. elem.style.width = elem.getAttribute('width') + 'px';
  911. elem.style.height = elem.getAttribute('height') + 'px';
  912. return tarteaucitron.engage(id);
  913. });
  914. }
  915. };
  916. // statcounter
  917. tarteaucitron.services.statcounter = {
  918. "key": "statcounter",
  919. "type": "analytic",
  920. "name": "StatCounter",
  921. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  922. "needConsent": true,
  923. "cookies": ['sc_is_visitor_unique'],
  924. "js": function () {
  925. "use strict";
  926. var uniqIds = [],
  927. i,
  928. uri = '//statcounter.com/counter/counter.js';
  929. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  930. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  931. uniqIds.push(uniqId);
  932. return '<div id="' + uniqId + '"></div>';
  933. });
  934. for (i = 0; i < uniqIds.length; i += 1) {
  935. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  936. }
  937. },
  938. "fallback": function () {
  939. "use strict";
  940. var id = 'statcounter';
  941. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  942. }
  943. };
  944. // timelinejs
  945. tarteaucitron.services.timelinejs = {
  946. "key": "timelinejs",
  947. "type": "api",
  948. "name": "Timeline JS",
  949. "uri": "http://timeline.knightlab.com/#help",
  950. "needConsent": true,
  951. "cookies": [],
  952. "js": function () {
  953. "use strict";
  954. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  955. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  956. width = x.getAttribute("width"),
  957. height = x.getAttribute("height"),
  958. lang = x.getAttribute("lang_2_letter"),
  959. font = x.getAttribute("font"),
  960. map = x.getAttribute("map"),
  961. start_at_end = x.getAttribute("start_at_end"),
  962. hash_bookmark = x.getAttribute("hash_bookmark"),
  963. start_at_slide = x.getAttribute("start_at_slide"),
  964. start_zoom = x.getAttribute("start_zoom"),
  965. 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;
  966. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  967. });
  968. },
  969. "fallback": function () {
  970. "use strict";
  971. var id = 'timelinejs';
  972. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  973. elem.style.width = elem.getAttribute('width') + 'px';
  974. elem.style.height = elem.getAttribute('height') + 'px';
  975. return tarteaucitron.engage(id);
  976. });
  977. }
  978. };
  979. // typekit
  980. tarteaucitron.services.typekit = {
  981. "key": "typekit",
  982. "type": "api",
  983. "name": "Typekit (adobe)",
  984. "uri": "http://www.adobe.com/fr/privacy.html",
  985. "needConsent": true,
  986. "cookies": [],
  987. "js": function () {
  988. "use strict";
  989. if (tarteaucitron.user.typekitId === undefined) {
  990. return;
  991. }
  992. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  993. try {
  994. Typekit.load();
  995. } catch (e) {}
  996. });
  997. }
  998. };
  999. // twenga
  1000. tarteaucitron.services.twenga = {
  1001. "key": "twenga",
  1002. "type": "ads",
  1003. "name": "Twenga",
  1004. "uri": "http://www.twenga.com/privacy.php",
  1005. "needConsent": true,
  1006. "cookies": [],
  1007. "js": function () {
  1008. "use strict";
  1009. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1010. return;
  1011. }
  1012. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1013. }
  1014. };
  1015. // twitter
  1016. tarteaucitron.services.twitter = {
  1017. "key": "twitter",
  1018. "type": "social",
  1019. "name": "Twitter",
  1020. "uri": "https://support.twitter.com/articles/20170514",
  1021. "needConsent": true,
  1022. "cookies": [],
  1023. "js": function () {
  1024. "use strict";
  1025. tarteaucitron.fallback(['tacTwitter'], '');
  1026. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1027. },
  1028. "fallback": function () {
  1029. "use strict";
  1030. var id = 'twitter';
  1031. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1032. }
  1033. };
  1034. // twitter embed
  1035. tarteaucitron.services.twitterembed = {
  1036. "key": "twitterembed",
  1037. "type": "social",
  1038. "name": "Twitter (cards)",
  1039. "uri": "https://support.twitter.com/articles/20170514",
  1040. "needConsent": true,
  1041. "cookies": [],
  1042. "js": function () {
  1043. "use strict";
  1044. var uniqIds = [],
  1045. i,
  1046. e,
  1047. html;
  1048. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1049. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1050. uniqIds.push(uniqId);
  1051. html = '<div id="' + uniqId + '" ';
  1052. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1053. html += 'theme="' + x.getAttribute('theme') + '" ';
  1054. html += 'cards="' + x.getAttribute('cards') + '" ';
  1055. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1056. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1057. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1058. html += '></div>';
  1059. return html;
  1060. });
  1061. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1062. for (i = 0; i < uniqIds.length; i += 1) {
  1063. e = document.getElementById(uniqIds[i]);
  1064. twttr.widgets.createTweet(
  1065. e.getAttribute('tweetid'),
  1066. e,
  1067. {
  1068. theme: e.getAttribute('theme'),
  1069. cards: e.getAttribute('cards'),
  1070. conversation: e.getAttribute('conversation'),
  1071. lang: tarteaucitron.getLanguage(),
  1072. dnt: true,
  1073. width: e.getAttribute('data-width'),
  1074. align: e.getAttribute('data-align')
  1075. }
  1076. );
  1077. }
  1078. });
  1079. },
  1080. "fallback": function () {
  1081. "use strict";
  1082. var id = 'twitterembed';
  1083. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1084. elem.style.width = elem.getAttribute('data-width') + 'px';
  1085. return tarteaucitron.engage(id);
  1086. });
  1087. }
  1088. };
  1089. // twitter timeline
  1090. tarteaucitron.services.twittertimeline = {
  1091. "key": "twittertimeline",
  1092. "type": "social",
  1093. "name": "Twitter (timelines)",
  1094. "uri": "https://support.twitter.com/articles/20170514",
  1095. "needConsent": true,
  1096. "cookies": [],
  1097. "js": function () {
  1098. "use strict";
  1099. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1100. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1101. },
  1102. "fallback": function () {
  1103. "use strict";
  1104. var id = 'twittertimeline';
  1105. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1106. }
  1107. };
  1108. // user voice
  1109. tarteaucitron.services.uservoice = {
  1110. "key": "uservoice",
  1111. "type": "support",
  1112. "name": "UserVoice",
  1113. "uri": "https://www.uservoice.com/privacy/",
  1114. "needConsent": true,
  1115. "cookies": [],
  1116. "js": function () {
  1117. "use strict";
  1118. if (tarteaucitron.user.userVoiceApi === undefined) {
  1119. return;
  1120. }
  1121. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1122. }
  1123. };
  1124. // vimeo
  1125. tarteaucitron.services.vimeo = {
  1126. "key": "vimeo",
  1127. "type": "video",
  1128. "name": "Vimeo",
  1129. "uri": "http://vimeo.com/privacy",
  1130. "needConsent": true,
  1131. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1132. "js": function () {
  1133. "use strict";
  1134. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1135. var video_id = x.getAttribute("videoID"),
  1136. video_width = x.getAttribute("width"),
  1137. frame_width = 'width=',
  1138. video_height = x.getAttribute("height"),
  1139. frame_height = 'height=',
  1140. video_frame;
  1141. if (video_id === undefined) {
  1142. return "";
  1143. }
  1144. if (video_width !== undefined) {
  1145. frame_width += '"' + video_width + '" ';
  1146. } else {
  1147. frame_width += '"" ';
  1148. }
  1149. if (video_height !== undefined) {
  1150. frame_height += '"' + video_height + '" ';
  1151. } else {
  1152. frame_height += '"" ';
  1153. }
  1154. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1155. return video_frame;
  1156. });
  1157. },
  1158. "fallback": function () {
  1159. "use strict";
  1160. var id = 'vimeo';
  1161. tarteaucitron.fallback(['vimeo_player'], 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. // visualrevenue
  1169. tarteaucitron.services.visualrevenue = {
  1170. "key": "visualrevenue",
  1171. "type": "analytic",
  1172. "name": "VisualRevenue",
  1173. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1174. "needConsent": true,
  1175. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1176. "js": function () {
  1177. "use strict";
  1178. if (tarteaucitron.user.visualrevenueId === undefined) {
  1179. return;
  1180. }
  1181. window._vrq = window._vrq || [];
  1182. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1183. window._vrq.push(['automate', true]);
  1184. window._vrq.push(['track', function () {}]);
  1185. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1186. }
  1187. };
  1188. // vshop
  1189. tarteaucitron.services.vshop = {
  1190. "key": "vshop",
  1191. "type": "ads",
  1192. "name": "vShop",
  1193. "uri": "http://vshop.fr/privacy-policy",
  1194. "needConsent": true,
  1195. "cookies": [],
  1196. "js": function () {
  1197. "use strict";
  1198. tarteaucitron.fallback(['vcashW'], '');
  1199. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1200. },
  1201. "fallback": function () {
  1202. "use strict";
  1203. var id = 'vshop';
  1204. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1205. }
  1206. };
  1207. // xiti
  1208. tarteaucitron.services.xiti = {
  1209. "key": "xiti",
  1210. "type": "analytic",
  1211. "name": "Xiti",
  1212. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1213. "needConsent": true,
  1214. "cookies": [],
  1215. "js": function () {
  1216. "use strict";
  1217. if (tarteaucitron.user.xitiId === undefined) {
  1218. return;
  1219. }
  1220. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1221. Xt_r,
  1222. Xt_h,
  1223. Xt_i,
  1224. Xt_s,
  1225. div = document.createElement('div');
  1226. try {
  1227. Xt_r = top.document.referrer;
  1228. } catch (e) {
  1229. Xt_r = document.referrer;
  1230. }
  1231. Xt_h = new Date();
  1232. Xt_i = '<img style="display:none" border="0" alt="" ';
  1233. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1234. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1235. if (parseFloat(navigator.appVersion) >= 4) {
  1236. Xt_s = screen;
  1237. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1238. }
  1239. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1240. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1241. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1242. tarteaucitron.user.xitiMore();
  1243. }
  1244. }
  1245. };
  1246. // youtube
  1247. tarteaucitron.services.youtube = {
  1248. "key": "youtube",
  1249. "type": "video",
  1250. "name": "YouTube",
  1251. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1252. "needConsent": true,
  1253. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1254. "js": function () {
  1255. "use strict";
  1256. tarteaucitron.fallback(['youtube_player'], function (x) {
  1257. var video_id = x.getAttribute("videoID"),
  1258. video_width = x.getAttribute("width"),
  1259. frame_width = 'width=',
  1260. video_height = x.getAttribute("height"),
  1261. frame_height = 'height=',
  1262. video_frame,
  1263. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1264. if (video_id === undefined) {
  1265. return "";
  1266. }
  1267. if (video_width !== undefined) {
  1268. frame_width += '"' + video_width + '" ';
  1269. } else {
  1270. frame_width += '"" ';
  1271. }
  1272. if (video_height !== undefined) {
  1273. frame_height += '"' + video_height + '" ';
  1274. } else {
  1275. frame_height += '"" ';
  1276. }
  1277. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1278. return video_frame;
  1279. });
  1280. },
  1281. "fallback": function () {
  1282. "use strict";
  1283. var id = 'youtube';
  1284. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1285. elem.style.width = elem.getAttribute('width') + 'px';
  1286. elem.style.height = elem.getAttribute('height') + 'px';
  1287. return tarteaucitron.engage(id);
  1288. });
  1289. }
  1290. };
  1291. // zopim
  1292. tarteaucitron.services.zopim = {
  1293. "key": "zopim",
  1294. "type": "support",
  1295. "name": "Zopim",
  1296. "uri": "https://www.zopim.com/privacy",
  1297. "needConsent": true,
  1298. "cookies": ['__zlcid', '__zprivacy'],
  1299. "js": function () {
  1300. "use strict";
  1301. if (tarteaucitron.user.zopimID === undefined) {
  1302. return;
  1303. }
  1304. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1305. }
  1306. };