PageSourceSearch

https://sportsethos.com/wp-content/plugins/data-tables-generator-b…/assets/js/tables.shortcode.js?ver=1.15.1

js sportsethos.com collected 2026-10-01 15:18:15 UTC 1,416 bytes, 37 lines download raw bytes

1(function ($, app) {
2  $(document).ready(function () {
3    app.initTablesOnPage();
4
5    // Some contexts insert a table's markup into the DOM after this
6    // document-ready handler already ran once - e.g. Elementor's editor
7    // updating a widget via ajax, or a Gutenberg block's <ServerSideRender>
8    // preview injecting its fetched HTML. Watch for that and initialize
9    // just the newly added, not-yet-initialized tables.
10    if (typeof MutationObserver !== 'undefined' && document.body) {
11      var observer = new MutationObserver(function (mutations) {
12        mutations.forEach(function (mutation) {
13          Array.prototype.forEach.call(mutation.addedNodes || [], function (node) {
14            if (node.nodeType !== 1) {
15              return;
16            }
17
18            var tables = node.classList && node.classList.contains('supsystic-table') ? $(node) : $(node).find('.supsystic-table');
19
20            tables.each(function () {
21              var $table = $(this);
22              if ($table.hasClass('dataTable')) {
23                return;
24              }
25              var id = $table.data('id');
26              if (id) {
27                app.initTablesOnPage(id);
28              }
29            });
30          });
31        });
32      });
33
34      observer.observe(document.body, { childList: true, subtree: true });
35    }
36  });
37})(window.jQuery, window.supsystic.Tables);

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.