PageSourceSearch

https://dribin.gov.by/bitrix/templates/dribin/js/project.js?v=1790319017

js dribin.gov.by collected 2026-09-25 06:50:27 UTC 8,998 bytes, 248 lines download raw bytes

1jQuery(document).ready(function ($) {
2  $(document).on("click", "#scrollTopBtn", function () {
3    $("html, body").animate(
4      {
5        scrollTop: 0,
6      },
7      500,
8      function () {}
9    );
10  });
11
12  jQuery(".slider_menu_row").slick({
13    slidesToShow: 6,
14    slidesToScroll: 1,
15    dots: false,
16    buttons: false,
17    infinite: true,
18    arrows: false,
19    responsive: [
20      {
21        breakpoint: 1450,
22        settings: {
23          slidesToShow: 6,
24        },
25      },
26      {
27        breakpoint: 360,
28        settings: "unslick",
29      },
30    ],
31  });
32
33  $(document).on("click", ".spojler", function () {
34    $(this).parent().toggleClass("opened");
35  });
36  $(document).on("click", "#index_news .news_nav a", function () {
37    $("#index_news .news_nav .activ").removeClass("activ");
38    $(this).parent().addClass("activ");
39    $("#index_news .news_row.open").removeClass("open");
40    $("#index_news #" + $(this).attr("data-open")).addClass("open");
41  });
42
43  $(window).on("scroll", function () {
44    if ($(this).scrollTop() > 700) {
45      $("#scrollTopBtn").addClass("actived");
46    } else {
47      $("#scrollTopBtn").removeClass("actived");
48    }
49  });
50
51  $(document).ready(function () {
52    $(".menu-burger").click(function () {
53      $(".menu-burger").toggleClass("open-menu");
54      $(".header__nav").toggleClass("open-menu");
55      $("body").toggleClass("fixed-page");
56    });
57    $(document).click(function (e) {
58      // Проверяем, был ли клик вне меню и кнопки-бургера
59      if (!$(e.target).closest(".header__nav, .menu-burger").length) {
60        $(".menu-burger").removeClass("open-menu");
61        $(".header__nav").removeClass("open-menu");
62        $("body").removeClass("fixed-page");
63      }
64    });
65  });
66
67  function checkWidth() {
68    let windowWidth = $("body").innerWidth();
69    if (windowWidth < 1200) {
70      $(document).on("click", ".title-sub.text.has-sub", function (e) {
71        // Проверяем, был ли клик на ссылке
72        if ($(e.target).closest("a").length) {
73          return; // Если клик был по ссылке, выходим из функции
74        }
75        e.preventDefault();
76        var submenu = $(this).find(".submenu");
77        submenu.toggleClass("active-menu").slideToggle(0);
78      });
79    }
80  }
81  checkWidth();
82  $(document).on("click", ".contact_row", function () {
83    $(this).prev().toggleClass("opened");
84  });
85  $(document).on("click", function (event) {
86    if (!$(event.target).closest(".contact_row").length) {
87      $(".contact_row").prev().removeClass("opened");
88    }
89  });
90  // $(document).mouseup(function (e) {
91  //   var div = $(".info_row"); //класс элемента вне которого клик
92  //   if (!div.is(e.target) && div.has(e.target).length === 0) {
93  //     div.removeClass("opened");
94  //   }
95  // });
96
97  jQuery(".slider_row").slick({
98    arrows: false,
99    infinite: true,
100    speed: 3000,
101    autoplay: true,
102    autoplaySpeed: 2000,
103    fade: true,
104    slidesToShow: 1,
105    slidesToScroll: 1,
106  });
107
108  $(".slider_social_row").slick({
109    rows: 2,
110    dots: false,
111    infinite: true,
112    speed: 300,
113    slidesToShow: 2,
114    slidesToScroll: 1,
115    arrows: true,
116    nextArrow:
117      '<span class="slick-next"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
118      '<path fill-rule="evenodd" clip-rule="evenodd" d="M5.85348 19.1464C5.65822 19.3416 5.65822 19.6582 5.85348 19.8535L8.64637 22.6464C8.84163 22.8416 9.15822 22.8416 9.35348 22.6464L19.6464 12.3535C19.8416 12.1582 19.8416 11.8416 19.6464 11.6464L9.35348 1.35348C9.15822 1.15822 8.84163 1.15822 8.64637 1.35348L5.85348 4.14637C5.65822 4.34163 5.65822 4.65822 5.85348 4.85348L12.6464 11.6464C12.8416 11.8416 12.8416 12.1582 12.6464 12.3535L5.85348 19.1464Z" fill="#891A1C"/>\n' +
119      "</svg>\n</span>",
120    prevArrow:
121      '<span class="slick-prev"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
122      '<path fill-rule="evenodd" clip-rule="evenodd" d="M18.1465 4.85363C18.3418 4.65837 18.3418 4.34178 18.1465 4.14652L15.3536 1.35363C15.1584 1.15837 14.8418 1.15837 14.6465 1.35363L4.35363 11.6465C4.15837 11.8418 4.15837 12.1584 4.35363 12.3536L14.6465 22.6465C14.8418 22.8418 15.1584 22.8418 15.3536 22.6465L18.1465 19.8536C18.3418 19.6584 
12218.3418 19.3418 18.1465 19.1465L11.3536 12.3536C11.1584 12.1584 11.1584 11.8418 11.3536 11.6465L18.1465 4.85363Z" fill="#891A1C"/>\n' +
123      "</svg>\n</span>",
124    // autoplay: 4000,
125    responsive: [
126      {
127        breakpoint: 992,
128        settings: {
129          slidesToShow: 1,
130        },
131      },
132    ],
133  });
134
135  jQuery(".great_row").slick({
136    slidesToShow: 4,
137    slidesToScroll: 3,
138    dots: true,
139    buttons: false,
140    infinite: true,
141    arrows: false,
142    // autoplay: 4000,
143    responsive: [
144      {
145        breakpoint: 1440,
146        settings: {
147          slidesToShow: 3,
148        },
149      },
150      {
151        breakpoint: 768,
152        settings: {
153          slidesToShow: 2,
154        },
155      },
156      {
157        breakpoint: 550,
158        settings: {
159          slidesToShow: 1,
160        },
161      },
162    ],
163  });
164
165  jQuery(".attention_slider_row").slick({
166    slidesToShow: 3,
167    slidesToScroll: 1,
168    vertical: true,
169    verticalSwiping: true,
170    dots: false,
171    buttons: false,
172    infinite: true,
173    arrows: true,
174    prevArrow:
175      '<span class="slick-next"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
176      '<path fill-rule="evenodd" clip-rule="evenodd" d="M19.1464 18.1465C19.3416 18.3418 19.6582 18.3418 19.8535 18.1465L22.6464 15.3536C22.8416 15.1584 22.8416 14.8418 22.6464 14.6465L12.3535 4.35363C12.1582 4.15837 11.8416 4.15837 11.6464 4.35363L1.35348 14.6465C1.15822 14.8418 1.15822 15.1584 1.35348 15.3536L4.14637 18.1465C4.34163 18.3418 4.65822 18.3418 4.85348 18.1465L11.6464 11.3536C11.8416 11.1584 12.1582 11.1584 12.3535 11.3536L19.1464 18.1465Z" fill="#891A1C"/>\n' +
177      "</svg>\n</span>",
178    nextArrow:
179      '<span class="slick-prev"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
180      '<path fill-rule="evenodd" clip-rule="evenodd" d="M4.85363 5.85348C4.65837 5.65822 4.34178 5.65822 4.14652 5.85348L1.35363 8.64637C1.15837 8.84163 1.15837 9.15822 1.35363 9.35348L11.6465 19.6464C11.8418 19.8416 12.1584 19.8416 12.3536 19.6464L22.6465 9.35348C22.8418 9.15822 22.8418 8.84163 22.6465 8.64637L19.8536 5.85348C19.6584 5.65822 19.3418 5.65822 19.1465 5.85348L12.3536 12.6464C12.1584 12.8416 11.8418 12.8416 11.6465 12.6464L4.85363 5.85348Z" fill="#891A1C"/>\n' +
181      "</svg>\n</span>",
182    // autoplay: 4000,
183    responsive: [
184      {
185        breakpoint: 768,
186        settings: {
187          slidesToShow: 2,
188        },
189      },
190    ],
191  });
192
193  jQuery(".resurs_row").slick({
194    slidesToShow: 5,
195    slidesToScroll: 2,
196    dots: false,
197    buttons: false,
198    infinite: true,
199    arrows: true,
200    prevArrow:
201      '<span class="slick-next"><svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
202      '<path fill-rule="evenodd" clip-rule="evenodd" d="M18.1465 5.35363C18.3418 5.15837 18.3418 4.84178 18.1465 4.64652L15.3536 1.85363C15.1584 1.65837 14.8418 1.65837 14.6465 1.85363L4.35363 12.1465C4.15837 12.3418 4.15837 12.6584 4.35363 12.8536L14.6465 23.1465C14.8418 23.3418 15.1584 23.3418 15.3536 23.1465L18.1465 20.3536C18.3418 20.1584 18.3418 19.8418 18.1465 19.6465L11.3536 12.8536C11.1584 12.6584 11.1584 12.3418 11.3536 12.1465L18.1465 5.35363Z" fill="#891A1C"/>\n' +
203      "</svg>\n</span>",
204    nextArrow:
205      '<span class="slick-prev"><svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
206      '<path fill-rule="evenodd" clip-rule="evenodd" d="M5.85348 19.6464C5.65822 19.8416 5.65822 20.1582 5.85348 20.3535L8.64637 23.1464C8.84163 23.3416 9.15822 23.3416 9.35348 23.1464L19.6464 12.8535C19.8416 12.6582 19.8416 12.3416 19.6464 12.1464L9.35348 1.85348C9.15822 1.65822 8.84163 1.65822 8.64637 1.85348L5.85348 4.64637C5.65822 4.84163 5.65822 5.15822 5.85348 5.35348L12.6464 12.1464C12.8416 12.3416 12.8416 12.6582 12.6464 12.8535L5.85348 19.6464Z" fill="#891A1C"/>\n' +
207      "</svg>\n</span>",
208    // autoplay: 4000,
209    responsive: [
210      {
211        breakpoint: 1400,
212        settings: {
213          slidesToShow: 5,
214        },
215      },
216      {
217        breakpoint: 1300,
218        settings: {
219          slidesToShow: 4,
220        },
221      },
222      {
223        breakpoint: 1100,
224        settings: {
225          slidesToShow: 3,
226        },
227      },
228      {
229        breakpoint: 768,
230        settings: {
231          slidesToShow: 2,
232        },
233      },
234      {
235        breakpoint: 660,
236        settings: {
237          slidesToShow: 2,
238        },
239      },
240      {
241        breakpoint: 550,
242        settings: {
243          slidesToShow: 1,
244        },
245      },
246    ],
247  });
248});

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.