tarteaucitron.services.js 44 KB

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