PageSourceSearch

https://members.trainingindustry.com/content/themes/buddyboss-them…/assets/global/dist/global.js?ver=7.1.2

js trainingindustry.com collected 2026-09-24 08:37:46 UTC 4,837 bytes, 116 lines download raw bytes

1"use strict";
2
3function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6(function () {
7  /**
8   * Used for small init functions.
9   */
10
11  /**
12   * Example plain js foreach function
13   */
14  var initSandwiches = function initSandwiches() {
15    var sandwiches = document.querySelectorAll('h1');
16    if (sandwiches.length) {
17      sandwiches.forEach(function (sandwich, index) {
18        console.log(sandwich.textContent + " " + index); // The element
19      });
20    } else {
21      alert('Where is your H1?');
22    }
23  };
24  var smoothScrollAnchors = function smoothScrollAnchors() {
25    var anchorLinks = document.querySelectorAll('.smooth-scroll-anchors a');
26    if (!anchorLinks) {
27      return;
28    } else {
29      var smoothScroll = function smoothScroll(target) {
30        document.querySelector(target).scrollIntoView({
31          behavior: 'smooth'
32        });
33      };
34      var _iterator = _createForOfIteratorHelper(anchorLinks),
35        _step;
36      try {
37        for (_iterator.s(); !(_step = _iterator.n()).done;) {
38          var link = _step.value;
39          link.addEventListener('click', function (ev) {
40            ev.preventDefault();
41            smoothScroll(ev.target.hash);
42          });
43        }
44      } catch (err) {
45        _iterator.e(err);
46      } finally {
47        _iterator.f();
48      }
49    }
50  };
51
52  /**
53   * Scroll to top
54   */
55  var scrollButton = document.querySelector('#footer-backtotop');
56  if (scrollButton != undefined) {
57    scrollButton.addEventListener('click', function (event) {
58      event.preventDefault();
59      window.scrollTo({
60        top: 0,
61        behavior: "smooth"
62      });
63    });
64  }
65  var moveMathCaptcha = function moveMathCaptcha() {
66    var formRow = document.querySelector('.mepr_math_captcha');
67    var paymentMethodsWrapper = document.querySelector('.mepr-payment-methods-wrapper');
68    if (formRow) {
69      var newText = document.createElement('p');
70      newText.textContent = "Please verify you are human.";
71      formRow.insertBefore(newText, formRow.querySelector('.mp-form-label'));
72    }
73    if (formRow && paymentMethodsWrapper) {
74      paymentMethodsWrapper.insertAdjacentElement('afterend', formRow);
75    }
76  };
77
78  /**
79   * Toggle Search
80   */
81  // const toggleSearch = () => {
82  //     const searchToggleLink = document.getElementById('search-toggle'),
83  //           searchInput = document.querySelector('.search-form__input'),
84  //           searchFormEl = document.querySelector('.search-form'),
85  //           searchSubmit = document.querySelector('.search-form__submit');
86
87  //     searchToggleLink.addEventListener( 'click', function( event ) {
88  //         searchFormEl.classList.toggle('toggled');
89
90  //         if ( searchFormEl.classList.contains('toggled') ) {
91  //             searchInput.focus();
92  //             searchInput.value = '';
93  //         }
94  //     } );
95  // }
96
97  document.addEventListener("DOMContentLoaded", function () {
98    //initSandwiches();
99    /**
100     * Init lazyload - used for lazyloading images and iframes that have class "lazy".
101     * Plugin is enqueued in functions.php (commented out)
102     * more examples: https://github.com/verlok/vanilla-lazyload#-getting-started---html
103     */
104    //var lazyLoadInstance = new LazyLoad();
105
106    //toggleSearch();
107
108    smoothScrollAnchors();
109    moveMathCaptcha();
110    inlineSVG.init({
111      svgSelector: 'img._image',
112      // the class attached to all images that should be inlined
113      initClass: 'js-inlinesvg' // class added to <html>
114    });
115  });
116})();

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.