PageSourceSearch

https://bustokratia.ru/bitrix/templates/aspro-lite/components/bitrix/menu/left/script.js

js bustokratia.ru collected 2026-10-09 23:15:29 UTC 1,294 bytes, 48 lines download raw bytes

1/*side head block*/
2$(document).on("click", ".slide-block .slide-block__head", function (e) {
3  var _this = $(this),
4    menu = _this.siblings(".slide-block__body"),
5    bVisibleMeu = menu.is(":visible");
6
7  if (!_this.hasClass("clicked") && menu.length && !_this.hasClass("ignore") && !$(e.target).attr("href")) {
8    var type = _this.data("id");
9    _this.addClass("clicked");
10
11    if (_this.hasClass("opened")) {
12      _this.removeClass("opened");
13    } else {
14      _this.addClass("opened");
15    }
16
17    if (bVisibleMeu) {
18      $.cookie(type + "_CLOSED", "Y", {
19        path: "/",
20      });
21      menu.slideUp();
22    } else {
23      $.removeCookie(type + "_CLOSED", {
24        path: "/",
25      });
26      menu.slideDown();
27    }
28
29    _this.toggleClass("closed");
30    _this.removeClass("clicked");
31  }
32});
33$(document).on("click", ".side-menu .toggle_block", function (e) {
34  var _this = $(this),
35    menu = _this.closest(".child").find("> .submenu-wrapper"),
36    bVisibleMeu = menu.is(":visible");
37
38  if (!_this.hasClass("clicked")) {
39    _this.addClass("clicked");
40    menu.slideToggle(150, function () {
41      _this.removeClass("clicked");
42    });
43    _this.toggleClass("closed");
44  }
45
46  _this.closest(".child").toggleClass("opened");
47});
48/**/

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.