PageSourceSearch

https://www.tenminutetrainernetwork.com/assets/common_scripts.js

js tenminutetrainernetwork.com collected 2026-10-02 06:46:20 UTC 2,034 bytes, 54 lines download raw bytes

1let detectCustomerInfoPage = () => {
2  if (location.href.includes('checkout/new')) {
3    let inputGroups = document.querySelectorAll('.mb-6.flex.flex-col')
4    inputGroups.forEach(group => {
5      if (group.querySelector('label')) {
6        if (group.querySelector('label').innerText == 'Phone Number') {
7          group.querySelector('input').required = true;
8        }
9        if (group.querySelector('label').innerText == 'Company / Call Letters') {
10          group.querySelector('input').required = true;
11        }
12        if (group.querySelector('label').innerText == 'State') {
13          group.querySelector('input').required = true;
14        }
15        if (group.querySelector('label').innerText == 'Password') {
16          group.querySelector('label').innerText = 'Create Your Password';
17        }
18        if (group.querySelector('label').innerText == 'Email') {
19          group.querySelector('label').innerText = 'Company Email';
20        }
21      }
22    })
23  }
24  setTimeout(() => detectCustomerInfoPage(), 500)
25}
26detectCustomerInfoPage()
27
28let detectCompleteOrderPage = () => {
29  if (location.href.includes('/orders/complete_order') && document.body.textContent.includes('RADIOONE')) {
30    let textElements = document.querySelectorAll('body :not(script)')
31
32    textElements.forEach(element => {
33      if (element.textContent.trim() === 'Free for 14 days') {
34        element.textContent = '$0.00';
35      }
36    });
37  }
38  setTimeout(() => detectCompleteOrderPage(), 500);
39}
40
41detectCompleteOrderPage();
42
43// {% if page.url == "/programs/live-sales-followups" %}
44//     <script>
45//     document.addEventListener("DOMContentLoaded", function() {
46//         var elements = document.querySelectorAll(".bundle-offer");
47//         elements.forEach(function(element) {
48//             if (element.innerText.includes("BUY AS PART OF A BUNDLE:")) {
49//                 element.innerText = "CLICK TO CREATE AN ACCOUNT:";
50//             }
51//         });
52//     });
53//     </script>
54// {% endif %}

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.