PageSourceSearch

https://www.telehouse.net/wp-content/themes/uncode/library/js/custom-script.js

js telehouse.net collected 2026-09-24 18:55:22 UTC 5,582 bytes, 108 lines download raw bytes

1
2function isMobile() {
3    return window.innerWidth <= 820; // Adjust the breakpoint as needed
4  }
5jQuery(document).ready(function($) {
6
7    if (isMobile()) {
8
9        var element = $("#menu-item-4487"); // Select the element by its class
10        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-4487 dropdown");
11        var element = $("#menu-item-4490"); // Select the element by its class
12        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-4490 dropdown");
13        var element = $("#menu-item-49"); // Select the element by its class
14        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-49 dropdown");
15        var element = $("#menu-item-53"); // Select the element by its class
16        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-53 dropdown")
17        var element = $("#menu-item-50"); // Select the element by its class
18        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-50 dropdown");
19        var element = $("#menu-item-54"); // Select the element by its class
20        element.removeClass("menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-54 dropdown");
21
22
23
24        $('#menu-item-4487 .drop-menu').remove();
25        $('#menu-item-4490 .drop-menu').remove();
26        $('#menu-item-49 .drop-menu').remove();
27        $('#menu-item-53 .drop-menu').remove();
28        $('#menu-item-50 .drop-menu').remove();
29        $('#menu-item-54 .drop-menu').remove();
30
31        var linkA1 = document.getElementById("menu-item-4487").getElementsByTagName("a")[0];
32        var linkA2 = document.getElementById("menu-item-4490").getElementsByTagName("a")[0];
33        var linkA3 = document.getElementById("menu-item-49").getElementsByTagName("a")[0];
34        var linkA4 = document.getElementById("menu-item-53").getElementsByTagName("a")[0];
35        var linkA5 = document.getElementById("menu-item-50").getElementsByTagName("a")[0];
36        var linkA6 = document.getElementById("menu-item-54").getElementsByTagName("a")[0];
37        var linkA7 = document.getElementById("menu-item-4337").getElementsByTagName("a")[0];
38
39      
40        // Change the href attributes for mobile version
41        linkA1.href = "https://www.telehouse.net/data-centre-services/"; // Replace "new_mobile_url_for_a1" with the mobile URL for A1
42        linkA2.href = "https://www.telehouse.net/data-centre-services/colocation-services/"; // Replace "new_mobile_url_for_a2" with the mobile URL for A2
43        linkA3.href = "https://www.telehouse.net/data-centre-connectivity/data-centre-interconnection/"; 
44        linkA4.href = "https://www.telehouse.net/data-centre-connectivity/internet-exchange-peering/"; 
45        linkA5.href = "https://www.telehouse.net/data-centre-connectivity/cloud-connectivity-services/"; 
46        linkA6.href = "https://www.telehouse.net/data-centre-connectivity/global-it-network/"; 
47        linkA7.href = "https://www.telehouse.net/colocation-solutions/"; 
48        var linkElement = $(".mega-menu.data-centres-mega.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children > a");
49        linkElement.attr("href", "#");
50        
51        var linkElement1 = $(".mega-menu.mega-modified.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children > a");
52        linkElement1.attr("href", "#");
53        
54        var linkElement2 = $(".mega-menu.solutions-mega.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-has-children > a");
55        linkElement2.attr("href", "#");
56    
57    
58        $('.data-centres-mega').click(function() {
59            
60            var icon = $(this).find('i.fa');
61            if (icon.hasClass('fa-angle-down')) {
62                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
63                icon.removeClass('fa-angle-down').addClass('fa-angle-up');
64            } else {
65                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
66                icon.removeClass('fa-angle-up').addClass('fa-angle-down');
67            }
68           
69        });
70
71        $('.mega-modified').click(function() {
72            
73            var icon = $(this).find('i.fa');
74           
75            if (icon.hasClass('fa-angle-down')) {
76                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
77                icon.removeClass('fa-angle-down').addClass('fa-angle-up');
78            } else {
79                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
80                icon.removeClass('fa-angle-up').addClass('fa-angle-down');
81            }
82           
83        });
84
85        $('.solutions-mega').click(function() {
86            
87            var icon = $(this).find('i.fa');
88            
89            if (icon.hasClass('fa-angle-down')) {
90                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
91                icon.removeClass('fa-angle-down').addClass('fa-angle-up');
92            } else {
93                $('.mega-menu i.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
94                icon.removeClass('fa-angle-up').addClass('fa-angle-down');
95            }
96           
97        });
98
99        var searchInput = $('.search-field');
100        searchInput.attr('placeholder', 'Search Telehouse');
101    
102
103    }
104
105
106
107});
108

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.