1(function ($, cookies) { 2 'use strict'; 3 4 Drupal.behaviors.handleGDPR = { 5 attach: function(context, settings) { 6 if (!cookies.get('gdpr')) { 7 let expiration = parseInt(settings.config.GDPR_COOKIE_EXPIRATION_DAYS, 10) || 365 8 $('.gdpr__wrapper', context).addClass('is-open'); 9 $('.gdpr__close', context).on('click', function () { 10 cookies.set('gdpr', 1, { expires: expiration }) 11 }) 12 } 13 } 14 }; 15})(jQuery, window.Cookies);
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.