PageSourceSearch

https://athesia-tappeiner.com/sites/all/modules/popup_onload/popup…/popup_onload_statistics.js?t5m2cd

js athesia-tappeiner.com collected 2026-10-02 12:20:48 UTC 1,052 bytes, 45 lines download raw bytes

1/**
2 * @file
3 * Attach clicks/views statistics JS to colorbox.
4 */
5
6(function ($) {
7
8Drupal.behaviors.attachPopupOnLoadStatistics = {
9
10  attach: function (context, settings) {
11    if (!$.isFunction($.colorbox)) {
12        return;
13      }
14
15    function popup_on_load_statistics_log_action(atype) {
16      var popup_onload_settings = settings.popup_onload;
17
18      $.ajax({
19        async: false,
20        dataType: 'json',
21        data: {
22          atype: atype,
23          popup_id: popup_onload_settings.popup_id
24        },
25        type: 'POST',
26        url: '/popup_onload_stats_log'
27      });
28    }
29
30    $(document).bind('cbox_complete', function() {
31      popup_on_load_statistics_log_action('view');
32
33      $('#colorbox.popup_onload a, #colorbox.popup_onload area').click(function (event) {
34        popup_on_load_statistics_log_action('click');
35        return true;
36      });
37      $('#colorbox.popup_onload form').submit(function (event) {
38        popup_on_load_statistics_log_action('click');
39        return true;
40      });
41    });
42  }
43}
44
45})(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.