PageSourceSearch

https://gorod-zarechny.ru/static/uil/export/project_mo_theme_short…/scripts/js-ajax-utils.js?20260220222336

js gorod-zarechny.ru collected 2026-10-02 12:15:14 UTC 1,288 bytes, 37 lines download raw bytes

1$(function uil_init_js_ajax_utils() {
2
3    var cur_args_dict = {}, cur_args = location.search.length > 0 ? location.search.split('?')[1].split('&') : '';
4    for (var i = 0; i < cur_args.length; i++) {
5        var par = cur_args[i].split('=');
6        cur_args_dict[par[0]] = par[1];
7    }
8
9    $('div[data-ajax-utils-append]').each(function () {
10        var $this = $(this);
11        try {
12            var data = eval('(' + $this.attr('data-ajax-utils-append') + ')');
13        } catch (e) {
14            console.log('(' + $this.attr('data-ajax-utils-append') + ')');
15            console.error(e);
16            return false;
17        }
18        if ('url' in data && data['url']) {
19            var args = [];
20            if ('args' in data && data['args']) {
21                for (var i = 0; i < data['args'].length; i++) {
22                    var k = data['args'][i];
23                    if (k.indexOf('=') !== -1)
24                        args.push(k);
25                    else if (k in cur_args_dict)
26                        args.push(k + '=' + cur_args_dict[k]);
27                }
28            }
29            if (args)
30                args = '?' + args.join('&');
31            $.get(data['url'] + args, function (data) {
32                $this.append(data);
33            });
34        }
35    });
36
37});

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.