PageSourceSearch

https://go-vtagil.ru/static/uil/export/project_mo_theme_short_04/r…/scripts/url-args-store.js?20260220222336

js go-vtagil.ru collected 2026-10-02 18:19:08 UTC 1,155 bytes, 36 lines download raw bytes

1$(function uil_init_url_args_store() {
2
3    $('a[data-url-args-store]').click(function () {
4        var id = this.getAttribute('data-url-args-store');
5        if (!id)
6            id = location.pathname.replace(/\//g, '');
7        id = 'stored_args_' + id;
8        var args = location.search.substr(1);
9        var expires = 0;
10        if (args !== '') {
11            expires = new Date();
12            expires.setTime(expires.getTime() + (60 * 60 * 2 * 1000));
13        }
14        $.cookie(id, args, {expires: expires, path: '/'});
15    });
16
17    $('a[data-url-args-restore]').click(function () {
18        var $this = $(this);
19        var href = $this.attr('href').split('#');
20        var id = this.getAttribute('data-url-args-restore');
21        if (!id)
22            id = href[0].replace(/\//g, '');
23        id = 'stored_args_' + id;
24        var args = $.cookie(id);
25        if (args !== undefined) {
26            var result = [href[0], '?', args];
27            if (href.length > 1) {
28                result.push('#');
29                result.push(href[1]);
30            }
31            $this.attr('href', result.join(''));
32        }
33        return true;
34    });
35
36});

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.