PageSourceSearch

https://ponyexpress.kz/local/templates/ponyexpress_main/js/filter.helper.js

js ponyexpress.kz collected 2026-09-26 09:55:39 UTC 1,432 bytes, 56 lines download raw bytes

1/**
2 * User: Konstantin
3 * Date: 24.09.2015
4 * Time: 21:58
5 */
6
7var filterHelper = {
8    baseUrl: '',
9    blockId: '',
10    makeUrl: function () {
11        var
12            link,
13            year = $(".filter-year .b-select--current span"),
14            month = $(".filter-month .b-select--current span"),
15            section = $(".filter-section .b-select--current span"),
16            sectionCode = section.data('id'),
17            yearId = year.data('id'),
18            monthId = month.data('id');
19
20        link = this.baseUrl;
21        if (sectionCode) {
22            link += sectionCode + '/';
23        }
24        if (yearId) {
25            link += 'year_' + yearId + '/';
26        }
27        if (monthId) {
28            link += 'month_' + monthId + '/';
29        }
30        return link;
31    },
32    changeUrl: function () {
33        var block = $(this.blockId),
34            url = this.makeUrl();
35
36        if (block.data('no_history')) {
37            this.loadData(url, block);
38            return;
39        }
40
41        if (window.history && window.history.pushState) {
42            window.history.pushState({
43                module: "skv",
44                url: url
45            }, document.title, url);
46            this.loadData(url, block);
47        } else {
48            window.location.href = url;
49        }
50    },
51    loadData: function (url, block) {
52        $.get(url, {ajax:'Y'}, function(data){
53            block.html(data);
54        });
55    }
56};

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.