tarteaucitron.services.js 56 KB

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