1(($,Drupal, drupalSettings, once) => { 2 Drupal.behaviors.eu_cookie_compliance_custom = { 3 attach: function (context, drupalSettings) { 4 if ( '.eu-cookie-compliance-config'.length) { 5 $(once('eu-cookie-compliance', '.eu-cookie-compliance-config', context)).on("click", function() { 6 if ( $('.eu-cookie-compliance-config.default').is(':visible')) { 7 $('.eu-cookie-compliance-category').show(); 8 $('.eu-cookie-compliance-categories-buttons').show(); 9 $('.eu-cookie-compliance-config.config').show(); 10 $('.eu-cookie-compliance-config.default').hide(); 11 $('.eu-cookie-compliance-message.default').hide(); 12 $('.eu-cookie-compliance-message.config').show(); 13 } else { 14 $('.eu-cookie-compliance-category').hide(); 15 $('.eu-cookie-compliance-categories-buttons').hide(); 16 $('.eu-cookie-compliance-config.default').show(); 17 $('.eu-cookie-compliance-config.config').hide(); 18 $('.eu-cookie-compliance-message.config').hide(); 19 $('.eu-cookie-compliance-message.default').show(); 20 } 21 }); 22 } 23 } 24 }; 25}) (jQuery, Drupal, drupalSettings, once);
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.