/*global tarteaucitron, ga, Shareaholic, stLight*/ // addthis tarteaucitron.services.addthis = { "key": "addthis", "type": "social", "name": "AddThis", "uri": "http://www.addthis.com/privacy/privacy-policy#publisher-visitors", "needConsent": true, "js": function () { "use strict"; if (tarteaucitron.user.addthisPubId === undefined) { return; } tarteaucitron.fallback(['addthis_sharing_toolbox'], ''); tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId); }, "fallback": function () { "use strict"; var cookies = ['__atuvc', '__atuvs'], id = 'addthis'; tarteaucitron.cookie.purge(cookies); tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id)); } }; // youtube tarteaucitron.services.youtube = { "key": "youtube", "type": "social", "name": "YouTube", "uri": "https://www.google.fr/intl/fr/policies/privacy/", "needConsent": true, "js": function () { "use strict"; tarteaucitron.fallback(['youtube_player'], function (x) { var video_id = x.getAttribute("videoID"); if ( video_id === undefined ) { return ""; } var video_width = x.getAttribute("width"); var frame_width = 'width='; if ( video_width !== undefined ) { frame_width+= '"'+video_width+'" '; } else { frame_width+= '"" '; } var video_height = x.getAttribute("height"); var frame_height = 'height='; if ( video_height !== undefined ) { frame_height+= '"'+video_height+'" '; } else { frame_height+= '"" '; } var video_frame = '