PageSourceSearch

https://selectgreateromaha.com/wp-content/themes/hello-elementor-child/js/front-end.js?ver=1.0.0

js selectgreateromaha.com collected 2026-10-02 13:17:10 UTC 1,812 bytes, 46 lines download raw bytes

1
2document.addEventListener('DOMContentLoaded', function() {
3    // Wait for Elementor's frontend scripts to be loaded
4    // This is safer as it ensures the body class is set
5    window.addEventListener('elementor/frontend/init', () => {
6        const menuLinks = document.querySelectorAll('.e-n-menu .e-link.e-n-menu-title-container');
7
8        menuLinks.forEach(function(link) {
9            link.addEventListener('click', function(event) {
10                // Check if Elementor has classified the device as mobile
11                if (document.body.classList.contains('elementor-device-mobile') || document.body.classList.contains('elementor-device-tablet')) {
12                    event.preventDefault();
13                }
14            });
15        });
16    });
17});
18
19// Update after Growthzone Updates
20
21// Wait for the DOM (Document Object Model) to be fully loaded and parsed
22document.addEventListener('DOMContentLoaded', () => {
23    
24    // --- Configuration ---
25    // Set the domain you want to find and the new domain you want to replace it with.
26    // Using .hostname is precise and ignores 'www.' unless you include it.
27    const oldDomain = 'omahagc.wpenginepowered.com';
28    const newDomain = 'www.omahachamber.org';
29    
30    // 1. Find all anchor tags (links) on the page
31    const allLinks = document.querySelectorAll('a');
32    
33    // 2. Loop through each link
34    allLinks.forEach(link => {
35        // 3. Check if the link's hostname matches the old domain
36        // The 'hostname' property conveniently gives us just the domain part
37        // of the URL (e.g., 'domain-x.com')
38        if (link.hostname === oldDomain) {
39            
40            link.hostname = newDomain;
41            
42        }
43    });
44
45    console.log('Link rewriting complete.');
46});

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.