PageSourceSearch

https://elcode.ru/js/content/consultant-links.js?v=1785426865

js elcode.ru collected 2026-10-02 10:12:51 UTC 856 bytes, 28 lines download raw bytes

1$(function () {
2    var consultantBaseLink = $('#cons_link_value').text();
3
4    $('a[href ^= "consultantplus://offline"], a[href ^= "https://login.consultant.ru/?returnUrl"]')
5        .attr({
6            'target': '_blank',
7            'rel': 'nofollow',
8            'href': function (index, attr) {
9                return attr.replace('consultantplus://offline/', consultantBaseLink);
10            }
11        });
12
13    var $personLinks = $("[name='Person[links]']");
14
15    if ($personLinks.val() === 'web') {
16        $(".field-person-online_version").show();
17    } else {
18        $(".field-person-online_version").hide();
19    }
20
21    $personLinks.on('change', function (e) {
22        if ($(this).val() === 'web') {
23            $(".field-person-online_version").show();
24        } else {
25            $(".field-person-online_version").hide();
26        }
27    });
28});

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.