PageSourceSearch

https://wloszczowa.org/wp-content/plugins/features-of-local-websites/includes/js/job-offers-data.js

js wloszczowa.org collected 2026-10-03 00:31:58 UTC 2,003 bytes, 58 lines download raw bytes

1// URLs Data
2(function($) {
3    $(document).ready(function() {
4        $(".job-title").each(function () {
5            $(this).on("click", function (event) {
6                event.preventDefault();
7                var encodedJobUrl = $(this).attr("data");
8                var jobUrl = atob(encodedJobUrl);
9                window.open(jobUrl, "_blank", "noopener, noreferrer");
10            });
11        });
12
13        $(".job-apply").on("click", function () {
14            var encodedJobUrl = $(this).siblings(".job-title").attr("data");
15            var jobUrl = atob(encodedJobUrl);
16            window.open(jobUrl, "_blank", "noopener, noreferrer");
17        });
18
19        $('.job-apply-normal').on('click', function() {
20            var jobContainer = $(this).closest('.job');
21            var link = jobContainer.find('h3.job-title-normal a').attr('href');
22            if (link) {
23                window.location.href = link;
24            }
25        });
26    });
27})(jQuery);
28
29
30// Pagination
31jQuery(document).ready(function ($) {
32    function updateUrlParameter(url, param, value) {
33        var newUrl;
34        var regex = new RegExp('([?&])' + param + '=.*?(&|$)', 'i');
35        var separator = url.indexOf('?') !== -1 ? '&' : '?';
36
37        if (value === 1) {
38            newUrl = url.replace(regex, '');
39            if (newUrl.slice(-1) === '?' || newUrl.slice(-1) === '&') {
40                newUrl = newUrl.slice(0, -1);
41            }
42        } else {
43            if (url.match(regex)) {
44                newUrl = url.replace(regex, '$1' + param + '=' + value + '$2');
45            } else {
46                newUrl = url + separator + param + '=' + value;
47            }
48        }
49        return newUrl;
50    }
51
52    $('.job-page, .job-next-page, .job-previous-page').on('click', function () {
53        var pageNumber = $(this).data('page-number');
54        var currentUrl = window.location.href;
55        var newUrl = updateUrlParameter(currentUrl, 'opp', pageNumber);
56        window.location.href = newUrl;
57    });
58});

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.