PageSourceSearch

https://content.onlinetennisinstruction.com/wp-content/plugins/oti…/js/oti-wordpress-login.js?v=1598877294

js onlinetennisinstruction.com collected 2026-10-02 08:12:08 UTC 2,696 bytes, 77 lines download raw bytes

1"use strict";
2
3var isFormValid = function isFormValid(form) {
4  return Array.from(form.querySelectorAll('input[name=recaptcha]')).reduce(function (hasValue, input) {
5    return hasValue && !!input.value;
6  }, true);
7};
8
9document.addEventListener('DOMContentLoaded', function () {
10  document.querySelectorAll('form').forEach(function (form) {
11    return form.addEventListener('submit', function (event) {
12      if (!isFormValid(form)) {
13        event.preventDefault();
14        return false;
15      }
16
17      form.querySelectorAll('[type=submit]').forEach(function (element) {
18        element.disabled = true;
19        element.querySelectorAll('.busy').forEach(function (spinner) {
20          return spinner.classList.remove('d-none');
21        });
22      });
23      form.classList.add('submitting');
24      setInterval(function () {
25        return form.querySelectorAll('.submitting .count-down').forEach(function (countDown) {
26          return countDown.innerHTML = String(Math.max(0, Number.parseInt(countDown.innerHTML) - 1));
27        });
28      }, 1000);
29      setTimeout(function () {
30        return form.classList.add('submitted');
31      }, 5000);
32      return true;
33    });
34  });
35  document.querySelectorAll('#toggle-password-view').forEach(function (button) {
36    return button.addEventListener('click', function () {
37      return document.getElementById('password').type = button.classList.toggle('show-password') ? 'text' : 'password';
38    });
39  });
40  document.querySelectorAll('#reload-button').forEach(function (button) {
41    return setTimeout(function () {
42      button.disabled = false;
43      button.addEventListener('click', function () {
44        return location.reload();
45      });
46    }, 1500);
47  });
48});
49
50var createRecaptcha = function createRecaptcha(containerId, sitekey) {
51  document.addEventListener('DOMContentLoaded', function () {
52    return document.querySelectorAll('form').forEach(function (form) {
53      return form.addEventListener('submit', function (event) {
54        if (!isFormValid(form)) {
55          event.preventDefault();
56          document.getElementById(containerId).classList.remove('border-0');
57          return false;
58        }
59
60        document.getElementById(containerId).classList.add('border-0');
61        return true;
62      });
63    });
64  });
65  return function () {
66    return grecaptcha && grecaptcha.render(containerId, {
67      sitekey: sitekey,
68      callback: function callback() {
69        document.getElementById(containerId).classList.add('border-0');
70        document.querySelectorAll('input[name=recaptcha]').forEach(function (input) {
71          return input.value = 1;
72        });
73      }
74    });
75  };
76};
77//# sourceMappingURL=oti-wordpress-login.js.map

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.