tarteaucitron.services.js 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  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. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
  639. window.tac_googlemaps_callback = function () {
  640. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  641. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  642. uniqIds.push(uniqId);
  643. 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>';
  644. });
  645. for (i = 0; i < uniqIds.length; i += 1) {
  646. mapOptions = {
  647. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  648. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  649. };
  650. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  651. }
  652. };
  653. },
  654. "fallback": function () {
  655. "use strict";
  656. var id = 'googlemaps';
  657. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  658. }
  659. };
  660. // google tag manager
  661. tarteaucitron.services.googletagmanager = {
  662. "key": "googletagmanager",
  663. "type": "api",
  664. "name": "Google Tag Manager",
  665. "uri": "http://www.google.com/ads/preferences/",
  666. "needConsent": true,
  667. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  668. "js": function () {
  669. "use strict";
  670. if (tarteaucitron.user.googletagmanagerId === undefined) {
  671. return;
  672. }
  673. window.dataLayer = window.dataLayer || [];
  674. window.dataLayer.push({
  675. 'gtm.start': new Date().getTime(),
  676. event: 'gtm.js'
  677. });
  678. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  679. }
  680. };
  681. // jsapi
  682. tarteaucitron.services.jsapi = {
  683. "key": "jsapi",
  684. "type": "api",
  685. "name": "Google jsapi",
  686. "uri": "http://www.google.com/policies/privacy/",
  687. "needConsent": true,
  688. "cookies": [],
  689. "js": function () {
  690. "use strict";
  691. tarteaucitron.addScript('//www.google.com/jsapi');
  692. }
  693. };
  694. // linkedin
  695. tarteaucitron.services.linkedin = {
  696. "key": "linkedin",
  697. "type": "social",
  698. "name": "Linkedin",
  699. "uri": "https://www.linkedin.com/legal/cookie_policy",
  700. "needConsent": true,
  701. "cookies": [],
  702. "js": function () {
  703. "use strict";
  704. tarteaucitron.fallback(['tacLinkedin'], '');
  705. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  706. if (tarteaucitron.isAjax === true) {
  707. if (typeof IN !== "undefined") {
  708. IN.parse();
  709. }
  710. }
  711. },
  712. "fallback": function () {
  713. "use strict";
  714. var id = 'linkedin';
  715. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  716. }
  717. };
  718. // pinterest
  719. tarteaucitron.services.pinterest = {
  720. "key": "pinterest",
  721. "type": "social",
  722. "name": "Pinterest",
  723. "uri": "https://about.pinterest.com/privacy-policy",
  724. "needConsent": true,
  725. "cookies": [],
  726. "js": function () {
  727. "use strict";
  728. tarteaucitron.fallback(['tacPinterest'], '');
  729. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  730. },
  731. "fallback": function () {
  732. "use strict";
  733. var id = 'pinterest';
  734. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  735. }
  736. };
  737. // prezi
  738. tarteaucitron.services.prezi = {
  739. "key": "prezi",
  740. "type": "video",
  741. "name": "Prezi",
  742. "uri": "https://prezi.com/privacy-policy/",
  743. "needConsent": true,
  744. "cookies": [],
  745. "js": function () {
  746. "use strict";
  747. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  748. var id = x.getAttribute("data-id"),
  749. width = x.getAttribute("width"),
  750. height = x.getAttribute("height"),
  751. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  752. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  753. });
  754. },
  755. "fallback": function () {
  756. "use strict";
  757. var id = 'prezi';
  758. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  759. elem.style.width = elem.getAttribute('width') + 'px';
  760. elem.style.height = elem.getAttribute('height') + 'px';
  761. return tarteaucitron.engage(id);
  762. });
  763. }
  764. };
  765. // pubdirecte
  766. tarteaucitron.services.pubdirecte = {
  767. "key": "pubdirecte",
  768. "type": "ads",
  769. "name": "Pubdirecte",
  770. "uri": "http://pubdirecte.com/contact.php",
  771. "needConsent": true,
  772. "cookies": [],
  773. "js": function () {
  774. "use strict";
  775. var uniqIds = [],
  776. i,
  777. uri;
  778. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  779. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  780. uniqIds.push(uniqId);
  781. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  782. });
  783. for (i = 0; i < uniqIds.length; i += 1) {
  784. uri = '//www.pubdirecte.com/script/banniere.php?';
  785. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  786. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  787. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  788. }
  789. },
  790. "fallback": function () {
  791. "use strict";
  792. var id = 'pubdirecte';
  793. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  794. }
  795. };
  796. // shareaholic
  797. tarteaucitron.services.shareaholic = {
  798. "key": "shareaholic",
  799. "type": "social",
  800. "name": "Shareaholic",
  801. "uri": "https://shareaholic.com/privacy/choices",
  802. "needConsent": true,
  803. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  804. "js": function () {
  805. "use strict";
  806. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  807. return;
  808. }
  809. tarteaucitron.fallback(['shareaholic-canvas'], '');
  810. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  811. try {
  812. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  813. } catch (e) {}
  814. });
  815. },
  816. "fallback": function () {
  817. "use strict";
  818. var id = 'shareaholic';
  819. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  820. }
  821. };
  822. // sharethis
  823. tarteaucitron.services.sharethis = {
  824. "key": "sharethis",
  825. "type": "social",
  826. "name": "ShareThis",
  827. "uri": "http://www.sharethis.com/legal/privacy/",
  828. "needConsent": true,
  829. "cookies": ['__unam'],
  830. "js": function () {
  831. "use strict";
  832. if (tarteaucitron.user.sharethisPublisher === undefined) {
  833. return;
  834. }
  835. var switchTo5x = true,
  836. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  837. tarteaucitron.fallback(['tacSharethis'], '');
  838. tarteaucitron.addScript(uri, '', function () {
  839. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  840. });
  841. if (tarteaucitron.isAjax === true) {
  842. if (typeof stButtons !== "undefined") {
  843. stButtons.locateElements();
  844. }
  845. }
  846. },
  847. "fallback": function () {
  848. "use strict";
  849. var id = 'sharethis';
  850. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  851. }
  852. };
  853. // slideshare
  854. tarteaucitron.services.slideshare = {
  855. "key": "slideshare",
  856. "type": "video",
  857. "name": "SlideShare",
  858. "uri": "https://www.linkedin.com/legal/privacy-policy",
  859. "needConsent": true,
  860. "cookies": [],
  861. "js": function () {
  862. "use strict";
  863. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  864. var id = x.getAttribute("data-id"),
  865. width = x.getAttribute("width"),
  866. height = x.getAttribute("height"),
  867. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  868. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  869. });
  870. },
  871. "fallback": function () {
  872. "use strict";
  873. var id = 'slideshare';
  874. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  875. elem.style.width = elem.getAttribute('width') + 'px';
  876. elem.style.height = elem.getAttribute('height') + 'px';
  877. return tarteaucitron.engage(id);
  878. });
  879. }
  880. };
  881. // statcounter
  882. tarteaucitron.services.statcounter = {
  883. "key": "statcounter",
  884. "type": "analytic",
  885. "name": "StatCounter",
  886. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  887. "needConsent": true,
  888. "cookies": ['sc_is_visitor_unique'],
  889. "js": function () {
  890. "use strict";
  891. var uniqIds = [],
  892. i,
  893. uri = '//statcounter.com/counter/counter.js';
  894. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  895. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  896. uniqIds.push(uniqId);
  897. return '<div id="' + uniqId + '"></div>';
  898. });
  899. for (i = 0; i < uniqIds.length; i += 1) {
  900. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  901. }
  902. },
  903. "fallback": function () {
  904. "use strict";
  905. var id = 'statcounter';
  906. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  907. }
  908. };
  909. // timelinejs
  910. tarteaucitron.services.timelinejs = {
  911. "key": "timelinejs",
  912. "type": "api",
  913. "name": "Timeline JS",
  914. "uri": "http://timeline.knightlab.com/#help",
  915. "needConsent": true,
  916. "cookies": [],
  917. "js": function () {
  918. "use strict";
  919. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  920. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  921. width = x.getAttribute("width"),
  922. height = x.getAttribute("height"),
  923. lang = x.getAttribute("lang_2_letter"),
  924. font = x.getAttribute("font"),
  925. map = x.getAttribute("map"),
  926. start_at_end = x.getAttribute("start_at_end"),
  927. hash_bookmark = x.getAttribute("hash_bookmark"),
  928. start_at_slide = x.getAttribute("start_at_slide"),
  929. start_zoom = x.getAttribute("start_zoom"),
  930. url = '//cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=' + spreadsheet_id + '&font=' + font + '&maptype=' + map + '&lang=' + lang + '&start_at_end=' + start_at_end + '&hash_bookmark=' + hash_bookmark + '&start_at_slide=' + start_at_slide + '&start_zoom_adjust=' + start_zoom + '&height=' + height;
  931. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  932. });
  933. },
  934. "fallback": function () {
  935. "use strict";
  936. var id = 'timelinejs';
  937. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  938. elem.style.width = elem.getAttribute('width') + 'px';
  939. elem.style.height = elem.getAttribute('height') + 'px';
  940. return tarteaucitron.engage(id);
  941. });
  942. }
  943. };
  944. // typekit
  945. tarteaucitron.services.typekit = {
  946. "key": "typekit",
  947. "type": "api",
  948. "name": "Typekit (adobe)",
  949. "uri": "http://www.adobe.com/fr/privacy.html",
  950. "needConsent": true,
  951. "cookies": [],
  952. "js": function () {
  953. "use strict";
  954. if (tarteaucitron.user.typekitId === undefined) {
  955. return;
  956. }
  957. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  958. try {
  959. Typekit.load();
  960. } catch (e) {}
  961. });
  962. }
  963. };
  964. // twitter
  965. tarteaucitron.services.twitter = {
  966. "key": "twitter",
  967. "type": "social",
  968. "name": "Twitter",
  969. "uri": "https://support.twitter.com/articles/20170514",
  970. "needConsent": true,
  971. "cookies": [],
  972. "js": function () {
  973. "use strict";
  974. tarteaucitron.fallback(['tacTwitter'], '');
  975. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  976. },
  977. "fallback": function () {
  978. "use strict";
  979. var id = 'twitter';
  980. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  981. }
  982. };
  983. // twitter embed
  984. tarteaucitron.services.twitterembed = {
  985. "key": "twitterembed",
  986. "type": "social",
  987. "name": "Twitter (cards)",
  988. "uri": "https://support.twitter.com/articles/20170514",
  989. "needConsent": true,
  990. "cookies": [],
  991. "js": function () {
  992. "use strict";
  993. var uniqIds = [],
  994. i,
  995. e,
  996. html;
  997. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  998. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  999. uniqIds.push(uniqId);
  1000. html = '<div id="' + uniqId + '" ';
  1001. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1002. html += 'theme="' + x.getAttribute('theme') + '" ';
  1003. html += 'cards="' + x.getAttribute('cards') + '" ';
  1004. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1005. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1006. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1007. html += '></div>';
  1008. return html;
  1009. });
  1010. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1011. for (i = 0; i < uniqIds.length; i += 1) {
  1012. e = document.getElementById(uniqIds[i]);
  1013. twttr.widgets.createTweet(
  1014. e.getAttribute('tweetid'),
  1015. e,
  1016. {
  1017. theme: e.getAttribute('theme'),
  1018. cards: e.getAttribute('cards'),
  1019. conversation: e.getAttribute('conversation'),
  1020. lang: tarteaucitron.getLanguage(),
  1021. dnt: true,
  1022. width: e.getAttribute('data-width'),
  1023. align: e.getAttribute('data-align')
  1024. }
  1025. );
  1026. }
  1027. });
  1028. },
  1029. "fallback": function () {
  1030. "use strict";
  1031. var id = 'twitterembed';
  1032. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1033. elem.style.width = elem.getAttribute('data-width') + 'px';
  1034. return tarteaucitron.engage(id);
  1035. });
  1036. }
  1037. };
  1038. // twitter timeline
  1039. tarteaucitron.services.twittertimeline = {
  1040. "key": "twittertimeline",
  1041. "type": "social",
  1042. "name": "Twitter (timelines)",
  1043. "uri": "https://support.twitter.com/articles/20170514",
  1044. "needConsent": true,
  1045. "cookies": [],
  1046. "js": function () {
  1047. "use strict";
  1048. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1049. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1050. },
  1051. "fallback": function () {
  1052. "use strict";
  1053. var id = 'twittertimeline';
  1054. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1055. }
  1056. };
  1057. // user voice
  1058. tarteaucitron.services.uservoice = {
  1059. "key": "uservoice",
  1060. "type": "support",
  1061. "name": "UserVoice",
  1062. "uri": "https://www.uservoice.com/privacy/",
  1063. "needConsent": true,
  1064. "cookies": [],
  1065. "js": function () {
  1066. "use strict";
  1067. if (tarteaucitron.user.userVoiceApi === undefined) {
  1068. return;
  1069. }
  1070. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1071. }
  1072. };
  1073. // vimeo
  1074. tarteaucitron.services.vimeo = {
  1075. "key": "vimeo",
  1076. "type": "video",
  1077. "name": "Vimeo",
  1078. "uri": "http://vimeo.com/privacy",
  1079. "needConsent": true,
  1080. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1081. "js": function () {
  1082. "use strict";
  1083. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1084. var video_id = x.getAttribute("videoID"),
  1085. video_width = x.getAttribute("width"),
  1086. frame_width = 'width=',
  1087. video_height = x.getAttribute("height"),
  1088. frame_height = 'height=',
  1089. video_frame;
  1090. if (video_id === undefined) {
  1091. return "";
  1092. }
  1093. if (video_width !== undefined) {
  1094. frame_width += '"' + video_width + '" ';
  1095. } else {
  1096. frame_width += '"" ';
  1097. }
  1098. if (video_height !== undefined) {
  1099. frame_height += '"' + video_height + '" ';
  1100. } else {
  1101. frame_height += '"" ';
  1102. }
  1103. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1104. return video_frame;
  1105. });
  1106. },
  1107. "fallback": function () {
  1108. "use strict";
  1109. var id = 'vimeo';
  1110. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1111. elem.style.width = elem.getAttribute('width') + 'px';
  1112. elem.style.height = elem.getAttribute('height') + 'px';
  1113. return tarteaucitron.engage(id);
  1114. });
  1115. }
  1116. };
  1117. // visualrevenue
  1118. tarteaucitron.services.visualrevenue = {
  1119. "key": "visualrevenue",
  1120. "type": "analytic",
  1121. "name": "VisualRevenue",
  1122. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1123. "needConsent": true,
  1124. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1125. "js": function () {
  1126. "use strict";
  1127. if (tarteaucitron.user.visualrevenueId === undefined) {
  1128. return;
  1129. }
  1130. window._vrq = window._vrq || [];
  1131. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1132. window._vrq.push(['automate', true]);
  1133. window._vrq.push(['track', function () {}]);
  1134. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1135. }
  1136. };
  1137. // vshop
  1138. tarteaucitron.services.vshop = {
  1139. "key": "vshop",
  1140. "type": "ads",
  1141. "name": "vShop",
  1142. "uri": "http://vshop.fr/privacy-policy",
  1143. "needConsent": true,
  1144. "cookies": [],
  1145. "js": function () {
  1146. "use strict";
  1147. tarteaucitron.fallback(['vcashW'], '');
  1148. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1149. },
  1150. "fallback": function () {
  1151. "use strict";
  1152. var id = 'vshop';
  1153. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1154. }
  1155. };
  1156. // xiti
  1157. tarteaucitron.services.xiti = {
  1158. "key": "xiti",
  1159. "type": "analytic",
  1160. "name": "Xiti",
  1161. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1162. "needConsent": true,
  1163. "cookies": [],
  1164. "js": function () {
  1165. "use strict";
  1166. if (tarteaucitron.user.xitiId === undefined) {
  1167. return;
  1168. }
  1169. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1170. Xt_r,
  1171. Xt_h,
  1172. Xt_i,
  1173. Xt_s,
  1174. div = document.createElement('div');
  1175. try {
  1176. Xt_r = top.document.referrer;
  1177. } catch (e) {
  1178. Xt_r = document.referrer;
  1179. }
  1180. Xt_h = new Date();
  1181. Xt_i = '<img style="display:none" border="0" alt="" ';
  1182. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1183. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1184. if (parseFloat(navigator.appVersion) >= 4) {
  1185. Xt_s = screen;
  1186. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1187. }
  1188. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1189. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1190. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1191. tarteaucitron.user.xitiMore();
  1192. }
  1193. }
  1194. };
  1195. // youtube
  1196. tarteaucitron.services.youtube = {
  1197. "key": "youtube",
  1198. "type": "video",
  1199. "name": "YouTube",
  1200. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1201. "needConsent": true,
  1202. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1203. "js": function () {
  1204. "use strict";
  1205. tarteaucitron.fallback(['youtube_player'], function (x) {
  1206. var video_id = x.getAttribute("videoID"),
  1207. video_width = x.getAttribute("width"),
  1208. frame_width = 'width=',
  1209. video_height = x.getAttribute("height"),
  1210. frame_height = 'height=',
  1211. video_frame,
  1212. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1213. if (video_id === undefined) {
  1214. return "";
  1215. }
  1216. if (video_width !== undefined) {
  1217. frame_width += '"' + video_width + '" ';
  1218. } else {
  1219. frame_width += '"" ';
  1220. }
  1221. if (video_height !== undefined) {
  1222. frame_height += '"' + video_height + '" ';
  1223. } else {
  1224. frame_height += '"" ';
  1225. }
  1226. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1227. return video_frame;
  1228. });
  1229. },
  1230. "fallback": function () {
  1231. "use strict";
  1232. var id = 'youtube';
  1233. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1234. elem.style.width = elem.getAttribute('width') + 'px';
  1235. elem.style.height = elem.getAttribute('height') + 'px';
  1236. return tarteaucitron.engage(id);
  1237. });
  1238. }
  1239. };
  1240. // zopim
  1241. tarteaucitron.services.zopim = {
  1242. "key": "zopim",
  1243. "type": "support",
  1244. "name": "Zopim",
  1245. "uri": "https://www.zopim.com/privacy",
  1246. "needConsent": true,
  1247. "cookies": ['__zlcid', '__zprivacy'],
  1248. "js": function () {
  1249. "use strict";
  1250. if (tarteaucitron.user.zopimID === undefined) {
  1251. return;
  1252. }
  1253. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1254. }
  1255. };