1"use strict"; 2 3(function ($, Drupal, once) { 4 Drupal.behaviors.analyticsCustom = { 5 attach: function attach(context) { 6 document.addEventListener('dialog:aftercreate', function (e) { 7 var cancel = e.target.closest('[role="dialog"]').querySelector('button.ui-dialog-titlebar-close'); 8 Drupal.analytics.addDataAnalyticsLink(cancel, { 9 name: 'Cancel' 10 }); 11 }); 12 $(once('analyticsCustom', '.webform-button--submit', context)).each(function () { 13 Drupal.analytics.addDataAnalyticsLink(this, { 14 name: 'submit' 15 }); 16 $(this).addClass('data-analytics-click-link'); 17 }); 18 $(once('analyticsCustom', '.otsuka-jynarque-hcc-calendar-form .form-submit', context)).each(function () { 19 Drupal.analytics.addDataAnalyticsLink(this, { 20 name: 'download' 21 }); 22 $(this).addClass('data-analytics-click-link'); 23 }); 24 $(once('analyticsCustom', '.react-player-preview button.play', context)).each(function () { 25 Drupal.analytics.addDataAnalyticsLink(this, { 26 name: 'Play' 27 }); 28 }); 29 } 30 }; 31})(jQuery, Drupal, 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.