tarteaucitron.services.js 43 KB

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