tarteaucitron.services.js 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  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": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  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. // etracker
  433. tarteaucitron.services.etracker = {
  434. "key": "etracker",
  435. "type": "analytic",
  436. "name": "eTracker",
  437. "uri": "https://www.etracker.com/en/data-protection.html",
  438. "needConsent": true,
  439. "cookies": [],
  440. "js": function () {
  441. "use strict";
  442. if (tarteaucitron.user.etracker === undefined) {
  443. return;
  444. }
  445. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  446. }
  447. };
  448. // facebook
  449. tarteaucitron.services.facebook = {
  450. "key": "facebook",
  451. "type": "social",
  452. "name": "Facebook",
  453. "uri": "https://www.facebook.com/help/cookies/",
  454. "needConsent": true,
  455. "cookies": [],
  456. "js": function () {
  457. "use strict";
  458. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  459. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  460. if (tarteaucitron.isAjax === true) {
  461. if (typeof FB !== "undefined") {
  462. FB.XFBML.parse();
  463. }
  464. }
  465. },
  466. "fallback": function () {
  467. "use strict";
  468. var id = 'facebook';
  469. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  470. }
  471. };
  472. // facebooklikebox
  473. tarteaucitron.services.facebooklikebox = {
  474. "key": "facebooklikebox",
  475. "type": "social",
  476. "name": "Facebook (like box)",
  477. "uri": "https://www.facebook.com/help/cookies/",
  478. "needConsent": true,
  479. "cookies": [],
  480. "js": function () {
  481. "use strict";
  482. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  483. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  484. if (tarteaucitron.isAjax === true) {
  485. if (typeof FB !== "undefined") {
  486. FB.XFBML.parse();
  487. }
  488. }
  489. },
  490. "fallback": function () {
  491. "use strict";
  492. var id = 'facebooklikebox';
  493. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  494. }
  495. };
  496. // facebookcomment
  497. tarteaucitron.services.facebookcomment = {
  498. "key": "facebookcomment",
  499. "type": "comment",
  500. "name": "Facebook (commentaire)",
  501. "uri": "https://www.facebook.com/help/cookies/",
  502. "needConsent": true,
  503. "cookies": [],
  504. "js": function () {
  505. "use strict";
  506. tarteaucitron.fallback(['fb-comments'], '');
  507. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  508. if (tarteaucitron.isAjax === true) {
  509. if (typeof FB !== "undefined") {
  510. FB.XFBML.parse();
  511. }
  512. }
  513. },
  514. "fallback": function () {
  515. "use strict";
  516. var id = 'facebookcomment';
  517. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  518. }
  519. };
  520. // ferank
  521. tarteaucitron.services.ferank = {
  522. "key": "ferank",
  523. "type": "analytic",
  524. "name": "FERank",
  525. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  526. "needConsent": false,
  527. "cookies": [],
  528. "js": function () {
  529. "use strict";
  530. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  531. if (typeof tarteaucitron.user.ferankMore === 'function') {
  532. tarteaucitron.user.ferankMore();
  533. }
  534. });
  535. }
  536. };
  537. // ferank pub
  538. tarteaucitron.services.ferankpub = {
  539. "key": "ferankpub",
  540. "type": "ads",
  541. "name": "FERank (pub)",
  542. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  543. "needConsent": false,
  544. "cookies": [],
  545. "js": function () {
  546. "use strict";
  547. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  548. if (tarteaucitron.isAjax === true) {
  549. if (typeof ferankReady === 'function') {
  550. ferankReady();
  551. }
  552. }
  553. },
  554. "fallback": function () {
  555. "use strict";
  556. var id = 'ferankpub';
  557. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  558. }
  559. };
  560. // get+
  561. tarteaucitron.services.getplus = {
  562. "key": "getplus",
  563. "type": "analytic",
  564. "name": "Get+",
  565. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  566. "needConsent": true,
  567. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  568. "js": function () {
  569. "use strict";
  570. if (tarteaucitron.user.getplusId === undefined) {
  571. return;
  572. }
  573. window.webleads_site_ids = window.webleads_site_ids || [];
  574. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  575. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  576. }
  577. };
  578. // google+
  579. tarteaucitron.services.gplus = {
  580. "key": "gplus",
  581. "type": "social",
  582. "name": "Google+",
  583. "uri": "http://www.google.fr/intl/policies/privacy/",
  584. "needConsent": true,
  585. "cookies": [],
  586. "js": function () {
  587. "use strict";
  588. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  589. },
  590. "fallback": function () {
  591. "use strict";
  592. var id = 'gplus';
  593. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  594. }
  595. };
  596. // google+ badge
  597. tarteaucitron.services.gplusbadge = {
  598. "key": "gplusbadge",
  599. "type": "social",
  600. "name": "Google+ (badge)",
  601. "uri": "http://www.google.fr/intl/policies/privacy/",
  602. "needConsent": true,
  603. "cookies": [],
  604. "js": function () {
  605. "use strict";
  606. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  607. },
  608. "fallback": function () {
  609. "use strict";
  610. var id = 'gplusbadge';
  611. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  612. }
  613. };
  614. // google adsense
  615. tarteaucitron.services.adsense = {
  616. "key": "adsense",
  617. "type": "ads",
  618. "name": "Google Adsense",
  619. "uri": "http://www.google.com/ads/preferences/",
  620. "needConsent": true,
  621. "cookies": [],
  622. "js": function () {
  623. "use strict";
  624. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  625. },
  626. "fallback": function () {
  627. "use strict";
  628. var id = 'adsense';
  629. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  630. }
  631. };
  632. // google partners badge
  633. tarteaucitron.services.googlepartners = {
  634. "key": "googlepartners",
  635. "type": "ads",
  636. "name": "Google Partners Badge",
  637. "uri": "http://www.google.com/ads/preferences/",
  638. "needConsent": true,
  639. "cookies": [],
  640. "js": function () {
  641. "use strict";
  642. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  643. },
  644. "fallback": function () {
  645. "use strict";
  646. var id = 'googlepartners';
  647. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  648. }
  649. };
  650. // google adsense search (form)
  651. tarteaucitron.services.adsensesearchform = {
  652. "key": "adsensesearchform",
  653. "type": "ads",
  654. "name": "Google Adsense Search (form)",
  655. "uri": "http://www.google.com/ads/preferences/",
  656. "needConsent": true,
  657. "cookies": [],
  658. "js": function () {
  659. "use strict";
  660. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  661. }
  662. };
  663. // google adsense search (result)
  664. tarteaucitron.services.adsensesearchresult = {
  665. "key": "adsensesearchresult",
  666. "type": "ads",
  667. "name": "Google Adsense Search (result)",
  668. "uri": "http://www.google.com/ads/preferences/",
  669. "needConsent": true,
  670. "cookies": [],
  671. "js": function () {
  672. "use strict";
  673. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  674. return;
  675. }
  676. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  677. },
  678. "fallback": function () {
  679. "use strict";
  680. var id = 'adsensesearchresult';
  681. if (document.getElementById('gcse_searchresults')) {
  682. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  683. }
  684. }
  685. };
  686. // googleadwordsconversion
  687. tarteaucitron.services.googleadwordsconversion = {
  688. "key": "googleadwordsconversion",
  689. "type": "ads",
  690. "name": "Google Adwords (conversion)",
  691. "uri": "https://www.google.com/settings/ads",
  692. "needConsent": true,
  693. "cookies": [],
  694. "js": function () {
  695. "use strict";
  696. if (tarteaucitron.user.adwordsconversionId === undefined) {
  697. return;
  698. }
  699. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  700. window.google_trackConversion({
  701. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  702. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  703. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  704. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  705. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  706. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  707. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  708. google_custom_params: {
  709. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  710. parameter2: tarteaucitron.user.adwordsconversionCustom2
  711. }
  712. });
  713. });
  714. }
  715. };
  716. // googleadwordsremarketing
  717. tarteaucitron.services.googleadwordsremarketing = {
  718. "key": "googleadwordsremarketing",
  719. "type": "ads",
  720. "name": "Google Adwords (remarketing)",
  721. "uri": "https://www.google.com/settings/ads",
  722. "needConsent": true,
  723. "cookies": [],
  724. "js": function () {
  725. "use strict";
  726. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  727. return;
  728. }
  729. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  730. window.google_trackConversion({
  731. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  732. google_remarketing_only: true
  733. });
  734. });
  735. }
  736. };
  737. // google analytics (old)
  738. tarteaucitron.services.gajs = {
  739. "key": "gajs",
  740. "type": "analytic",
  741. "name": "Google Analytics (ga.js)",
  742. "uri": "https://support.google.com/analytics/answer/6004245",
  743. "needConsent": true,
  744. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  745. "js": function () {
  746. "use strict";
  747. window._gaq = window._gaq || [];
  748. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  749. window._gaq.push(['_trackPageview']);
  750. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  751. if (typeof tarteaucitron.user.gajsMore === 'function') {
  752. tarteaucitron.user.gajsMore();
  753. }
  754. });
  755. }
  756. };
  757. // google analytics
  758. tarteaucitron.services.analytics = {
  759. "key": "analytics",
  760. "type": "analytic",
  761. "name": "Google Analytics (universal)",
  762. "uri": "https://support.google.com/analytics/answer/6004245",
  763. "needConsent": true,
  764. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  765. "js": function () {
  766. "use strict";
  767. window.GoogleAnalyticsObject = 'ga';
  768. window.ga = window.ga || function () {
  769. window.ga.q = window.ga.q || [];
  770. window.ga.q.push(arguments);
  771. };
  772. window.ga.l = new Date();
  773. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  774. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  775. ga('send', 'pageview');
  776. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  777. tarteaucitron.user.analyticsMore();
  778. }
  779. });
  780. }
  781. };
  782. // google analytics
  783. tarteaucitron.services.gtag = {
  784. "key": "gtag",
  785. "type": "analytic",
  786. "name": "Google Analytics (gtag.js)",
  787. "uri": "https://support.google.com/analytics/answer/6004245",
  788. "needConsent": true,
  789. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  790. "js": function () {
  791. "use strict";
  792. window.dataLayer = window.dataLayer || [];
  793. tarteaucitron.addScript('//www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  794. function gtag(){dataLayer.push(arguments);}
  795. gtag('js', new Date());
  796. gtag('config', tarteaucitron.user.gtagUa);
  797. if (typeof tarteaucitron.user.gtagMore === 'function') {
  798. tarteaucitron.user.gtagMore();
  799. }
  800. });
  801. }
  802. };
  803. // google maps
  804. tarteaucitron.services.googlemaps = {
  805. "key": "googlemaps",
  806. "type": "api",
  807. "name": "Google Maps",
  808. "uri": "http://www.google.com/ads/preferences/",
  809. "needConsent": true,
  810. "cookies": [],
  811. "js": function () {
  812. "use strict";
  813. var mapOptions,
  814. map,
  815. uniqIds = [],
  816. i;
  817. if (tarteaucitron.user.mapscallback === undefined) {
  818. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  819. }
  820. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback);
  821. window.tac_googlemaps_callback = function () {
  822. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  823. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  824. uniqIds.push(uniqId);
  825. 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>';
  826. });
  827. for (i = 0; i < uniqIds.length; i += 1) {
  828. mapOptions = {
  829. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  830. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  831. };
  832. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  833. }
  834. };
  835. },
  836. "fallback": function () {
  837. "use strict";
  838. var id = 'googlemaps';
  839. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  840. }
  841. };
  842. // google tag manager
  843. tarteaucitron.services.googletagmanager = {
  844. "key": "googletagmanager",
  845. "type": "api",
  846. "name": "Google Tag Manager",
  847. "uri": "http://www.google.com/ads/preferences/",
  848. "needConsent": true,
  849. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  850. "js": function () {
  851. "use strict";
  852. if (tarteaucitron.user.googletagmanagerId === undefined) {
  853. return;
  854. }
  855. window.dataLayer = window.dataLayer || [];
  856. window.dataLayer.push({
  857. 'gtm.start': new Date().getTime(),
  858. event: 'gtm.js'
  859. });
  860. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  861. }
  862. };
  863. // jsapi
  864. tarteaucitron.services.jsapi = {
  865. "key": "jsapi",
  866. "type": "api",
  867. "name": "Google jsapi",
  868. "uri": "http://www.google.com/policies/privacy/",
  869. "needConsent": true,
  870. "cookies": [],
  871. "js": function () {
  872. "use strict";
  873. tarteaucitron.addScript('//www.google.com/jsapi');
  874. }
  875. };
  876. // linkedin
  877. tarteaucitron.services.linkedin = {
  878. "key": "linkedin",
  879. "type": "social",
  880. "name": "Linkedin",
  881. "uri": "https://www.linkedin.com/legal/cookie_policy",
  882. "needConsent": true,
  883. "cookies": [],
  884. "js": function () {
  885. "use strict";
  886. tarteaucitron.fallback(['tacLinkedin'], '');
  887. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  888. if (tarteaucitron.isAjax === true) {
  889. if (typeof IN !== "undefined") {
  890. IN.parse();
  891. }
  892. }
  893. },
  894. "fallback": function () {
  895. "use strict";
  896. var id = 'linkedin';
  897. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  898. }
  899. };
  900. // microsoftcampaignanalytics
  901. tarteaucitron.services.microsoftcampaignanalytics = {
  902. "key": "microsoftcampaignanalytics",
  903. "type": "analytic",
  904. "name": "Microsoft Campaign Analytics",
  905. "uri": "https://www.microsoft.com/fr-fr/privacystatement/Default.aspx",
  906. "needConsent": true,
  907. "cookies": [],
  908. "js": function () {
  909. "use strict";
  910. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  911. return;
  912. }
  913. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  914. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  915. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  916. });
  917. }
  918. };
  919. // pinterest
  920. tarteaucitron.services.pinterest = {
  921. "key": "pinterest",
  922. "type": "social",
  923. "name": "Pinterest",
  924. "uri": "https://about.pinterest.com/privacy-policy",
  925. "needConsent": true,
  926. "cookies": [],
  927. "js": function () {
  928. "use strict";
  929. tarteaucitron.fallback(['tacPinterest'], '');
  930. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  931. },
  932. "fallback": function () {
  933. "use strict";
  934. var id = 'pinterest';
  935. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  936. }
  937. };
  938. // prelinker
  939. tarteaucitron.services.prelinker = {
  940. "key": "prelinker",
  941. "type": "ads",
  942. "name": "Prelinker",
  943. "uri": "http://www.prelinker.com/index/index/cgu/",
  944. "needConsent": true,
  945. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  946. "js": function () {
  947. "use strict";
  948. var uniqIds = [],
  949. i,
  950. uri;
  951. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  952. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  953. uniqIds.push(uniqId);
  954. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  955. });
  956. for (i = 0; i < uniqIds.length; i += 1) {
  957. uri = 'http://promo.easy-dating.org/banner/index?';
  958. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  959. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  960. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  961. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  962. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  963. }
  964. },
  965. "fallback": function () {
  966. "use strict";
  967. var id = 'prelinker';
  968. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  969. }
  970. };
  971. // prezi
  972. tarteaucitron.services.prezi = {
  973. "key": "prezi",
  974. "type": "video",
  975. "name": "Prezi",
  976. "uri": "https://prezi.com/privacy-policy/",
  977. "needConsent": true,
  978. "cookies": [],
  979. "js": function () {
  980. "use strict";
  981. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  982. var id = x.getAttribute("data-id"),
  983. width = x.getAttribute("width"),
  984. height = x.getAttribute("height"),
  985. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  986. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  987. });
  988. },
  989. "fallback": function () {
  990. "use strict";
  991. var id = 'prezi';
  992. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  993. elem.style.width = elem.getAttribute('width') + 'px';
  994. elem.style.height = elem.getAttribute('height') + 'px';
  995. return tarteaucitron.engage(id);
  996. });
  997. }
  998. };
  999. // pubdirecte
  1000. tarteaucitron.services.pubdirecte = {
  1001. "key": "pubdirecte",
  1002. "type": "ads",
  1003. "name": "Pubdirecte",
  1004. "uri": "http://pubdirecte.com/contact.php",
  1005. "needConsent": true,
  1006. "cookies": [],
  1007. "js": function () {
  1008. "use strict";
  1009. var uniqIds = [],
  1010. i,
  1011. uri;
  1012. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1013. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1014. uniqIds.push(uniqId);
  1015. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1016. });
  1017. for (i = 0; i < uniqIds.length; i += 1) {
  1018. uri = '//www.pubdirecte.com/script/banniere.php?';
  1019. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1020. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1021. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1022. }
  1023. },
  1024. "fallback": function () {
  1025. "use strict";
  1026. var id = 'pubdirecte';
  1027. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1028. }
  1029. };
  1030. // purechat
  1031. tarteaucitron.services.purechat = {
  1032. "key": "purechat",
  1033. "type": "support",
  1034. "name": "PureChat",
  1035. "uri": "https://www.purechat.com/privacy",
  1036. "needConsent": true,
  1037. "cookies": [],
  1038. "js": function () {
  1039. "use strict";
  1040. if (tarteaucitron.user.purechatId === undefined) {
  1041. return;
  1042. }
  1043. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1044. try {
  1045. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1046. } catch (e) {}
  1047. });
  1048. }
  1049. };
  1050. // shareaholic
  1051. tarteaucitron.services.shareaholic = {
  1052. "key": "shareaholic",
  1053. "type": "social",
  1054. "name": "Shareaholic",
  1055. "uri": "https://shareaholic.com/privacy/choices",
  1056. "needConsent": true,
  1057. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1058. "js": function () {
  1059. "use strict";
  1060. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1061. return;
  1062. }
  1063. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1064. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1065. try {
  1066. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1067. } catch (e) {}
  1068. });
  1069. },
  1070. "fallback": function () {
  1071. "use strict";
  1072. var id = 'shareaholic';
  1073. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1074. }
  1075. };
  1076. // shareasale
  1077. tarteaucitron.services.shareasale = {
  1078. "key": "shareasale",
  1079. "type": "ads",
  1080. "name": "ShareASale",
  1081. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1082. "needConsent": true,
  1083. "cookies": [],
  1084. "js": function () {
  1085. "use strict";
  1086. var uniqIds = [],
  1087. i,
  1088. uri;
  1089. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1090. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1091. uniqIds.push(uniqId);
  1092. return '<div id="' + uniqId + '" amount="' + x.getAttribute('amount') + '" tracking="' + x.getAttribute('tracking') + '" transtype="' + x.getAttribute('transtype') + '" persale="' + x.getAttribute('persale') + '" perlead="' + x.getAttribute('perlead') + '" perhit="' + x.getAttribute('perhit') + '" merchantID="' + x.getAttribute('merchantID') + '"></div>';
  1093. });
  1094. for (i = 0; i < uniqIds.length; i += 1) {
  1095. uri = 'https://shareasale.com/sale.cfm?';
  1096. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1097. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1098. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1099. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1100. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1101. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1102. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1103. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1104. }
  1105. },
  1106. "fallback": function () {
  1107. "use strict";
  1108. var id = 'shareasale';
  1109. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1110. }
  1111. };
  1112. // sharethis
  1113. tarteaucitron.services.sharethis = {
  1114. "key": "sharethis",
  1115. "type": "social",
  1116. "name": "ShareThis",
  1117. "uri": "http://www.sharethis.com/legal/privacy/",
  1118. "needConsent": true,
  1119. "cookies": ['__unam'],
  1120. "js": function () {
  1121. "use strict";
  1122. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1123. return;
  1124. }
  1125. var switchTo5x = true,
  1126. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1127. tarteaucitron.fallback(['tacSharethis'], '');
  1128. tarteaucitron.addScript(uri, '', function () {
  1129. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1130. });
  1131. if (tarteaucitron.isAjax === true) {
  1132. if (typeof stButtons !== "undefined") {
  1133. stButtons.locateElements();
  1134. }
  1135. }
  1136. },
  1137. "fallback": function () {
  1138. "use strict";
  1139. var id = 'sharethis';
  1140. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1141. }
  1142. };
  1143. // slideshare
  1144. tarteaucitron.services.slideshare = {
  1145. "key": "slideshare",
  1146. "type": "video",
  1147. "name": "SlideShare",
  1148. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1149. "needConsent": true,
  1150. "cookies": [],
  1151. "js": function () {
  1152. "use strict";
  1153. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1154. var id = x.getAttribute("data-id"),
  1155. width = x.getAttribute("width"),
  1156. height = x.getAttribute("height"),
  1157. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1158. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1159. });
  1160. },
  1161. "fallback": function () {
  1162. "use strict";
  1163. var id = 'slideshare';
  1164. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1165. elem.style.width = elem.getAttribute('width') + 'px';
  1166. elem.style.height = elem.getAttribute('height') + 'px';
  1167. return tarteaucitron.engage(id);
  1168. });
  1169. }
  1170. };
  1171. // statcounter
  1172. tarteaucitron.services.statcounter = {
  1173. "key": "statcounter",
  1174. "type": "analytic",
  1175. "name": "StatCounter",
  1176. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1177. "needConsent": true,
  1178. "cookies": ['sc_is_visitor_unique'],
  1179. "js": function () {
  1180. "use strict";
  1181. var uniqIds = [],
  1182. i,
  1183. uri = '//statcounter.com/counter/counter.js';
  1184. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1185. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1186. uniqIds.push(uniqId);
  1187. return '<div id="' + uniqId + '"></div>';
  1188. });
  1189. for (i = 0; i < uniqIds.length; i += 1) {
  1190. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1191. }
  1192. },
  1193. "fallback": function () {
  1194. "use strict";
  1195. var id = 'statcounter';
  1196. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1197. }
  1198. };
  1199. // timelinejs
  1200. tarteaucitron.services.timelinejs = {
  1201. "key": "timelinejs",
  1202. "type": "api",
  1203. "name": "Timeline JS",
  1204. "uri": "http://timeline.knightlab.com/#help",
  1205. "needConsent": true,
  1206. "cookies": [],
  1207. "js": function () {
  1208. "use strict";
  1209. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1210. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1211. width = x.getAttribute("width"),
  1212. height = x.getAttribute("height"),
  1213. lang = x.getAttribute("lang_2_letter"),
  1214. font = x.getAttribute("font"),
  1215. map = x.getAttribute("map"),
  1216. start_at_end = x.getAttribute("start_at_end"),
  1217. hash_bookmark = x.getAttribute("hash_bookmark"),
  1218. start_at_slide = x.getAttribute("start_at_slide"),
  1219. start_zoom = x.getAttribute("start_zoom"),
  1220. 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;
  1221. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1222. });
  1223. },
  1224. "fallback": function () {
  1225. "use strict";
  1226. var id = 'timelinejs';
  1227. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1228. elem.style.width = elem.getAttribute('width') + 'px';
  1229. elem.style.height = elem.getAttribute('height') + 'px';
  1230. return tarteaucitron.engage(id);
  1231. });
  1232. }
  1233. };
  1234. // typekit
  1235. tarteaucitron.services.typekit = {
  1236. "key": "typekit",
  1237. "type": "api",
  1238. "name": "Typekit (adobe)",
  1239. "uri": "http://www.adobe.com/fr/privacy.html",
  1240. "needConsent": true,
  1241. "cookies": [],
  1242. "js": function () {
  1243. "use strict";
  1244. if (tarteaucitron.user.typekitId === undefined) {
  1245. return;
  1246. }
  1247. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1248. try {
  1249. Typekit.load();
  1250. } catch (e) {}
  1251. });
  1252. }
  1253. };
  1254. // twenga
  1255. tarteaucitron.services.twenga = {
  1256. "key": "twenga",
  1257. "type": "ads",
  1258. "name": "Twenga",
  1259. "uri": "http://www.twenga.com/privacy.php",
  1260. "needConsent": true,
  1261. "cookies": [],
  1262. "js": function () {
  1263. "use strict";
  1264. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1265. return;
  1266. }
  1267. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1268. }
  1269. };
  1270. // twitter
  1271. tarteaucitron.services.twitter = {
  1272. "key": "twitter",
  1273. "type": "social",
  1274. "name": "Twitter",
  1275. "uri": "https://support.twitter.com/articles/20170514",
  1276. "needConsent": true,
  1277. "cookies": [],
  1278. "js": function () {
  1279. "use strict";
  1280. tarteaucitron.fallback(['tacTwitter'], '');
  1281. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1282. },
  1283. "fallback": function () {
  1284. "use strict";
  1285. var id = 'twitter';
  1286. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1287. }
  1288. };
  1289. // twitter embed
  1290. tarteaucitron.services.twitterembed = {
  1291. "key": "twitterembed",
  1292. "type": "social",
  1293. "name": "Twitter (cards)",
  1294. "uri": "https://support.twitter.com/articles/20170514",
  1295. "needConsent": true,
  1296. "cookies": [],
  1297. "js": function () {
  1298. "use strict";
  1299. var uniqIds = [],
  1300. i,
  1301. e,
  1302. html;
  1303. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1304. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1305. uniqIds.push(uniqId);
  1306. html = '<div id="' + uniqId + '" ';
  1307. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1308. html += 'theme="' + x.getAttribute('theme') + '" ';
  1309. html += 'cards="' + x.getAttribute('cards') + '" ';
  1310. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1311. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1312. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1313. html += '></div>';
  1314. return html;
  1315. });
  1316. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1317. for (i = 0; i < uniqIds.length; i += 1) {
  1318. e = document.getElementById(uniqIds[i]);
  1319. twttr.widgets.createTweet(
  1320. e.getAttribute('tweetid'),
  1321. e,
  1322. {
  1323. theme: e.getAttribute('theme'),
  1324. cards: e.getAttribute('cards'),
  1325. conversation: e.getAttribute('conversation'),
  1326. lang: tarteaucitron.getLanguage(),
  1327. dnt: true,
  1328. width: e.getAttribute('data-width'),
  1329. align: e.getAttribute('data-align')
  1330. }
  1331. );
  1332. }
  1333. });
  1334. },
  1335. "fallback": function () {
  1336. "use strict";
  1337. var id = 'twitterembed';
  1338. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1339. elem.style.width = elem.getAttribute('data-width') + 'px';
  1340. return tarteaucitron.engage(id);
  1341. });
  1342. }
  1343. };
  1344. // twitter timeline
  1345. tarteaucitron.services.twittertimeline = {
  1346. "key": "twittertimeline",
  1347. "type": "social",
  1348. "name": "Twitter (timelines)",
  1349. "uri": "https://support.twitter.com/articles/20170514",
  1350. "needConsent": true,
  1351. "cookies": [],
  1352. "js": function () {
  1353. "use strict";
  1354. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1355. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1356. },
  1357. "fallback": function () {
  1358. "use strict";
  1359. var id = 'twittertimeline';
  1360. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1361. }
  1362. };
  1363. // user voice
  1364. tarteaucitron.services.uservoice = {
  1365. "key": "uservoice",
  1366. "type": "support",
  1367. "name": "UserVoice",
  1368. "uri": "https://www.uservoice.com/privacy/",
  1369. "needConsent": true,
  1370. "cookies": [],
  1371. "js": function () {
  1372. "use strict";
  1373. if (tarteaucitron.user.userVoiceApi === undefined) {
  1374. return;
  1375. }
  1376. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1377. }
  1378. };
  1379. // vimeo
  1380. tarteaucitron.services.vimeo = {
  1381. "key": "vimeo",
  1382. "type": "video",
  1383. "name": "Vimeo",
  1384. "uri": "http://vimeo.com/privacy",
  1385. "needConsent": true,
  1386. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1387. "js": function () {
  1388. "use strict";
  1389. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1390. var video_id = x.getAttribute("videoID"),
  1391. video_width = x.getAttribute("width"),
  1392. frame_width = 'width=',
  1393. video_height = x.getAttribute("height"),
  1394. frame_height = 'height=',
  1395. video_frame;
  1396. if (video_id === undefined) {
  1397. return "";
  1398. }
  1399. if (video_width !== undefined) {
  1400. frame_width += '"' + video_width + '" ';
  1401. } else {
  1402. frame_width += '"" ';
  1403. }
  1404. if (video_height !== undefined) {
  1405. frame_height += '"' + video_height + '" ';
  1406. } else {
  1407. frame_height += '"" ';
  1408. }
  1409. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1410. return video_frame;
  1411. });
  1412. },
  1413. "fallback": function () {
  1414. "use strict";
  1415. var id = 'vimeo';
  1416. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1417. elem.style.width = elem.getAttribute('width') + 'px';
  1418. elem.style.height = elem.getAttribute('height') + 'px';
  1419. return tarteaucitron.engage(id);
  1420. });
  1421. }
  1422. };
  1423. // visualrevenue
  1424. tarteaucitron.services.visualrevenue = {
  1425. "key": "visualrevenue",
  1426. "type": "analytic",
  1427. "name": "VisualRevenue",
  1428. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1429. "needConsent": true,
  1430. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1431. "js": function () {
  1432. "use strict";
  1433. if (tarteaucitron.user.visualrevenueId === undefined) {
  1434. return;
  1435. }
  1436. window._vrq = window._vrq || [];
  1437. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1438. window._vrq.push(['automate', true]);
  1439. window._vrq.push(['track', function () {}]);
  1440. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1441. }
  1442. };
  1443. // vshop
  1444. tarteaucitron.services.vshop = {
  1445. "key": "vshop",
  1446. "type": "ads",
  1447. "name": "vShop",
  1448. "uri": "http://vshop.fr/privacy-policy",
  1449. "needConsent": true,
  1450. "cookies": [],
  1451. "js": function () {
  1452. "use strict";
  1453. tarteaucitron.fallback(['vcashW'], '');
  1454. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1455. },
  1456. "fallback": function () {
  1457. "use strict";
  1458. var id = 'vshop';
  1459. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1460. }
  1461. };
  1462. // wysistat
  1463. tarteaucitron.services.wysistat = {
  1464. "key": "wysistat",
  1465. "type": "analytic",
  1466. "name": "Wysistat",
  1467. "uri": "http://wysistat.net/contact/",
  1468. "needConsent": true,
  1469. "cookies": ['Wysistat'],
  1470. "js": function () {
  1471. "use strict";
  1472. if (tarteaucitron.user.wysistat === undefined) {
  1473. return;
  1474. }
  1475. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1476. 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);
  1477. });
  1478. }
  1479. };
  1480. // xiti
  1481. tarteaucitron.services.xiti = {
  1482. "key": "xiti",
  1483. "type": "analytic",
  1484. "name": "Xiti",
  1485. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1486. "needConsent": true,
  1487. "cookies": [],
  1488. "js": function () {
  1489. "use strict";
  1490. if (tarteaucitron.user.xitiId === undefined) {
  1491. return;
  1492. }
  1493. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1494. Xt_r,
  1495. Xt_h,
  1496. Xt_i,
  1497. Xt_s,
  1498. div = document.createElement('div');
  1499. try {
  1500. Xt_r = top.document.referrer;
  1501. } catch (e) {
  1502. Xt_r = document.referrer;
  1503. }
  1504. Xt_h = new Date();
  1505. Xt_i = '<img style="display:none" border="0" alt="" ';
  1506. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1507. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1508. if (parseFloat(navigator.appVersion) >= 4) {
  1509. Xt_s = screen;
  1510. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1511. }
  1512. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1513. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1514. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1515. tarteaucitron.user.xitiMore();
  1516. }
  1517. }
  1518. };
  1519. // youtube
  1520. tarteaucitron.services.youtube = {
  1521. "key": "youtube",
  1522. "type": "video",
  1523. "name": "YouTube",
  1524. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1525. "needConsent": true,
  1526. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1527. "js": function () {
  1528. "use strict";
  1529. tarteaucitron.fallback(['youtube_player'], function (x) {
  1530. var video_id = x.getAttribute("videoID"),
  1531. video_width = x.getAttribute("width"),
  1532. frame_width = 'width=',
  1533. video_height = x.getAttribute("height"),
  1534. frame_height = 'height=',
  1535. video_frame,
  1536. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1537. if (video_id === undefined) {
  1538. return "";
  1539. }
  1540. if (video_width !== undefined) {
  1541. frame_width += '"' + video_width + '" ';
  1542. } else {
  1543. frame_width += '"" ';
  1544. }
  1545. if (video_height !== undefined) {
  1546. frame_height += '"' + video_height + '" ';
  1547. } else {
  1548. frame_height += '"" ';
  1549. }
  1550. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1551. return video_frame;
  1552. });
  1553. },
  1554. "fallback": function () {
  1555. "use strict";
  1556. var id = 'youtube';
  1557. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1558. elem.style.width = elem.getAttribute('width') + 'px';
  1559. elem.style.height = elem.getAttribute('height') + 'px';
  1560. return tarteaucitron.engage(id);
  1561. });
  1562. }
  1563. };
  1564. // youtube playlist
  1565. tarteaucitron.services.youtubeplaylist = {
  1566. "key": "youtubeplaylist",
  1567. "type": "video",
  1568. "name": "YouTube (playlist)",
  1569. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1570. "needConsent": true,
  1571. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1572. "js": function () {
  1573. "use strict";
  1574. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1575. var playlist_id = x.getAttribute("playlistID"),
  1576. video_width = x.getAttribute("width"),
  1577. frame_width = 'width=',
  1578. video_height = x.getAttribute("height"),
  1579. frame_height = 'height=',
  1580. video_frame,
  1581. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1582. if (playlist_id === undefined) {
  1583. return "";
  1584. }
  1585. if (video_width !== undefined) {
  1586. frame_width += '"' + video_width + '" ';
  1587. } else {
  1588. frame_width += '"" ';
  1589. }
  1590. if (video_height !== undefined) {
  1591. frame_height += '"' + video_height + '" ';
  1592. } else {
  1593. frame_height += '"" ';
  1594. }
  1595. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1596. return video_frame;
  1597. });
  1598. },
  1599. "fallback": function () {
  1600. "use strict";
  1601. var id = 'youtubeplaylist';
  1602. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1603. elem.style.width = elem.getAttribute('width') + 'px';
  1604. elem.style.height = elem.getAttribute('height') + 'px';
  1605. return tarteaucitron.engage(id);
  1606. });
  1607. }
  1608. };
  1609. // zopim
  1610. tarteaucitron.services.zopim = {
  1611. "key": "zopim",
  1612. "type": "support",
  1613. "name": "Zopim",
  1614. "uri": "https://www.zopim.com/privacy",
  1615. "needConsent": true,
  1616. "cookies": ['__zlcid', '__zprivacy'],
  1617. "js": function () {
  1618. "use strict";
  1619. if (tarteaucitron.user.zopimID === undefined) {
  1620. return;
  1621. }
  1622. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1623. }
  1624. };
  1625. // xiti smartTag
  1626. tarteaucitron.services.xiti_smarttag = {
  1627. "key": "xiti_smarttag",
  1628. "type": "analytic",
  1629. "name": "Xiti (SmartTag)",
  1630. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1631. "needConsent": true,
  1632. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1633. "js": function () {
  1634. "use strict";
  1635. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1636. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1637. } else {
  1638. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1639. if (xitiSmarttagId === undefined) {
  1640. return;
  1641. }
  1642. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1643. }
  1644. }
  1645. };
  1646. // facebook pixel
  1647. tarteaucitron.services.facebookpixel = {
  1648. "key": "facebookpixel",
  1649. "type": "ads",
  1650. "name": "Facebook Pixel",
  1651. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1652. "needConsent": true,
  1653. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1654. "js": function () {
  1655. "use strict";
  1656. var n;
  1657. if(window.fbq)return;
  1658. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  1659. if(!window._fbq)window._fbq=n;
  1660. n.push=n;
  1661. n.loaded=!0;
  1662. n.version='2.0';
  1663. n.queue=[];
  1664. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  1665. fbq('init', tarteaucitron.user.facebookpixelId);
  1666. fbq('track', 'PageView');
  1667. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  1668. tarteaucitron.user.facebookpixelMore();
  1669. }
  1670. }
  1671. };