tarteaucitron.services.js 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571
  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. // 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_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  670. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  671. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  672. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  673. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  674. google_custom_params: {
  675. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  676. parameter2: tarteaucitron.user.adwordsconversionCustom2
  677. }
  678. });
  679. });
  680. }
  681. };
  682. // googleadwordsremarketing
  683. tarteaucitron.services.googleadwordsremarketing = {
  684. "key": "googleadwordsremarketing",
  685. "type": "ads",
  686. "name": "Google Adwords (remarketing)",
  687. "uri": "https://www.google.com/settings/ads",
  688. "needConsent": true,
  689. "cookies": [],
  690. "js": function () {
  691. "use strict";
  692. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  693. return;
  694. }
  695. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  696. window.google_trackConversion({
  697. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  698. google_remarketing_only: true
  699. });
  700. });
  701. }
  702. };
  703. // google analytics (old)
  704. tarteaucitron.services.gajs = {
  705. "key": "gajs",
  706. "type": "analytic",
  707. "name": "Google Analytics (ga.js)",
  708. "uri": "https://support.google.com/analytics/answer/6004245",
  709. "needConsent": true,
  710. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  711. "js": function () {
  712. "use strict";
  713. window._gaq = window._gaq || [];
  714. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  715. window._gaq.push(['_trackPageview']);
  716. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  717. if (typeof tarteaucitron.user.gajsMore === 'function') {
  718. tarteaucitron.user.gajsMore();
  719. }
  720. });
  721. }
  722. };
  723. // google analytics
  724. tarteaucitron.services.analytics = {
  725. "key": "analytics",
  726. "type": "analytic",
  727. "name": "Google Analytics (universal)",
  728. "uri": "https://support.google.com/analytics/answer/6004245",
  729. "needConsent": true,
  730. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  731. "js": function () {
  732. "use strict";
  733. window.GoogleAnalyticsObject = 'ga';
  734. window.ga = window.ga || function () {
  735. window.ga.q = window.ga.q || [];
  736. window.ga.q.push(arguments);
  737. };
  738. window.ga.l = new Date();
  739. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  740. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  741. ga('send', 'pageview');
  742. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  743. tarteaucitron.user.analyticsMore();
  744. }
  745. });
  746. }
  747. };
  748. // google maps
  749. tarteaucitron.services.googlemaps = {
  750. "key": "googlemaps",
  751. "type": "api",
  752. "name": "Google Maps",
  753. "uri": "http://www.google.com/ads/preferences/",
  754. "needConsent": true,
  755. "cookies": [],
  756. "js": function () {
  757. "use strict";
  758. var mapOptions,
  759. map,
  760. uniqIds = [],
  761. i;
  762. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
  763. window.tac_googlemaps_callback = function () {
  764. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  765. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  766. uniqIds.push(uniqId);
  767. 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>';
  768. });
  769. for (i = 0; i < uniqIds.length; i += 1) {
  770. mapOptions = {
  771. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  772. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  773. };
  774. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  775. }
  776. };
  777. },
  778. "fallback": function () {
  779. "use strict";
  780. var id = 'googlemaps';
  781. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  782. }
  783. };
  784. // google tag manager
  785. tarteaucitron.services.googletagmanager = {
  786. "key": "googletagmanager",
  787. "type": "api",
  788. "name": "Google Tag Manager",
  789. "uri": "http://www.google.com/ads/preferences/",
  790. "needConsent": true,
  791. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  792. "js": function () {
  793. "use strict";
  794. if (tarteaucitron.user.googletagmanagerId === undefined) {
  795. return;
  796. }
  797. window.dataLayer = window.dataLayer || [];
  798. window.dataLayer.push({
  799. 'gtm.start': new Date().getTime(),
  800. event: 'gtm.js'
  801. });
  802. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  803. }
  804. };
  805. // jsapi
  806. tarteaucitron.services.jsapi = {
  807. "key": "jsapi",
  808. "type": "api",
  809. "name": "Google jsapi",
  810. "uri": "http://www.google.com/policies/privacy/",
  811. "needConsent": true,
  812. "cookies": [],
  813. "js": function () {
  814. "use strict";
  815. tarteaucitron.addScript('//www.google.com/jsapi');
  816. }
  817. };
  818. // linkedin
  819. tarteaucitron.services.linkedin = {
  820. "key": "linkedin",
  821. "type": "social",
  822. "name": "Linkedin",
  823. "uri": "https://www.linkedin.com/legal/cookie_policy",
  824. "needConsent": true,
  825. "cookies": [],
  826. "js": function () {
  827. "use strict";
  828. tarteaucitron.fallback(['tacLinkedin'], '');
  829. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  830. if (tarteaucitron.isAjax === true) {
  831. if (typeof IN !== "undefined") {
  832. IN.parse();
  833. }
  834. }
  835. },
  836. "fallback": function () {
  837. "use strict";
  838. var id = 'linkedin';
  839. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  840. }
  841. };
  842. // pinterest
  843. tarteaucitron.services.pinterest = {
  844. "key": "pinterest",
  845. "type": "social",
  846. "name": "Pinterest",
  847. "uri": "https://about.pinterest.com/privacy-policy",
  848. "needConsent": true,
  849. "cookies": [],
  850. "js": function () {
  851. "use strict";
  852. tarteaucitron.fallback(['tacPinterest'], '');
  853. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  854. },
  855. "fallback": function () {
  856. "use strict";
  857. var id = 'pinterest';
  858. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  859. }
  860. };
  861. // prelinker
  862. tarteaucitron.services.prelinker = {
  863. "key": "prelinker",
  864. "type": "ads",
  865. "name": "Prelinker",
  866. "uri": "http://www.prelinker.com/index/index/cgu/",
  867. "needConsent": true,
  868. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  869. "js": function () {
  870. "use strict";
  871. var uniqIds = [],
  872. i,
  873. uri;
  874. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  875. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  876. uniqIds.push(uniqId);
  877. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker=' + x.getAttribute('tracker') + '"></div>';
  878. });
  879. for (i = 0; i < uniqIds.length; i += 1) {
  880. uri = 'http://promo.easy-dating.org/banner/index?';
  881. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  882. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  883. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  884. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  885. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  886. }
  887. },
  888. "fallback": function () {
  889. "use strict";
  890. var id = 'prelinker';
  891. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  892. }
  893. };
  894. // prezi
  895. tarteaucitron.services.prezi = {
  896. "key": "prezi",
  897. "type": "video",
  898. "name": "Prezi",
  899. "uri": "https://prezi.com/privacy-policy/",
  900. "needConsent": true,
  901. "cookies": [],
  902. "js": function () {
  903. "use strict";
  904. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  905. var id = x.getAttribute("data-id"),
  906. width = x.getAttribute("width"),
  907. height = x.getAttribute("height"),
  908. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  909. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  910. });
  911. },
  912. "fallback": function () {
  913. "use strict";
  914. var id = 'prezi';
  915. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  916. elem.style.width = elem.getAttribute('width') + 'px';
  917. elem.style.height = elem.getAttribute('height') + 'px';
  918. return tarteaucitron.engage(id);
  919. });
  920. }
  921. };
  922. // pubdirecte
  923. tarteaucitron.services.pubdirecte = {
  924. "key": "pubdirecte",
  925. "type": "ads",
  926. "name": "Pubdirecte",
  927. "uri": "http://pubdirecte.com/contact.php",
  928. "needConsent": true,
  929. "cookies": [],
  930. "js": function () {
  931. "use strict";
  932. var uniqIds = [],
  933. i,
  934. uri;
  935. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  936. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  937. uniqIds.push(uniqId);
  938. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  939. });
  940. for (i = 0; i < uniqIds.length; i += 1) {
  941. uri = '//www.pubdirecte.com/script/banniere.php?';
  942. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  943. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  944. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  945. }
  946. },
  947. "fallback": function () {
  948. "use strict";
  949. var id = 'pubdirecte';
  950. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  951. }
  952. };
  953. // purechat
  954. tarteaucitron.services.purechat = {
  955. "key": "purechat",
  956. "type": "support",
  957. "name": "PureChat",
  958. "uri": "https://www.purechat.com/privacy",
  959. "needConsent": true,
  960. "cookies": [],
  961. "js": function () {
  962. "use strict";
  963. if (tarteaucitron.user.purechatId === undefined) {
  964. return;
  965. }
  966. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  967. try {
  968. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  969. } catch (e) {}
  970. });
  971. }
  972. };
  973. // shareaholic
  974. tarteaucitron.services.shareaholic = {
  975. "key": "shareaholic",
  976. "type": "social",
  977. "name": "Shareaholic",
  978. "uri": "https://shareaholic.com/privacy/choices",
  979. "needConsent": true,
  980. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  981. "js": function () {
  982. "use strict";
  983. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  984. return;
  985. }
  986. tarteaucitron.fallback(['shareaholic-canvas'], '');
  987. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  988. try {
  989. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  990. } catch (e) {}
  991. });
  992. },
  993. "fallback": function () {
  994. "use strict";
  995. var id = 'shareaholic';
  996. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  997. }
  998. };
  999. // sharethis
  1000. tarteaucitron.services.sharethis = {
  1001. "key": "sharethis",
  1002. "type": "social",
  1003. "name": "ShareThis",
  1004. "uri": "http://www.sharethis.com/legal/privacy/",
  1005. "needConsent": true,
  1006. "cookies": ['__unam'],
  1007. "js": function () {
  1008. "use strict";
  1009. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1010. return;
  1011. }
  1012. var switchTo5x = true,
  1013. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1014. tarteaucitron.fallback(['tacSharethis'], '');
  1015. tarteaucitron.addScript(uri, '', function () {
  1016. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1017. });
  1018. if (tarteaucitron.isAjax === true) {
  1019. if (typeof stButtons !== "undefined") {
  1020. stButtons.locateElements();
  1021. }
  1022. }
  1023. },
  1024. "fallback": function () {
  1025. "use strict";
  1026. var id = 'sharethis';
  1027. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1028. }
  1029. };
  1030. // slideshare
  1031. tarteaucitron.services.slideshare = {
  1032. "key": "slideshare",
  1033. "type": "video",
  1034. "name": "SlideShare",
  1035. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1036. "needConsent": true,
  1037. "cookies": [],
  1038. "js": function () {
  1039. "use strict";
  1040. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1041. var id = x.getAttribute("data-id"),
  1042. width = x.getAttribute("width"),
  1043. height = x.getAttribute("height"),
  1044. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1045. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1046. });
  1047. },
  1048. "fallback": function () {
  1049. "use strict";
  1050. var id = 'slideshare';
  1051. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1052. elem.style.width = elem.getAttribute('width') + 'px';
  1053. elem.style.height = elem.getAttribute('height') + 'px';
  1054. return tarteaucitron.engage(id);
  1055. });
  1056. }
  1057. };
  1058. // statcounter
  1059. tarteaucitron.services.statcounter = {
  1060. "key": "statcounter",
  1061. "type": "analytic",
  1062. "name": "StatCounter",
  1063. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1064. "needConsent": true,
  1065. "cookies": ['sc_is_visitor_unique'],
  1066. "js": function () {
  1067. "use strict";
  1068. var uniqIds = [],
  1069. i,
  1070. uri = '//statcounter.com/counter/counter.js';
  1071. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1072. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1073. uniqIds.push(uniqId);
  1074. return '<div id="' + uniqId + '"></div>';
  1075. });
  1076. for (i = 0; i < uniqIds.length; i += 1) {
  1077. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1078. }
  1079. },
  1080. "fallback": function () {
  1081. "use strict";
  1082. var id = 'statcounter';
  1083. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1084. }
  1085. };
  1086. // timelinejs
  1087. tarteaucitron.services.timelinejs = {
  1088. "key": "timelinejs",
  1089. "type": "api",
  1090. "name": "Timeline JS",
  1091. "uri": "http://timeline.knightlab.com/#help",
  1092. "needConsent": true,
  1093. "cookies": [],
  1094. "js": function () {
  1095. "use strict";
  1096. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1097. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1098. width = x.getAttribute("width"),
  1099. height = x.getAttribute("height"),
  1100. lang = x.getAttribute("lang_2_letter"),
  1101. font = x.getAttribute("font"),
  1102. map = x.getAttribute("map"),
  1103. start_at_end = x.getAttribute("start_at_end"),
  1104. hash_bookmark = x.getAttribute("hash_bookmark"),
  1105. start_at_slide = x.getAttribute("start_at_slide"),
  1106. start_zoom = x.getAttribute("start_zoom"),
  1107. 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;
  1108. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1109. });
  1110. },
  1111. "fallback": function () {
  1112. "use strict";
  1113. var id = 'timelinejs';
  1114. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1115. elem.style.width = elem.getAttribute('width') + 'px';
  1116. elem.style.height = elem.getAttribute('height') + 'px';
  1117. return tarteaucitron.engage(id);
  1118. });
  1119. }
  1120. };
  1121. // typekit
  1122. tarteaucitron.services.typekit = {
  1123. "key": "typekit",
  1124. "type": "api",
  1125. "name": "Typekit (adobe)",
  1126. "uri": "http://www.adobe.com/fr/privacy.html",
  1127. "needConsent": true,
  1128. "cookies": [],
  1129. "js": function () {
  1130. "use strict";
  1131. if (tarteaucitron.user.typekitId === undefined) {
  1132. return;
  1133. }
  1134. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1135. try {
  1136. Typekit.load();
  1137. } catch (e) {}
  1138. });
  1139. }
  1140. };
  1141. // twenga
  1142. tarteaucitron.services.twenga = {
  1143. "key": "twenga",
  1144. "type": "ads",
  1145. "name": "Twenga",
  1146. "uri": "http://www.twenga.com/privacy.php",
  1147. "needConsent": true,
  1148. "cookies": [],
  1149. "js": function () {
  1150. "use strict";
  1151. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1152. return;
  1153. }
  1154. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1155. }
  1156. };
  1157. // twitter
  1158. tarteaucitron.services.twitter = {
  1159. "key": "twitter",
  1160. "type": "social",
  1161. "name": "Twitter",
  1162. "uri": "https://support.twitter.com/articles/20170514",
  1163. "needConsent": true,
  1164. "cookies": [],
  1165. "js": function () {
  1166. "use strict";
  1167. tarteaucitron.fallback(['tacTwitter'], '');
  1168. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1169. },
  1170. "fallback": function () {
  1171. "use strict";
  1172. var id = 'twitter';
  1173. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1174. }
  1175. };
  1176. // twitter embed
  1177. tarteaucitron.services.twitterembed = {
  1178. "key": "twitterembed",
  1179. "type": "social",
  1180. "name": "Twitter (cards)",
  1181. "uri": "https://support.twitter.com/articles/20170514",
  1182. "needConsent": true,
  1183. "cookies": [],
  1184. "js": function () {
  1185. "use strict";
  1186. var uniqIds = [],
  1187. i,
  1188. e,
  1189. html;
  1190. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1191. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1192. uniqIds.push(uniqId);
  1193. html = '<div id="' + uniqId + '" ';
  1194. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1195. html += 'theme="' + x.getAttribute('theme') + '" ';
  1196. html += 'cards="' + x.getAttribute('cards') + '" ';
  1197. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1198. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1199. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1200. html += '></div>';
  1201. return html;
  1202. });
  1203. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1204. for (i = 0; i < uniqIds.length; i += 1) {
  1205. e = document.getElementById(uniqIds[i]);
  1206. twttr.widgets.createTweet(
  1207. e.getAttribute('tweetid'),
  1208. e,
  1209. {
  1210. theme: e.getAttribute('theme'),
  1211. cards: e.getAttribute('cards'),
  1212. conversation: e.getAttribute('conversation'),
  1213. lang: tarteaucitron.getLanguage(),
  1214. dnt: true,
  1215. width: e.getAttribute('data-width'),
  1216. align: e.getAttribute('data-align')
  1217. }
  1218. );
  1219. }
  1220. });
  1221. },
  1222. "fallback": function () {
  1223. "use strict";
  1224. var id = 'twitterembed';
  1225. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1226. elem.style.width = elem.getAttribute('data-width') + 'px';
  1227. return tarteaucitron.engage(id);
  1228. });
  1229. }
  1230. };
  1231. // twitter timeline
  1232. tarteaucitron.services.twittertimeline = {
  1233. "key": "twittertimeline",
  1234. "type": "social",
  1235. "name": "Twitter (timelines)",
  1236. "uri": "https://support.twitter.com/articles/20170514",
  1237. "needConsent": true,
  1238. "cookies": [],
  1239. "js": function () {
  1240. "use strict";
  1241. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1242. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1243. },
  1244. "fallback": function () {
  1245. "use strict";
  1246. var id = 'twittertimeline';
  1247. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1248. }
  1249. };
  1250. // user voice
  1251. tarteaucitron.services.uservoice = {
  1252. "key": "uservoice",
  1253. "type": "support",
  1254. "name": "UserVoice",
  1255. "uri": "https://www.uservoice.com/privacy/",
  1256. "needConsent": true,
  1257. "cookies": [],
  1258. "js": function () {
  1259. "use strict";
  1260. if (tarteaucitron.user.userVoiceApi === undefined) {
  1261. return;
  1262. }
  1263. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1264. }
  1265. };
  1266. // vimeo
  1267. tarteaucitron.services.vimeo = {
  1268. "key": "vimeo",
  1269. "type": "video",
  1270. "name": "Vimeo",
  1271. "uri": "http://vimeo.com/privacy",
  1272. "needConsent": true,
  1273. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1274. "js": function () {
  1275. "use strict";
  1276. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1277. var video_id = x.getAttribute("videoID"),
  1278. video_width = x.getAttribute("width"),
  1279. frame_width = 'width=',
  1280. video_height = x.getAttribute("height"),
  1281. frame_height = 'height=',
  1282. video_frame;
  1283. if (video_id === undefined) {
  1284. return "";
  1285. }
  1286. if (video_width !== undefined) {
  1287. frame_width += '"' + video_width + '" ';
  1288. } else {
  1289. frame_width += '"" ';
  1290. }
  1291. if (video_height !== undefined) {
  1292. frame_height += '"' + video_height + '" ';
  1293. } else {
  1294. frame_height += '"" ';
  1295. }
  1296. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1297. return video_frame;
  1298. });
  1299. },
  1300. "fallback": function () {
  1301. "use strict";
  1302. var id = 'vimeo';
  1303. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1304. elem.style.width = elem.getAttribute('width') + 'px';
  1305. elem.style.height = elem.getAttribute('height') + 'px';
  1306. return tarteaucitron.engage(id);
  1307. });
  1308. }
  1309. };
  1310. // visualrevenue
  1311. tarteaucitron.services.visualrevenue = {
  1312. "key": "visualrevenue",
  1313. "type": "analytic",
  1314. "name": "VisualRevenue",
  1315. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1316. "needConsent": true,
  1317. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1318. "js": function () {
  1319. "use strict";
  1320. if (tarteaucitron.user.visualrevenueId === undefined) {
  1321. return;
  1322. }
  1323. window._vrq = window._vrq || [];
  1324. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1325. window._vrq.push(['automate', true]);
  1326. window._vrq.push(['track', function () {}]);
  1327. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1328. }
  1329. };
  1330. // vshop
  1331. tarteaucitron.services.vshop = {
  1332. "key": "vshop",
  1333. "type": "ads",
  1334. "name": "vShop",
  1335. "uri": "http://vshop.fr/privacy-policy",
  1336. "needConsent": true,
  1337. "cookies": [],
  1338. "js": function () {
  1339. "use strict";
  1340. tarteaucitron.fallback(['vcashW'], '');
  1341. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1342. },
  1343. "fallback": function () {
  1344. "use strict";
  1345. var id = 'vshop';
  1346. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1347. }
  1348. };
  1349. // wysistat
  1350. tarteaucitron.services.wysistat = {
  1351. "key": "wysistat",
  1352. "type": "analytic",
  1353. "name": "Wysistat",
  1354. "uri": "http://wysistat.net/contact/",
  1355. "needConsent": true,
  1356. "cookies": ['Wysistat'],
  1357. "js": function () {
  1358. "use strict";
  1359. if (tarteaucitron.user.wysistat === undefined) {
  1360. return;
  1361. }
  1362. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1363. 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);
  1364. });
  1365. }
  1366. };
  1367. // xiti
  1368. tarteaucitron.services.xiti = {
  1369. "key": "xiti",
  1370. "type": "analytic",
  1371. "name": "Xiti",
  1372. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1373. "needConsent": true,
  1374. "cookies": [],
  1375. "js": function () {
  1376. "use strict";
  1377. if (tarteaucitron.user.xitiId === undefined) {
  1378. return;
  1379. }
  1380. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1381. Xt_r,
  1382. Xt_h,
  1383. Xt_i,
  1384. Xt_s,
  1385. div = document.createElement('div');
  1386. try {
  1387. Xt_r = top.document.referrer;
  1388. } catch (e) {
  1389. Xt_r = document.referrer;
  1390. }
  1391. Xt_h = new Date();
  1392. Xt_i = '<img style="display:none" border="0" alt="" ';
  1393. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1394. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1395. if (parseFloat(navigator.appVersion) >= 4) {
  1396. Xt_s = screen;
  1397. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1398. }
  1399. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1400. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1401. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1402. tarteaucitron.user.xitiMore();
  1403. }
  1404. }
  1405. };
  1406. // youtube
  1407. tarteaucitron.services.youtube = {
  1408. "key": "youtube",
  1409. "type": "video",
  1410. "name": "YouTube",
  1411. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1412. "needConsent": true,
  1413. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1414. "js": function () {
  1415. "use strict";
  1416. tarteaucitron.fallback(['youtube_player'], function (x) {
  1417. var video_id = x.getAttribute("videoID"),
  1418. video_width = x.getAttribute("width"),
  1419. frame_width = 'width=',
  1420. video_height = x.getAttribute("height"),
  1421. frame_height = 'height=',
  1422. video_frame,
  1423. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1424. if (video_id === undefined) {
  1425. return "";
  1426. }
  1427. if (video_width !== undefined) {
  1428. frame_width += '"' + video_width + '" ';
  1429. } else {
  1430. frame_width += '"" ';
  1431. }
  1432. if (video_height !== undefined) {
  1433. frame_height += '"' + video_height + '" ';
  1434. } else {
  1435. frame_height += '"" ';
  1436. }
  1437. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1438. return video_frame;
  1439. });
  1440. },
  1441. "fallback": function () {
  1442. "use strict";
  1443. var id = 'youtube';
  1444. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1445. elem.style.width = elem.getAttribute('width') + 'px';
  1446. elem.style.height = elem.getAttribute('height') + 'px';
  1447. return tarteaucitron.engage(id);
  1448. });
  1449. }
  1450. };
  1451. // zopim
  1452. tarteaucitron.services.zopim = {
  1453. "key": "zopim",
  1454. "type": "support",
  1455. "name": "Zopim",
  1456. "uri": "https://www.zopim.com/privacy",
  1457. "needConsent": true,
  1458. "cookies": ['__zlcid', '__zprivacy'],
  1459. "js": function () {
  1460. "use strict";
  1461. if (tarteaucitron.user.zopimID === undefined) {
  1462. return;
  1463. }
  1464. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1465. }
  1466. };