1(function ($, Drupal) { 2 Drupal.behaviors.tacServiceYoutubeApi = { 3 attach: function attach(context) { 4 if (contextIsRoot(context)) { 5 document.addEventListener(tarteaucitronEvents.TARTEAUCITRON_READY, function (evt) { 6 tarteaucitron.services.youtubeapi = { 7 "key": "youtubeapi", 8 "type": "video", 9 "name": "Youtube API", 10 "uri": "https://policies.google.com/privacy", 11 "needConsent": true, 12 "cookies": [], 13 "js": function () { 14 "use strict"; 15 tarteaucitron.addScript('https://www.youtube.com/player_api'); 16 } 17 }; 18 19 // Rajout de Youtbe API à la liste des services soumis à l'acceptation de 20 // l'utilisateur. 21 (tarteaucitron.job = tarteaucitron.job || []).push('youtubeapi'); 22 }); 23 24 } 25 } 26 }; 27})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.