PageSourceSearch

https://www.nmp.co.jp/modules/contrib/marketo_ma/js/marketo_ma.js?v=1.x

js nmp.co.jp collected 2026-09-24 21:27:18 UTC 1,285 bytes, 39 lines download raw bytes

1(function (Drupal, once, $) {
2  Drupal.behaviors.marketo_ma = {
3    attach: function (context, settings) {
4      // Only load Marketo Once.
5      const e = once('marketo', document.body);
6      e.forEach(function () {
7        // Only track Marketo if the setting is enabled.
8        if (
9          typeof settings.marketo_ma !== 'undefined' &&
10          settings.marketo_ma.track
11        ) {
12          $.ajax({
13            url: document.location.protocol + settings.marketo_ma.library,
14            dataType: 'script',
15            cache: true,
16            success: function () {
17              Munchkin.init(
18                settings.marketo_ma.key,
19                settings.marketo_ma.initParams
20              );
21              if (typeof settings.marketo_ma.actions !== 'undefined') {
22                settings.marketo_ma.actions.forEach(function () {
23                  Drupal.behaviors.marketo_ma.marketoMunchkinFunction(
24                    this.action,
25                    this.data,
26                    this.hash
27                  );
28                });
29              }
30            }
31          });
32        }
33      });
34    },
35    marketoMunchkinFunction: function(actionType, data, hash) {
36      Munchkin.munchkinFunction(actionType, data, hash);
37    }
38  };
39})(Drupal, once, jQuery);

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.