tarteaucitron.services.js 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr, PCWidget*/
  2. /*jslint regexp: true, nomen: true*/
  3. // addthis
  4. tarteaucitron.services.addthis = {
  5. "key": "addthis",
  6. "type": "social",
  7. "name": "AddThis",
  8. "uri": "http://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  9. "needConsent": true,
  10. "cookies": ['__atuvc', '__atuvs'],
  11. "js": function () {
  12. "use strict";
  13. if (tarteaucitron.user.addthisPubId === undefined) {
  14. return;
  15. }
  16. if (tarteaucitron.isAjax === true) {
  17. window.addthis = null;
  18. window._adr = null;
  19. window._atc = null;
  20. window._atd = null;
  21. window._ate = null;
  22. window._atr = null;
  23. window._atw = null;
  24. }
  25. tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
  26. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  27. },
  28. "fallback": function () {
  29. "use strict";
  30. var id = 'addthis';
  31. tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
  32. }
  33. };
  34. // addtoanyfeed
  35. tarteaucitron.services.addtoanyfeed = {
  36. "key": "addtoanyfeed",
  37. "type": "social",
  38. "name": "AddToAny (feed)",
  39. "uri": "https://www.addtoany.com/privacy",
  40. "needConsent": true,
  41. "cookies": [],
  42. "js": function () {
  43. "use strict";
  44. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  45. return;
  46. }
  47. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  48. window.a2a_config = window.a2a_config || {};
  49. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  50. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  51. },
  52. "fallback": function () {
  53. "use strict";
  54. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  55. }
  56. };
  57. // addtoanyshare
  58. tarteaucitron.services.addtoanyshare = {
  59. "key": "addtoanyshare",
  60. "type": "social",
  61. "name": "AddToAny (share)",
  62. "uri": "https://www.addtoany.com/privacy",
  63. "needConsent": true,
  64. "cookies": [],
  65. "js": function () {
  66. "use strict";
  67. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  68. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  69. },
  70. "fallback": function () {
  71. "use strict";
  72. var id = 'addtoanyshare';
  73. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  74. }
  75. };
  76. // alexa
  77. tarteaucitron.services.alexa = {
  78. "key": "alexa",
  79. "type": "analytic",
  80. "name": "Alexa",
  81. "uri": "http://www.alexa.com/help/privacy",
  82. "needConsent": true,
  83. "cookies": ['__asc', '__auc'],
  84. "js": function () {
  85. "use strict";
  86. if (tarteaucitron.user.alexaAccountID === undefined) {
  87. return;
  88. }
  89. window._atrk_opts = {
  90. atrk_acct: tarteaucitron.user.alexaAccountID,
  91. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  92. dynamic: true
  93. };
  94. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  95. }
  96. };
  97. // amazon
  98. tarteaucitron.services.amazon = {
  99. "key": "amazon",
  100. "type": "ads",
  101. "name": "Amazon",
  102. "uri": "http://www.amazon.fr/gp/help/customer/display.html?ie=UTF8&*Version*=1&*entries*=0&nodeId=201149360",
  103. "needConsent": true,
  104. "cookies": [],
  105. "js": function () {
  106. "use strict";
  107. tarteaucitron.fallback(['amazon_product'], function (x) {
  108. var amazonId = x.getAttribute("amazonid"),
  109. productId = x.getAttribute("productid"),
  110. url = '//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=' + tarteaucitron.getLanguage().toUpperCase() + '&source=ss&ref=ss_til&ad_type=product_link&tracking_id=' + amazonId + '&marketplace=amazon&region=' + tarteaucitron.getLanguage().toUpperCase() + '&placement=' + productId + '&asins=' + productId + '&show_border=true&link_opens_in_new_window=true',
  111. iframe = '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="' + url + '"></iframe>';
  112. return iframe;
  113. });
  114. },
  115. "fallback": function () {
  116. "use strict";
  117. var id = 'amazon';
  118. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  119. }
  120. };
  121. // calameo
  122. tarteaucitron.services.calameo = {
  123. "key": "calameo",
  124. "type": "video",
  125. "name": "Calameo",
  126. "uri": "http://fr.calameo.com/privacy",
  127. "needConsent": true,
  128. "cookies": [],
  129. "js": function () {
  130. "use strict";
  131. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  132. var id = x.getAttribute("data-id"),
  133. width = x.getAttribute("width"),
  134. height = x.getAttribute("height"),
  135. url = '//v.calameo.com/?bkcode=' + id;
  136. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  137. });
  138. },
  139. "fallback": function () {
  140. "use strict";
  141. var id = 'calameo';
  142. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  143. elem.style.width = elem.getAttribute('width') + 'px';
  144. elem.style.height = elem.getAttribute('height') + 'px';
  145. return tarteaucitron.engage(id);
  146. });
  147. }
  148. };
  149. // clicky
  150. tarteaucitron.services.clicky = {
  151. "key": "clicky",
  152. "type": "analytic",
  153. "name": "Clicky",
  154. "uri": "https://clicky.com/terms",
  155. "needConsent": true,
  156. "cookies": ['_jsuid', '_eventqueue', '_referrer_og', '_utm_og', '_first_pageview', 'clicky_olark', 'no_trackyy_' + tarteaucitron.user.clickyId, 'unpoco_' + tarteaucitron.user.clickyId, 'heatmaps_g2g_' + tarteaucitron.user.clickyId],
  157. "js": function () {
  158. "use strict";
  159. if (tarteaucitron.user.clickyId === undefined) {
  160. return;
  161. }
  162. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  163. if (typeof clicky.init === 'function') {
  164. clicky.init(tarteaucitron.user.clickyId);
  165. }
  166. if (typeof tarteaucitron.user.clickyMore === 'function') {
  167. tarteaucitron.user.clickyMore();
  168. }
  169. });
  170. }
  171. };
  172. // clicmanager
  173. tarteaucitron.services.clicmanager = {
  174. "key": "clicmanager",
  175. "type": "ads",
  176. "name": "Clicmanager",
  177. "uri": "http://www.clicmanager.fr/infos_legales.php",
  178. "needConsent": true,
  179. "cookies": [],
  180. "js": function () {
  181. "use strict";
  182. var uniqIds = [],
  183. i,
  184. uri;
  185. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  186. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  187. uniqIds.push(uniqId);
  188. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  189. });
  190. for (i = 0; i < uniqIds.length; i += 1) {
  191. uri = '//ads.clicmanager.fr/exe.php?';
  192. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  193. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  194. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  195. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  196. }
  197. },
  198. "fallback": function () {
  199. "use strict";
  200. var id = 'clicmanager';
  201. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  202. }
  203. };
  204. // crazyegg
  205. tarteaucitron.services.crazyegg = {
  206. "key": "crazyegg",
  207. "type": "analytic",
  208. "name": "Crazy Egg",
  209. "uri": "https://www.crazyegg.com/privacy",
  210. "needConsent": true,
  211. "cookies": [],
  212. "js": function () {
  213. "use strict";
  214. if (tarteaucitron.user.crazyeggId === undefined) {
  215. return;
  216. }
  217. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  218. }
  219. };
  220. // criteo
  221. tarteaucitron.services.criteo = {
  222. "key": "criteo",
  223. "type": "ads",
  224. "name": "Criteo",
  225. "uri": "http://www.criteo.com/privacy/",
  226. "needConsent": true,
  227. "cookies": [],
  228. "js": function () {
  229. "use strict";
  230. document.MAX_ct0 = '';
  231. var uniqIds = [],
  232. i,
  233. uri;
  234. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  235. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  236. uniqIds.push(uniqId);
  237. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  238. });
  239. for (i = 0; i < uniqIds.length; i += 1) {
  240. uri = '//cas.criteo.com/delivery/ajs.php?';
  241. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  242. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  243. uri += '&loc=' + encodeURI(window.location);
  244. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  245. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  246. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  247. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  248. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  249. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  250. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  251. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  252. }
  253. },
  254. "fallback": function () {
  255. "use strict";
  256. var id = 'criteo';
  257. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  258. }
  259. };
  260. // dailymotion
  261. tarteaucitron.services.dailymotion = {
  262. "key": "dailymotion",
  263. "type": "video",
  264. "name": "Dailymotion",
  265. "uri": "http://www.dailymotion.com/legal/privacy",
  266. "needConsent": true,
  267. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  268. "js": function () {
  269. "use strict";
  270. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  271. var video_id = x.getAttribute("videoID"),
  272. video_width = x.getAttribute("width"),
  273. frame_width = 'width=',
  274. video_height = x.getAttribute("height"),
  275. frame_height = 'height=',
  276. video_frame,
  277. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  278. if (video_id === undefined) {
  279. return "";
  280. }
  281. if (video_width !== undefined) {
  282. frame_width += '"' + video_width + '" ';
  283. } else {
  284. frame_width += '"" ';
  285. }
  286. if (video_height !== undefined) {
  287. frame_height += '"' + video_height + '" ';
  288. } else {
  289. frame_height += '"" ';
  290. }
  291. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  292. return video_frame;
  293. });
  294. },
  295. "fallback": function () {
  296. "use strict";
  297. var id = 'dailymotion';
  298. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  299. elem.style.width = elem.getAttribute('width') + 'px';
  300. elem.style.height = elem.getAttribute('height') + 'px';
  301. return tarteaucitron.engage(id);
  302. });
  303. }
  304. };
  305. // disqus
  306. tarteaucitron.services.disqus = {
  307. "key": "disqus",
  308. "type": "comment",
  309. "name": "Disqus",
  310. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  311. "needConsent": true,
  312. "cookies": [],
  313. "js": function () {
  314. "use strict";
  315. if (tarteaucitron.user.disqusShortname === undefined) {
  316. return;
  317. }
  318. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  319. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  320. },
  321. "fallback": function () {
  322. "use strict";
  323. var id = 'disqus';
  324. if (document.getElementById('disqus_thread')) {
  325. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  326. }
  327. }
  328. };
  329. // ekomi
  330. tarteaucitron.services.ekomi = {
  331. "key": "ekomi",
  332. "type": "social",
  333. "name": "eKomi",
  334. "uri": "http://www.ekomi-us.com/us/privacy/",
  335. "needConsent": true,
  336. "cookies": [],
  337. "js": function () {
  338. "use strict";
  339. if (tarteaucitron.user.ekomiCertId === undefined) {
  340. return;
  341. }
  342. window.eKomiIntegrationConfig = [
  343. {certId: tarteaucitron.user.ekomiCertId}
  344. ];
  345. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  346. }
  347. };
  348. // facebook
  349. tarteaucitron.services.facebook = {
  350. "key": "facebook",
  351. "type": "social",
  352. "name": "Facebook",
  353. "uri": "https://www.facebook.com/help/cookies/",
  354. "needConsent": true,
  355. "cookies": [],
  356. "js": function () {
  357. "use strict";
  358. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  359. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  360. if (tarteaucitron.isAjax === true) {
  361. if (typeof FB !== "undefined") {
  362. FB.XFBML.parse();
  363. }
  364. }
  365. },
  366. "fallback": function () {
  367. "use strict";
  368. var id = 'facebook';
  369. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  370. }
  371. };
  372. // facebooklikebox
  373. tarteaucitron.services.facebooklikebox = {
  374. "key": "facebooklikebox",
  375. "type": "social",
  376. "name": "Facebook (like box)",
  377. "uri": "https://www.facebook.com/help/cookies/",
  378. "needConsent": true,
  379. "cookies": [],
  380. "js": function () {
  381. "use strict";
  382. tarteaucitron.fallback(['fb-like-box'], '');
  383. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  384. if (tarteaucitron.isAjax === true) {
  385. if (typeof FB !== "undefined") {
  386. FB.XFBML.parse();
  387. }
  388. }
  389. },
  390. "fallback": function () {
  391. "use strict";
  392. var id = 'facebooklikebox';
  393. tarteaucitron.fallback(['fb-like-box'], tarteaucitron.engage(id));
  394. }
  395. };
  396. // facebookcomment
  397. tarteaucitron.services.facebookcomment = {
  398. "key": "facebookcomment",
  399. "type": "comment",
  400. "name": "Facebook (commentaire)",
  401. "uri": "https://www.facebook.com/help/cookies/",
  402. "needConsent": true,
  403. "cookies": [],
  404. "js": function () {
  405. "use strict";
  406. tarteaucitron.fallback(['fb-comments'], '');
  407. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  408. if (tarteaucitron.isAjax === true) {
  409. if (typeof FB !== "undefined") {
  410. FB.XFBML.parse();
  411. }
  412. }
  413. },
  414. "fallback": function () {
  415. "use strict";
  416. var id = 'facebookcomment';
  417. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  418. }
  419. };
  420. // ferank
  421. tarteaucitron.services.ferank = {
  422. "key": "ferank",
  423. "type": "analytic",
  424. "name": "FERank",
  425. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  426. "needConsent": false,
  427. "cookies": [],
  428. "js": function () {
  429. "use strict";
  430. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  431. if (typeof tarteaucitron.user.ferankMore === 'function') {
  432. tarteaucitron.user.ferankMore();
  433. }
  434. });
  435. }
  436. };
  437. // ferank pub
  438. tarteaucitron.services.ferankpub = {
  439. "key": "ferankpub",
  440. "type": "ads",
  441. "name": "FERank (pub)",
  442. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  443. "needConsent": false,
  444. "cookies": [],
  445. "js": function () {
  446. "use strict";
  447. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  448. if (tarteaucitron.isAjax === true) {
  449. if (typeof ferankReady === 'function') {
  450. ferankReady();
  451. }
  452. }
  453. },
  454. "fallback": function () {
  455. "use strict";
  456. var id = 'ferankpub';
  457. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  458. }
  459. };
  460. // get+
  461. tarteaucitron.services.getplus = {
  462. "key": "getplus",
  463. "type": "analytic",
  464. "name": "Get+",
  465. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  466. "needConsent": true,
  467. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  468. "js": function () {
  469. "use strict";
  470. if (tarteaucitron.user.getplusId === undefined) {
  471. return;
  472. }
  473. window.webleads_site_ids = window.webleads_site_ids || [];
  474. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  475. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  476. }
  477. };
  478. // google+
  479. tarteaucitron.services.gplus = {
  480. "key": "gplus",
  481. "type": "social",
  482. "name": "Google+",
  483. "uri": "http://www.google.fr/intl/policies/privacy/",
  484. "needConsent": true,
  485. "cookies": [],
  486. "js": function () {
  487. "use strict";
  488. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  489. },
  490. "fallback": function () {
  491. "use strict";
  492. var id = 'gplus';
  493. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  494. }
  495. };
  496. // google+ badge
  497. tarteaucitron.services.gplusbadge = {
  498. "key": "gplusbadge",
  499. "type": "social",
  500. "name": "Google+ (badge)",
  501. "uri": "http://www.google.fr/intl/policies/privacy/",
  502. "needConsent": true,
  503. "cookies": [],
  504. "js": function () {
  505. "use strict";
  506. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  507. },
  508. "fallback": function () {
  509. "use strict";
  510. var id = 'gplusbadge';
  511. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  512. }
  513. };
  514. // google adsense
  515. tarteaucitron.services.adsense = {
  516. "key": "adsense",
  517. "type": "ads",
  518. "name": "Google Adsense",
  519. "uri": "http://www.google.com/ads/preferences/",
  520. "needConsent": true,
  521. "cookies": [],
  522. "js": function () {
  523. "use strict";
  524. tarteaucitron.addScript('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  525. },
  526. "fallback": function () {
  527. "use strict";
  528. var id = 'adsense';
  529. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  530. }
  531. };
  532. // google adsense search (form)
  533. tarteaucitron.services.adsensesearchform = {
  534. "key": "adsensesearchform",
  535. "type": "ads",
  536. "name": "Google Adsense Search (form)",
  537. "uri": "http://www.google.com/ads/preferences/",
  538. "needConsent": true,
  539. "cookies": [],
  540. "js": function () {
  541. "use strict";
  542. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  543. }
  544. };
  545. // google adsense search (result)
  546. tarteaucitron.services.adsensesearchresult = {
  547. "key": "adsensesearchresult",
  548. "type": "ads",
  549. "name": "Google Adsense Search (result)",
  550. "uri": "http://www.google.com/ads/preferences/",
  551. "needConsent": true,
  552. "cookies": [],
  553. "js": function () {
  554. "use strict";
  555. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  556. return;
  557. }
  558. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  559. },
  560. "fallback": function () {
  561. "use strict";
  562. var id = 'adsensesearchresult';
  563. if (document.getElementById('gcse_searchresults')) {
  564. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  565. }
  566. }
  567. };
  568. // googleadwordsconversion
  569. tarteaucitron.services.googleadwordsconversion = {
  570. "key": "googleadwordsconversion",
  571. "type": "ads",
  572. "name": "Google Adwords (conversion)",
  573. "uri": "https://www.google.com/settings/ads",
  574. "needConsent": true,
  575. "cookies": [],
  576. "js": function () {
  577. "use strict";
  578. if (tarteaucitron.user.adwordsconversionId === undefined) {
  579. return;
  580. }
  581. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  582. window.google_trackConversion({
  583. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  584. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  585. google_custom_params: {
  586. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  587. parameter2: tarteaucitron.user.adwordsconversionCustom2
  588. }
  589. });
  590. });
  591. }
  592. };
  593. // googleadwordsremarketing
  594. tarteaucitron.services.googleadwordsremarketing = {
  595. "key": "googleadwordsremarketing",
  596. "type": "ads",
  597. "name": "Google Adwords (remarketing)",
  598. "uri": "https://www.google.com/settings/ads",
  599. "needConsent": true,
  600. "cookies": [],
  601. "js": function () {
  602. "use strict";
  603. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  604. return;
  605. }
  606. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  607. window.google_trackConversion({
  608. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  609. google_remarketing_only: true
  610. });
  611. });
  612. }
  613. };
  614. // google analytics (old)
  615. tarteaucitron.services.gajs = {
  616. "key": "gajs",
  617. "type": "analytic",
  618. "name": "Google Analytics (ga.js)",
  619. "uri": "https://support.google.com/analytics/answer/6004245",
  620. "needConsent": true,
  621. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  622. "js": function () {
  623. "use strict";
  624. window._gaq = window._gaq || [];
  625. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  626. window._gaq.push(['_trackPageview']);
  627. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  628. if (typeof tarteaucitron.user.gajsMore === 'function') {
  629. tarteaucitron.user.gajsMore();
  630. }
  631. });
  632. }
  633. };
  634. // google analytics
  635. tarteaucitron.services.analytics = {
  636. "key": "analytics",
  637. "type": "analytic",
  638. "name": "Google Analytics (universal)",
  639. "uri": "https://support.google.com/analytics/answer/6004245",
  640. "needConsent": true,
  641. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  642. "js": function () {
  643. "use strict";
  644. window.GoogleAnalyticsObject = 'ga';
  645. window.ga = window.ga || function () {
  646. window.ga.q = window.ga.q || [];
  647. window.ga.q.push(arguments);
  648. };
  649. window.ga.l = new Date();
  650. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  651. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  652. ga('send', 'pageview');
  653. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  654. tarteaucitron.user.analyticsMore();
  655. }
  656. });
  657. }
  658. };
  659. // google maps
  660. tarteaucitron.services.googlemaps = {
  661. "key": "googlemaps",
  662. "type": "api",
  663. "name": "Google Maps",
  664. "uri": "http://www.google.com/ads/preferences/",
  665. "needConsent": true,
  666. "cookies": [],
  667. "js": function () {
  668. "use strict";
  669. var mapOptions,
  670. map,
  671. uniqIds = [],
  672. i;
  673. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
  674. window.tac_googlemaps_callback = function () {
  675. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  676. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  677. uniqIds.push(uniqId);
  678. return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>';
  679. });
  680. for (i = 0; i < uniqIds.length; i += 1) {
  681. mapOptions = {
  682. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  683. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  684. };
  685. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  686. }
  687. };
  688. },
  689. "fallback": function () {
  690. "use strict";
  691. var id = 'googlemaps';
  692. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  693. }
  694. };
  695. // google tag manager
  696. tarteaucitron.services.googletagmanager = {
  697. "key": "googletagmanager",
  698. "type": "api",
  699. "name": "Google Tag Manager",
  700. "uri": "http://www.google.com/ads/preferences/",
  701. "needConsent": true,
  702. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  703. "js": function () {
  704. "use strict";
  705. if (tarteaucitron.user.googletagmanagerId === undefined) {
  706. return;
  707. }
  708. window.dataLayer = window.dataLayer || [];
  709. window.dataLayer.push({
  710. 'gtm.start': new Date().getTime(),
  711. event: 'gtm.js'
  712. });
  713. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  714. }
  715. };
  716. // jsapi
  717. tarteaucitron.services.jsapi = {
  718. "key": "jsapi",
  719. "type": "api",
  720. "name": "Google jsapi",
  721. "uri": "http://www.google.com/policies/privacy/",
  722. "needConsent": true,
  723. "cookies": [],
  724. "js": function () {
  725. "use strict";
  726. tarteaucitron.addScript('//www.google.com/jsapi');
  727. }
  728. };
  729. // linkedin
  730. tarteaucitron.services.linkedin = {
  731. "key": "linkedin",
  732. "type": "social",
  733. "name": "Linkedin",
  734. "uri": "https://www.linkedin.com/legal/cookie_policy",
  735. "needConsent": true,
  736. "cookies": [],
  737. "js": function () {
  738. "use strict";
  739. tarteaucitron.fallback(['tacLinkedin'], '');
  740. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  741. if (tarteaucitron.isAjax === true) {
  742. if (typeof IN !== "undefined") {
  743. IN.parse();
  744. }
  745. }
  746. },
  747. "fallback": function () {
  748. "use strict";
  749. var id = 'linkedin';
  750. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  751. }
  752. };
  753. // pinterest
  754. tarteaucitron.services.pinterest = {
  755. "key": "pinterest",
  756. "type": "social",
  757. "name": "Pinterest",
  758. "uri": "https://about.pinterest.com/privacy-policy",
  759. "needConsent": true,
  760. "cookies": [],
  761. "js": function () {
  762. "use strict";
  763. tarteaucitron.fallback(['tacPinterest'], '');
  764. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  765. },
  766. "fallback": function () {
  767. "use strict";
  768. var id = 'pinterest';
  769. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  770. }
  771. };
  772. // prelinker
  773. tarteaucitron.services.prelinker = {
  774. "key": "prelinker",
  775. "type": "ads",
  776. "name": "Prelinker",
  777. "uri": "http://www.prelinker.com/index/index/cgu/",
  778. "needConsent": true,
  779. "cookies": [],
  780. "js": function () {
  781. "use strict";
  782. var uniqIds = [],
  783. i,
  784. uri;
  785. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  786. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  787. uniqIds.push(uniqId);
  788. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker=' + x.getAttribute('tracker') + '"></div>';
  789. });
  790. for (i = 0; i < uniqIds.length; i += 1) {
  791. uri = 'http://promo.easy-dating.org/banner/index?';
  792. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  793. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  794. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  795. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  796. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  797. }
  798. },
  799. "fallback": function () {
  800. "use strict";
  801. var id = 'prelinker';
  802. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  803. }
  804. };
  805. // prezi
  806. tarteaucitron.services.prezi = {
  807. "key": "prezi",
  808. "type": "video",
  809. "name": "Prezi",
  810. "uri": "https://prezi.com/privacy-policy/",
  811. "needConsent": true,
  812. "cookies": [],
  813. "js": function () {
  814. "use strict";
  815. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  816. var id = x.getAttribute("data-id"),
  817. width = x.getAttribute("width"),
  818. height = x.getAttribute("height"),
  819. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  820. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  821. });
  822. },
  823. "fallback": function () {
  824. "use strict";
  825. var id = 'prezi';
  826. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  827. elem.style.width = elem.getAttribute('width') + 'px';
  828. elem.style.height = elem.getAttribute('height') + 'px';
  829. return tarteaucitron.engage(id);
  830. });
  831. }
  832. };
  833. // pubdirecte
  834. tarteaucitron.services.pubdirecte = {
  835. "key": "pubdirecte",
  836. "type": "ads",
  837. "name": "Pubdirecte",
  838. "uri": "http://pubdirecte.com/contact.php",
  839. "needConsent": true,
  840. "cookies": [],
  841. "js": function () {
  842. "use strict";
  843. var uniqIds = [],
  844. i,
  845. uri;
  846. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  847. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  848. uniqIds.push(uniqId);
  849. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  850. });
  851. for (i = 0; i < uniqIds.length; i += 1) {
  852. uri = '//www.pubdirecte.com/script/banniere.php?';
  853. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  854. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  855. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  856. }
  857. },
  858. "fallback": function () {
  859. "use strict";
  860. var id = 'pubdirecte';
  861. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  862. }
  863. };
  864. // purechat
  865. tarteaucitron.services.purechat = {
  866. "key": "purechat",
  867. "type": "support",
  868. "name": "PureChat",
  869. "uri": "https://www.purechat.com/privacy",
  870. "needConsent": true,
  871. "cookies": [],
  872. "js": function () {
  873. "use strict";
  874. if (tarteaucitron.user.purechatId === undefined) {
  875. return;
  876. }
  877. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  878. try {
  879. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  880. } catch (e) {}
  881. });
  882. }
  883. };
  884. // shareaholic
  885. tarteaucitron.services.shareaholic = {
  886. "key": "shareaholic",
  887. "type": "social",
  888. "name": "Shareaholic",
  889. "uri": "https://shareaholic.com/privacy/choices",
  890. "needConsent": true,
  891. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  892. "js": function () {
  893. "use strict";
  894. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  895. return;
  896. }
  897. tarteaucitron.fallback(['shareaholic-canvas'], '');
  898. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  899. try {
  900. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  901. } catch (e) {}
  902. });
  903. },
  904. "fallback": function () {
  905. "use strict";
  906. var id = 'shareaholic';
  907. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  908. }
  909. };
  910. // sharethis
  911. tarteaucitron.services.sharethis = {
  912. "key": "sharethis",
  913. "type": "social",
  914. "name": "ShareThis",
  915. "uri": "http://www.sharethis.com/legal/privacy/",
  916. "needConsent": true,
  917. "cookies": ['__unam'],
  918. "js": function () {
  919. "use strict";
  920. if (tarteaucitron.user.sharethisPublisher === undefined) {
  921. return;
  922. }
  923. var switchTo5x = true,
  924. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  925. tarteaucitron.fallback(['tacSharethis'], '');
  926. tarteaucitron.addScript(uri, '', function () {
  927. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  928. });
  929. if (tarteaucitron.isAjax === true) {
  930. if (typeof stButtons !== "undefined") {
  931. stButtons.locateElements();
  932. }
  933. }
  934. },
  935. "fallback": function () {
  936. "use strict";
  937. var id = 'sharethis';
  938. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  939. }
  940. };
  941. // slideshare
  942. tarteaucitron.services.slideshare = {
  943. "key": "slideshare",
  944. "type": "video",
  945. "name": "SlideShare",
  946. "uri": "https://www.linkedin.com/legal/privacy-policy",
  947. "needConsent": true,
  948. "cookies": [],
  949. "js": function () {
  950. "use strict";
  951. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  952. var id = x.getAttribute("data-id"),
  953. width = x.getAttribute("width"),
  954. height = x.getAttribute("height"),
  955. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  956. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  957. });
  958. },
  959. "fallback": function () {
  960. "use strict";
  961. var id = 'slideshare';
  962. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  963. elem.style.width = elem.getAttribute('width') + 'px';
  964. elem.style.height = elem.getAttribute('height') + 'px';
  965. return tarteaucitron.engage(id);
  966. });
  967. }
  968. };
  969. // statcounter
  970. tarteaucitron.services.statcounter = {
  971. "key": "statcounter",
  972. "type": "analytic",
  973. "name": "StatCounter",
  974. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  975. "needConsent": true,
  976. "cookies": ['sc_is_visitor_unique'],
  977. "js": function () {
  978. "use strict";
  979. var uniqIds = [],
  980. i,
  981. uri = '//statcounter.com/counter/counter.js';
  982. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  983. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  984. uniqIds.push(uniqId);
  985. return '<div id="' + uniqId + '"></div>';
  986. });
  987. for (i = 0; i < uniqIds.length; i += 1) {
  988. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  989. }
  990. },
  991. "fallback": function () {
  992. "use strict";
  993. var id = 'statcounter';
  994. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  995. }
  996. };
  997. // timelinejs
  998. tarteaucitron.services.timelinejs = {
  999. "key": "timelinejs",
  1000. "type": "api",
  1001. "name": "Timeline JS",
  1002. "uri": "http://timeline.knightlab.com/#help",
  1003. "needConsent": true,
  1004. "cookies": [],
  1005. "js": function () {
  1006. "use strict";
  1007. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1008. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1009. width = x.getAttribute("width"),
  1010. height = x.getAttribute("height"),
  1011. lang = x.getAttribute("lang_2_letter"),
  1012. font = x.getAttribute("font"),
  1013. map = x.getAttribute("map"),
  1014. start_at_end = x.getAttribute("start_at_end"),
  1015. hash_bookmark = x.getAttribute("hash_bookmark"),
  1016. start_at_slide = x.getAttribute("start_at_slide"),
  1017. start_zoom = x.getAttribute("start_zoom"),
  1018. 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;
  1019. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1020. });
  1021. },
  1022. "fallback": function () {
  1023. "use strict";
  1024. var id = 'timelinejs';
  1025. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1026. elem.style.width = elem.getAttribute('width') + 'px';
  1027. elem.style.height = elem.getAttribute('height') + 'px';
  1028. return tarteaucitron.engage(id);
  1029. });
  1030. }
  1031. };
  1032. // typekit
  1033. tarteaucitron.services.typekit = {
  1034. "key": "typekit",
  1035. "type": "api",
  1036. "name": "Typekit (adobe)",
  1037. "uri": "http://www.adobe.com/fr/privacy.html",
  1038. "needConsent": true,
  1039. "cookies": [],
  1040. "js": function () {
  1041. "use strict";
  1042. if (tarteaucitron.user.typekitId === undefined) {
  1043. return;
  1044. }
  1045. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1046. try {
  1047. Typekit.load();
  1048. } catch (e) {}
  1049. });
  1050. }
  1051. };
  1052. // twenga
  1053. tarteaucitron.services.twenga = {
  1054. "key": "twenga",
  1055. "type": "ads",
  1056. "name": "Twenga",
  1057. "uri": "http://www.twenga.com/privacy.php",
  1058. "needConsent": true,
  1059. "cookies": [],
  1060. "js": function () {
  1061. "use strict";
  1062. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1063. return;
  1064. }
  1065. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1066. }
  1067. };
  1068. // twitter
  1069. tarteaucitron.services.twitter = {
  1070. "key": "twitter",
  1071. "type": "social",
  1072. "name": "Twitter",
  1073. "uri": "https://support.twitter.com/articles/20170514",
  1074. "needConsent": true,
  1075. "cookies": [],
  1076. "js": function () {
  1077. "use strict";
  1078. tarteaucitron.fallback(['tacTwitter'], '');
  1079. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1080. },
  1081. "fallback": function () {
  1082. "use strict";
  1083. var id = 'twitter';
  1084. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1085. }
  1086. };
  1087. // twitter embed
  1088. tarteaucitron.services.twitterembed = {
  1089. "key": "twitterembed",
  1090. "type": "social",
  1091. "name": "Twitter (cards)",
  1092. "uri": "https://support.twitter.com/articles/20170514",
  1093. "needConsent": true,
  1094. "cookies": [],
  1095. "js": function () {
  1096. "use strict";
  1097. var uniqIds = [],
  1098. i,
  1099. e,
  1100. html;
  1101. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1102. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1103. uniqIds.push(uniqId);
  1104. html = '<div id="' + uniqId + '" ';
  1105. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1106. html += 'theme="' + x.getAttribute('theme') + '" ';
  1107. html += 'cards="' + x.getAttribute('cards') + '" ';
  1108. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1109. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1110. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1111. html += '></div>';
  1112. return html;
  1113. });
  1114. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1115. for (i = 0; i < uniqIds.length; i += 1) {
  1116. e = document.getElementById(uniqIds[i]);
  1117. twttr.widgets.createTweet(
  1118. e.getAttribute('tweetid'),
  1119. e,
  1120. {
  1121. theme: e.getAttribute('theme'),
  1122. cards: e.getAttribute('cards'),
  1123. conversation: e.getAttribute('conversation'),
  1124. lang: tarteaucitron.getLanguage(),
  1125. dnt: true,
  1126. width: e.getAttribute('data-width'),
  1127. align: e.getAttribute('data-align')
  1128. }
  1129. );
  1130. }
  1131. });
  1132. },
  1133. "fallback": function () {
  1134. "use strict";
  1135. var id = 'twitterembed';
  1136. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1137. elem.style.width = elem.getAttribute('data-width') + 'px';
  1138. return tarteaucitron.engage(id);
  1139. });
  1140. }
  1141. };
  1142. // twitter timeline
  1143. tarteaucitron.services.twittertimeline = {
  1144. "key": "twittertimeline",
  1145. "type": "social",
  1146. "name": "Twitter (timelines)",
  1147. "uri": "https://support.twitter.com/articles/20170514",
  1148. "needConsent": true,
  1149. "cookies": [],
  1150. "js": function () {
  1151. "use strict";
  1152. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1153. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1154. },
  1155. "fallback": function () {
  1156. "use strict";
  1157. var id = 'twittertimeline';
  1158. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1159. }
  1160. };
  1161. // user voice
  1162. tarteaucitron.services.uservoice = {
  1163. "key": "uservoice",
  1164. "type": "support",
  1165. "name": "UserVoice",
  1166. "uri": "https://www.uservoice.com/privacy/",
  1167. "needConsent": true,
  1168. "cookies": [],
  1169. "js": function () {
  1170. "use strict";
  1171. if (tarteaucitron.user.userVoiceApi === undefined) {
  1172. return;
  1173. }
  1174. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1175. }
  1176. };
  1177. // vimeo
  1178. tarteaucitron.services.vimeo = {
  1179. "key": "vimeo",
  1180. "type": "video",
  1181. "name": "Vimeo",
  1182. "uri": "http://vimeo.com/privacy",
  1183. "needConsent": true,
  1184. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1185. "js": function () {
  1186. "use strict";
  1187. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1188. var video_id = x.getAttribute("videoID"),
  1189. video_width = x.getAttribute("width"),
  1190. frame_width = 'width=',
  1191. video_height = x.getAttribute("height"),
  1192. frame_height = 'height=',
  1193. video_frame;
  1194. if (video_id === undefined) {
  1195. return "";
  1196. }
  1197. if (video_width !== undefined) {
  1198. frame_width += '"' + video_width + '" ';
  1199. } else {
  1200. frame_width += '"" ';
  1201. }
  1202. if (video_height !== undefined) {
  1203. frame_height += '"' + video_height + '" ';
  1204. } else {
  1205. frame_height += '"" ';
  1206. }
  1207. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1208. return video_frame;
  1209. });
  1210. },
  1211. "fallback": function () {
  1212. "use strict";
  1213. var id = 'vimeo';
  1214. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1215. elem.style.width = elem.getAttribute('width') + 'px';
  1216. elem.style.height = elem.getAttribute('height') + 'px';
  1217. return tarteaucitron.engage(id);
  1218. });
  1219. }
  1220. };
  1221. // visualrevenue
  1222. tarteaucitron.services.visualrevenue = {
  1223. "key": "visualrevenue",
  1224. "type": "analytic",
  1225. "name": "VisualRevenue",
  1226. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1227. "needConsent": true,
  1228. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1229. "js": function () {
  1230. "use strict";
  1231. if (tarteaucitron.user.visualrevenueId === undefined) {
  1232. return;
  1233. }
  1234. window._vrq = window._vrq || [];
  1235. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1236. window._vrq.push(['automate', true]);
  1237. window._vrq.push(['track', function () {}]);
  1238. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1239. }
  1240. };
  1241. // vshop
  1242. tarteaucitron.services.vshop = {
  1243. "key": "vshop",
  1244. "type": "ads",
  1245. "name": "vShop",
  1246. "uri": "http://vshop.fr/privacy-policy",
  1247. "needConsent": true,
  1248. "cookies": [],
  1249. "js": function () {
  1250. "use strict";
  1251. tarteaucitron.fallback(['vcashW'], '');
  1252. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1253. },
  1254. "fallback": function () {
  1255. "use strict";
  1256. var id = 'vshop';
  1257. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1258. }
  1259. };
  1260. // wysistat
  1261. tarteaucitron.services.wysistat = {
  1262. "key": "wysistat",
  1263. "type": "analytic",
  1264. "name": "Wysistat",
  1265. "uri": "http://wysistat.net/contact/",
  1266. "needConsent": true,
  1267. "cookies": ['Wysistat'],
  1268. "js": function () {
  1269. "use strict";
  1270. if (tarteaucitron.user.wysistat === undefined) {
  1271. return;
  1272. }
  1273. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1274. window.stat(tarteaucitron.user.wysistat.cli, tarteaucitron.user.wysistat.frm, tarteaucitron.user.wysistat.prm, tarteaucitron.user.wysistat.ce, tarteaucitron.user.wysistat.page, tarteaucitron.user.wysistat.roi, tarteaucitron.user.wysistat.prof, tarteaucitron.user.wysistat.cpt);
  1275. });
  1276. }
  1277. };
  1278. // xiti
  1279. tarteaucitron.services.xiti = {
  1280. "key": "xiti",
  1281. "type": "analytic",
  1282. "name": "Xiti",
  1283. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1284. "needConsent": true,
  1285. "cookies": [],
  1286. "js": function () {
  1287. "use strict";
  1288. if (tarteaucitron.user.xitiId === undefined) {
  1289. return;
  1290. }
  1291. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1292. Xt_r,
  1293. Xt_h,
  1294. Xt_i,
  1295. Xt_s,
  1296. div = document.createElement('div');
  1297. try {
  1298. Xt_r = top.document.referrer;
  1299. } catch (e) {
  1300. Xt_r = document.referrer;
  1301. }
  1302. Xt_h = new Date();
  1303. Xt_i = '<img style="display:none" border="0" alt="" ';
  1304. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1305. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1306. if (parseFloat(navigator.appVersion) >= 4) {
  1307. Xt_s = screen;
  1308. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1309. }
  1310. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1311. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1312. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1313. tarteaucitron.user.xitiMore();
  1314. }
  1315. }
  1316. };
  1317. // youtube
  1318. tarteaucitron.services.youtube = {
  1319. "key": "youtube",
  1320. "type": "video",
  1321. "name": "YouTube",
  1322. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1323. "needConsent": true,
  1324. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1325. "js": function () {
  1326. "use strict";
  1327. tarteaucitron.fallback(['youtube_player'], function (x) {
  1328. var video_id = x.getAttribute("videoID"),
  1329. video_width = x.getAttribute("width"),
  1330. frame_width = 'width=',
  1331. video_height = x.getAttribute("height"),
  1332. frame_height = 'height=',
  1333. video_frame,
  1334. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1335. if (video_id === undefined) {
  1336. return "";
  1337. }
  1338. if (video_width !== undefined) {
  1339. frame_width += '"' + video_width + '" ';
  1340. } else {
  1341. frame_width += '"" ';
  1342. }
  1343. if (video_height !== undefined) {
  1344. frame_height += '"' + video_height + '" ';
  1345. } else {
  1346. frame_height += '"" ';
  1347. }
  1348. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1349. return video_frame;
  1350. });
  1351. },
  1352. "fallback": function () {
  1353. "use strict";
  1354. var id = 'youtube';
  1355. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1356. elem.style.width = elem.getAttribute('width') + 'px';
  1357. elem.style.height = elem.getAttribute('height') + 'px';
  1358. return tarteaucitron.engage(id);
  1359. });
  1360. }
  1361. };
  1362. // zopim
  1363. tarteaucitron.services.zopim = {
  1364. "key": "zopim",
  1365. "type": "support",
  1366. "name": "Zopim",
  1367. "uri": "https://www.zopim.com/privacy",
  1368. "needConsent": true,
  1369. "cookies": ['__zlcid', '__zprivacy'],
  1370. "js": function () {
  1371. "use strict";
  1372. if (tarteaucitron.user.zopimID === undefined) {
  1373. return;
  1374. }
  1375. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1376. }
  1377. };