tarteaucitron.services.js 47 KB

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