1(function ($, Drupal, drupalSettings) { 2 Drupal.behaviors.stratis_gdpr_encryption = { 3 attach: function (context) { 4 $('button.stratis-gdpr-encryption').on('click', function (e) { 5 var url = $(this).attr('data-url') + '?route=' + drupalSettings.path.route; 6 var elem = $(this).parent(); 7 8 $.ajax({url: url}).done(function( result ) { 9 if (result.success === true) { 10 result = result.decrypted; 11 } 12 else { 13 result = Drupal.t('OOPS! Something went wrong'); 14 } 15 16 if (elem.find('label').length > 0) { 17 result = elem.find('label').prop('outerHTML') + result; 18 } 19 elem.html(result); 20 }); 21 e.preventDefault(); 22 }); 23 } 24 } 25})(jQuery, Drupal, drupalSettings);
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.