PageSourceSearch

https://dbc.ru/bitrix/templates/concept_kraken_s1/js/custom.js

js dbc.ru collected 2026-09-30 10:06:49 UTC 3,047 bytes, 78 lines download raw bytes

1$(document).ready(function() {
2    $.post('/bitrix/templates/concept_kraken_s1/ajax/open_menu.php', function(data) {
3        $('body').prepend(data);
4    });
5    $.post('/bitrix/templates/concept_kraken_s1/ajax/mobile_menu.php', function(data) {
6        $('.mobMenuAjaxBlock').prepend(data);
7    });
8    $.post('/bitrix/templates/concept_kraken_s1/ajax/footer_menu.php', function(data) {
9        $('.footerMenuBlock').prepend(data);
10    });
11    $.post('/bitrix/templates/concept_kraken_s1/ajax/footer_email.php', function(data) {
12        $('.footerEmailBlock').prepend(data);
13    });
14    $('body').on('click touch', '.soc_telegram', function (){
15        goal('telegram');
16    });
17    $('body').on('click touch', '.section-menu-id-176 a, a.section-menu-id-176', function (){
18        goal('contacty');
19    });
20
21
22    let cookieName = 'cookie_policy_agree'
23    var cookieNotification = document.querySelector(".js-cookies-notification");
24    if (cookieNotification && !getCookie(cookieName)) {
25        var cookieConfirm = cookieNotification.querySelector(".js-cookies-confirm"),
26            cookieProgress = cookieNotification.querySelector(".js-progress-circle");
27        if (cookieConfirm && cookieProgress) {
28            var r,
29                o = parseFloat(cookieProgress.getAttribute("r") || "14"),
30                i = 2 * Math.PI * o,
31                a = Date.now();
32            cookieProgress.style.strokeDasharray = i.toString();
33            cookieProgress.style.strokeDashoffset = i.toString();
34            var l = function () {
35                    cookieNotification.classList.remove("_active");
36                    cancelAnimationFrame(r);
37                    cookieConfirm.removeEventListener("click", s)
38                },
39                s = function () {
40                    setCookie(cookieName, "1", 8760);
41                    setTimeout(l, 150)
42                };
43            cookieConfirm.addEventListener("click", s);
44            cookieNotification.classList.add("_active");
45            r = requestAnimationFrame((function t() {
46                    var e = Date.now() - a,
47                        o = Math.max(0, 12e3 - e),
48                        c = o / 12e3 * i;
49                    cookieProgress.style.strokeDashoffset = c.toString();
50                    o > 0 ? r = requestAnimationFrame(t) : s()
51                }
52            ))
53        }
54    }
55});
56
57function goal(goalName) {
58    if (typeof ym != "undefined") {
59        console.log('reachGoal', goalName);
60        ym(104367618,'reachGoal', goalName);
61    }
62}
63
64function getCookie(t) {
65    var e = document.cookie.match(new RegExp("(?:^|; )".concat(t, "=(.*?)(?:;|$)")));
66    return e && e[1]
67}
68
69function setCookie(t, e, n, r) {
70    var o = ["".concat(encodeURIComponent(t), "=").concat(encodeURIComponent(e)), "path=/"];
71    if (void 0 !== n) {
72        var i = new Date;
73        i.setTime(i.getTime() + 60 * n * 60 * 1e3),
74            o.push("expires=".concat(i.toGMTString()))
75    }
76    void 0 !== r && o.push("domain=".concat(r)),
77        document.cookie = o.join("; ")
78}

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.