PageSourceSearch

https://wodzislaw.info.pl/wp-content/plugins/features-of-local-websites/includes/js/js-links.js

js wodzislaw.info.pl collected 2026-10-02 23:58:55 UTC 10,482 bytes, 255 lines download raw bytes

1// Links
2(function($) {
3    $(document).ready(function() {
4        $(".regulamin").on("click", function (event) {
5            event.preventDefault();
6            window.location.href = "/regulamin";
7        });
8        $(".firmy-regulamin").on("click", function (event) {
9            event.preventDefault();
10            window.location.href = "/regulamin";
11        });
12        $(document).on("click", ".polityka-prywatnosci, .privacy-policy-link", function (event) {
13            event.preventDefault();
14            window.location.href = "/polityka-prywatnosci";
15        });
16
17        $(".company-button").on("click", function (event) {
18            event.preventDefault();
19            window.location.href = "/firmy-formularz";
20        });
21
22        $(".job-offer-add-button").on("click", function (event) {
23            event.preventDefault();
24            window.location.href = "/praca-formularz";
25        });
26
27        $(".openweather-source").on("click", function (event) {
28            event.preventDefault();
29            window.open("https://openweathermap.org/", '_blank');
30        });
31
32        $(".gios-source").on("click", function (event) {
33            event.preventDefault();
34            window.open("https://www.gov.pl/web/gios", '_blank');
35        });
36
37        $(".category-link.biznes-finanse-i-ubezpieczenia").on("click", function (event) {
38            event.preventDefault();
39            window.location.href = "/firmy#biznes-finanse-i-ubezpieczenia";
40        });
41        $(".category-link.budownictwo-dom-i-ogrod").on("click", function (event) {
42            event.preventDefault();
43            window.location.href = "/firmy#budownictwo-dom-i-ogrod";
44        });
45        $(".category-link.edukacja-i-nauka").on("click", function (event) {
46            event.preventDefault();
47            window.location.href = "/firmy#edukacja-i-nauka";
48        });
49        $(".category-link.gastronomia").on("click", function (event) {
50            event.preventDefault();
51            window.location.href = "/firmy#gastronomia";
52        });
53        $(".category-link.imprezy-rozrywka-i-kultura").on("click", function (event) {
54            event.preventDefault();
55            window.location.href = "/firmy#imprezy-rozrywka-i-kultura";
56        });
57        $(".category-link.motoryzacja-i-transport").on("click", function (event) {
58            event.preventDefault();
59            window.location.href = "/firmy#motoryzacja-i-transport";
60        });
61        $(".category-link.noclegi-i-turystyka").on("click", function (event) {
62            event.preventDefault();
63            window.location.href = "/firmy#noclegi-i-turystyka";
64        });
65        $(".category-link.reklama-internet-i-it").on("click", function (event) {
66            event.preventDefault();
67            window.location.href = "/firmy#reklama-internet-i-it";
68        });
69        $(".category-link.sport-i-rekreacja").on("click", function (event) {
70            event.preventDefault();
71            window.location.href = "/firmy#sport-i-rekreacja";
72        });
73        $(".category-link.uroda").on("click", function (event) {
74            event.preventDefault();
75            window.location.href = "/firmy#uroda";
76        });
77        $(".category-link.uslugi-lokalne").on("click", function (event) {
78            event.preventDefault();
79            window.location.href = "/firmy#uslugi-lokalne";
80        });
81        $(".category-link.zakupy-i-handel").on("click", function (event) {
82            event.preventDefault();
83            window.location.href = "/firmy#zakupy-i-handel";
84        });
85        $(".category-link.zdrowie").on("click", function (event) {
86            event.preventDefault();
87            window.location.href = "/firmy#zdrowie";
88        });
89
90        $(document).ready(function() {
91            $('.materials-download-button').click(function() {
92                window.location.href = 'https://brightestmedia.eu/materialy-promocyjne.zip';
93            });
94        });
95
96        $(".wiadomosci-post-source span").each(function () {
97            $(this).on("click", function (event) {
98                event.preventDefault();
99                var encodedUrl = $(this).attr("data");
100                var decodedUrl = decodeURIComponent(atob(encodedUrl));
101                window.open(decodedUrl, "_blank", "noopener, noreferrer");
102            });
103        });
104
105        $(".tourist-guide-source span").each(function () {
106            $(this).on("click", function (event) {
107                event.preventDefault();
108                var encodedUrl = $(this).attr("data");
109                var decodedUrl = decodeURIComponent(atob(encodedUrl));
110                window.open(decodedUrl, "_blank", "noopener, noreferrer");
111            });
112        });
113
114        $(".company-website-link").each(function () {
115            $(this).on("click", function (event) {
116                event.preventDefault();
117                var encodedUrl = $(this).attr("data");
118                var decodedUrl = decodeURIComponent(atob(encodedUrl));
119                
120                if (!decodedUrl.match(/^https?:\/\//i)) {
121                    decodedUrl = "https://" + decodedUrl;
122                }
123                
124                window.open(decodedUrl, "_blank", "noopener, noreferrer");
125            });
126        });
127
128        $('.company-profiles-post-directions').on('click', function() {
129            var encodedUrl = $(this).attr('data');
130            if (encodedUrl) {
131                var url = window.atob(encodedUrl);
132                window.open(url, '_blank');
133            }
134        });
135
136        $('.company-profiles-post-reviews-link').on('click', function() {
137            var encodedUrl = $(this).attr('data');
138            if (encodedUrl) {
139                var url = window.atob(encodedUrl);
140                window.open(url, '_blank');
141            }
142        });
143
144        $('.company-profiles-post-social-link').on('click', function() {
145            var encodedUrl = $(this).attr('data');
146            if (encodedUrl) {
147                var url = atob(encodedUrl);
148                if (!url.match(/^https?:\/\//i)) {
149                    url = "https://" + url;
150                }
151                window.open(url, '_blank');
152            }
153        });
154
155        $('.company-profiles-post-website-link').on('click', function() {
156            var encodedUrl = $(this).attr('data');
157            if (encodedUrl) {
158                var url = atob(encodedUrl);
159                window.open(url, '_blank');
160            }
161        });
162
163        $('.google-profile-button').on('click', function() {
164            var encodedUrl = $(this).attr('data-profile-url');
165            if (encodedUrl) {
166                var decodedUrl = atob(encodedUrl);
167                window.open(decodedUrl, '_blank', 'noopener,noreferrer');
168            }
169        });
170
171        $('.website-profile-button').on('click', function() {
172            var $this = $(this);
173            var $display = $this.siblings('.website-link-display');
174            
175            var encodedUrl = $this.attr('data-website-url');
176            var encodedWebsiteDomain = $this.attr('data-website-domain');
177            
178            if (encodedUrl && encodedWebsiteDomain) {
179                var decodedUrl = atob(encodedUrl);
180                var websiteDomain = atob(encodedWebsiteDomain);
181                if (!decodedUrl.match(/^https?:\/\//i)) {
182                    decodedUrl = "https://" + decodedUrl;
183                }
184                $display.html('<a href="' + decodedUrl + '" target="_blank" rel="noopener noreferrer">' + websiteDomain + '</a>').show();
185                $this.hide();
186            }
187        });
188
189        $('.phone-profile-button').on('click', function() {
190            var $this = $(this);
191            var $display = $this.siblings('.phone-number-display');
192            
193            var encodedUrl = $this.attr('data-phone-url');
194            var encodedPhoneNumber = $this.attr('data-phone-number');
195            
196            if (encodedUrl && encodedPhoneNumber) {
197                var phoneNumber = atob(encodedPhoneNumber);
198                var telUrl = atob(encodedUrl);
199                var telDigits = telUrl.replace(/[^\d+]/g, '');
200                var telHref = 'tel:' + telDigits;
201                $display.html('<a href="' + telHref + '">' + phoneNumber + '</a>').show();
202                $this.hide();
203            }
204        });
205
206        $(document).on('click', '.praca-widget-button-phone', function(e) {
207            var $this = $(this);
208            
209            if ($this.find('a[href^="tel:"]').length > 0) {
210                return;
211            }
212            
213            e.preventDefault();
214            
215            var encodedPhone = $this.attr('data-info');
216            if (encodedPhone) {
217                var phoneNumber = atob(encodedPhone);
218                var cleanPhone = phoneNumber.replace(/[^\d+]/g, '');
219                var telHref = 'tel:' + cleanPhone;
220                
221                console.log('Encoded phone:', encodedPhone);
222                console.log('Decoded phone:', phoneNumber);
223                console.log('Clean phone:', cleanPhone);
224                console.log('Tel href:', telHref);
225                
226                $this.html('<a href="' + telHref + '" style="color: inherit; text-decoration: none;">' + phoneNumber + '</a>');
227            }
228        });
229    });
230})(jQuery);
231
232document.addEventListener("DOMContentLoaded", function() {
233    var searchButtons = document.querySelectorAll('.search-icon-top');
234    searchButtons.forEach(function(searchButton) {
235        var searchWrapper = document.createElement('div');
236        searchWrapper.setAttribute("class", "search-wrapper");
237        searchButton.parentNode.insertBefore(searchWrapper, searchButton);
238        searchWrapper.appendChild(searchButton);
239
240        searchButton.addEventListener('click', function (event) {
241            event.preventDefault();
242            var searchForm = document.querySelector('.custom-search-form');
243            if (!searchForm) {
244                searchForm = document.createElement('form');
245                searchForm.setAttribute("class", "custom-search-form");
246                searchForm.setAttribute("action", "/");
247                searchForm.setAttribute("method", "get");
248                searchForm.innerHTML = '<input type="text" name="s" placeholder="Wyszukaj..." /><input type="submit" value="Szukaj" />';
249                searchWrapper.appendChild(searchForm);
250            } else {
251                searchWrapper.removeChild(searchForm);
252            }
253        });
254    });
255});

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.