PageSourceSearch

https://dniprorada.gov.ua/content/app/js/scripts.js?v=639264619174541886

js dniprorada.gov.ua collected 2026-10-01 11:32:30 UTC 23,378 bytes, 790 lines download raw bytes

1
2mobileDetect();
3
4playMainVideo();
5
6
7$(document).ready(function () {
8
9	// video on news seaction BEGIN
10	runNewVideo();
11
12	$('body').on('click', '.news-video video', function (e) {
13		var video = $(this);
14
15		e.preventDefault();
16		e.stopPropagation();
17
18		if (video.hasClass('playing')) {
19			video.off().get(0).pause();
20			video.removeClass('playing');
21			video.parent().removeClass('video-pause').addClass('video-play');
22		} else {
23			video.off().get(0).play();
24			video.addClass('playing');
25			video.parent().removeClass('video-play').addClass('video-pause');
26		}
27	});
28
29	// video on news seaction END
30
31	$(window).on("load", function () {
32		var isMobile;
33		if ($(window).width() <= 575) {
34			isMobile = true
35		} else {
36			isMobile = false
37		}
38		//	if($(".fixed-main-label").length && isMobile){
39		//		setTimeout(function(){
40		//			$(".fixed-main-label").animate({
41		//				opacity: '0'
42		//			}, 800);
43		//		}, 5000);
44		//	}
45	})
46
47	// $('[data-target="#site-map"]').on('click', function(e) {
48	//    var $target = $($(this).data('target'));
49	//    $target.data('triggered', true);
50	//    setTimeout(function() {
51	//       if ($target.data('triggered')) {
52	//          $target.modal('show')
53	//             .data('triggered', false); // prevents multiple clicks from reopening
54	//       };
55	//    }, 1000); // milliseconds
56	//    return false;
57	// });
58
59	$('body').on('click touchstart', function () {
60		playMainVideo();
61	});
62
63	// weather 
64	$(".weather").load("/home/weather");
65
66	let cook = $.cookie('badsee');
67	if (cook == "true") {
68		$("body").toggleClass("gray");
69	}
70
71	// search
72	$("[data-open-search]").on("click", function () {
73		$("this").toggleClass("active");
74		$("[data-search-container]").fadeToggle();
75
76		$("[data-open-search]").find("img").fadeToggle(0);
77
78		// if($("this").hasClass("active")){
79		// 	$("[data-open-search]").find("img").eq(0).style("display", "none");
80		// 	$("[data-open-search]").find("img").eq(1).style("display", "block");
81		// } else {
82		// 	$("[data-open-search]").find("img").eq(0).style("display", "block");
83		// 	$("[data-open-search]").find("img").eq(1).style("display", "none");
84		// }
85	})
86
87	$("[data-close-search]").on("click", function () {
88		$("[data-open-search]").removeClass("active");
89		$("[data-search-container]").fadeOut();
90	})
91	// end
92
93
94	// clear datepicker
95	$("[data-remove-content-datepicker]").on("click", function (e) {
96		$(this).parent().siblings('[data-datepicker]').val(" ");
97		$(this).parent().siblings('[data-datepicker]').datepicker().data('datepicker').clear();
98		if ($(this).parent().parent().hasClass("input-datepicker")) {
99			// $(this).parent().siblings('[data-datepicker]').mask("39.12.4999").focus();
100		} else {
101			// $(this).parent().siblings('[data-datepicker]').mask("39.12.4999 - 39.12.4999").focus();
102			$(this).parent().siblings('[data-datepicker]').mask("99.99.9999 - 99.99.9999").focus();
103		}
104	})
105	// end
106
107
108	// clear input value
109	$("[data-remove-content-search]").on("click", function (e) {
110		$(this).parent().siblings('input').val("");
111	})
112	// end
113
114
115	// clear content search
116	$("[data-close-content-search]").on("click", function () {
117		$("[data-content-search]").val("");
118	})
119	// end
120
121
122	// sidebar dropdown filter
123	$("[data-open-filter]").on("click", function () {
124		$(this).toggleClass("active");
125		$(this).siblings("[data-filter-block]").slideToggle();
126	})
127
128	$("[data-open-mob-category]").on("click", function () {
129		var $this = $(this);
130		if ($this.hasClass("active")) {
131			$this.removeClass("active");
132			$this.siblings("[data-mob-category]").slideUp();
133		} else {
134			$this.addClass("active");
135			$this.siblings("[data-mob-category]").slideDown();
136		}
137	})
138
139	if ($("[data-open-mob-category]").length > 0) {
140		$("[data-open-mob-category]").each(function (i, el) {
141			var $this = $(el);
142			if ($this.hasClass("active")) {
143				$this.siblings("[data-mob-category]").slideDown();
144			}
145		})
146	}
147	// end
148
149
150	// sidebar dropdown
151	$(".category-link.active").siblings("[data-dropdown-menu]").fadeIn(0); // active dropdown
152
153	$("[data-dropdown-link]").on("click", function () {
154		var $this = $(this);
155		if ($this.parent().hasClass("active")) {
156			$this.parent().siblings("[data-dropdown-menu]").slideUp(function () {
157				$this.parent().removeClass("active");
158			});
159		} else {
160			$this.parent().parent().find("[data-dropdown-link]").siblings("[data-dropdown-menu]").slideUp(function () {
161				$this.parent().parent().find("[data-dropdown-link]").removeClass("active")
162			});
163			$this.parent().siblings("[data-dropdown-menu]").slideDown();
164			$this.parent().addClass("active");
165		}
166	})
167	// end
168
169
170	// accordion
171	$(".accordion-list .accordion-name").on("click", function (e) {
172		var target = e.target,
173			$this = $(this);
174
175		if (target.hasAttribute("href")) {
176			return;
177		}
178
179		if ($this.parent().hasClass("active")) {
180			$this.siblings(".accordion-body").slideUp(function () {
181				$this.parent().removeClass("active");
182			});
183		} else {
184			$this.siblings(".accordion-body").slideDown();
185			$this.parent().addClass("active");
186		}
187
188	})
189	// end
190
191
192	$("[data-to-top]").on("click", function () {
193		$('html, body').stop(true, true).animate({
194			scrollTop: 0,
195		}, 800);
196	})
197
198
199	// desctop menu item
200	if ($(window).outerWidth() >= 992) {
201		var parentW = $(".nav-header").offset().left + $(".nav-header").width();
202		$('.dropdown-block').parent().hover(
203			function (element) {
204				var $this = $(this);
205				if (($this.offset().left + 282) > parentW) {
206					if (!$this.children("[data-item-menu]").hasClass("right")) {
207						var offsetLeft = ($this.offset().left + $this.width()) - parentW;
208						$this.children("[data-item-menu]").addClass("right").css("right", offsetLeft);
209					}
210				}
211				if (($this.offset().left + $this.width() + $this.children("[data-item-submenu]").width()) > parentW) {
212					if (!$this.children("[data-item-submenu]").hasClass("left-position")) {
213						$this.children("[data-item-submenu]").addClass("left-position");
214					}
215				}
216
217				$this.addClass("active");
218				$this.children("[data-item-menu]").delay(50).slideDown(200);
219				$this.children("[data-item-submenu]").addClass("active");
220
221			},
222			function (element) {
223				var $this = $(this);
224				$this.removeClass("active");
225				$this.children("[data-item-menu]").stop(true, true).slideUp(0);
226				$this.children("[data-item-submenu]").removeClass("active");
227			}
228		)
229	} else {
230		$('[data-open-menu]').each(function (i, elem) {
231			var $elem = $(this);
232			$elem.on("click", function (element) {
233
234				if ($elem.parent().parent().hasClass("active")) {
235					$elem.parent().parent().removeClass("active")
236					$elem.parent().siblings("[data-item-menu]").slideUp();
237					$elem.parent().parent().find('.has-submenu.active').removeClass("active");
238					$elem.parent().parent().find('.megasubmenu.active').removeClass("active");
239				} else {
240					$('[data-open-menu]').parent().parent().removeClass("active")
241					$('[data-open-menu]').parent().siblings("[data-item-menu]").slideUp(200);
242					$('.has-submenu.active').removeClass("active");
243					$('.megasubmenu.active').removeClass("active");
244
245					// if($(window).width() > 992){
246					// 	if(($elem.parent().parent().offset().left + 282) > ($(".nav-header").offset().left + $(".nav-header").width())){
247					// 		if(!$elem.parent().siblings("[data-item-menu]").hasClass("right")){
248					// 			var offsetLeft = ($elem.parent().parent().offset().left + $elem.parent().parent().width()) - ($(".nav-header").offset().left + $(".nav-header").width());
249					// 			$elem.parent().siblings("[data-item-menu]").addClass("right").css("right", offsetLeft);
250					// 		}
251					// 	}
252					// }
253
254					$elem.parent().parent().addClass("active")
255					$elem.parent().siblings("[data-item-menu]").slideDown();
256				}
257			})
258		})
259
260		// mobile menu item
261		$('[data-open-submenu]').on("click", function (e) {
262			var $elem = $(this);
263
264			if ($elem.parent().parent().hasClass("active")) {
265				$elem.parent().parent().removeClass("active");
266				$elem.parent().siblings("[data-item-submenu]").removeClass("active");
267
268				$elem.parent().parent().siblings("li").removeClass("active");
269				$elem.parent().parent().siblings("li").find('li.active').removeClass("active");
270				// $elem.parent().parent().find('.has-submenu.active').removeClass("active");
271				$elem.parent().parent().siblings("li").find('.megasubmenu.active').removeClass("active");
272			} else {
273				$elem.parent().parent().siblings("li").removeClass("active");
274				$elem.parent().parent().siblings("li").find('li.active').removeClass("active");
275				// $elem.parent().parent().find('.has-submenu.active').removeClass("active");
276				$elem.parent().parent().siblings("li").find('.megasubmenu.active').removeClass("active");
277
278				if ($(window).width() > 992) {
279					if (($elem.parent().parent().offset().left + $elem.parent().parent().width() + $elem.parent().siblings("[data-item-submenu]").width()) > ($(".nav-header").offset().left + $(".nav-header").width())) {
280						if (!$elem.parent().siblings("[data-item-submenu]").hasClass("left-position")) {
281							$elem.parent().siblings("[data-item-submenu]").addClass("left-position");
282						}
283					}
284				}
285				$elem.parent().parent().addClass("active")
286				$elem.parent().siblings("[data-item-submenu]").addClass("active");
287			}
288		})
289
290		// end
291	}
292	// end
293
294
295
296
297
298	// mobile menu
299	var menu = $("[data-mobile-menu]"),
300		bg = $("[data-mobile-bg]"),
301		closeBtn = $("[data-mobile-menu-close]"),
302		html = $("html"),
303		menuShow = false;
304
305	$('[data-open-mobile-menu]').on("click", function () {
306		if (menuShow) {
307			menu.removeClass("active");
308			html.removeClass("menu-show");
309			bg.fadeOut();
310			menuShow = false;
311		} else {
312			menu.addClass("active");
313			html.addClass("menu-show");
314			bg.fadeIn();
315			menuShow = true;
316		}
317	})
318
319	closeBtn.on("click", function () {
320		if (menuShow) {
321			html.removeClass("menu-show");
322			menu.removeClass("active");
323			bg.fadeOut();
324			menuShow = false;
325		}
326	})
327
328	bg.on("click", function () {
329		if (menuShow) {
330			html.removeClass("menu-show");
331			menu.removeClass("active");
332			bg.fadeOut();
333			menuShow = false;
334		}
335	})
336	// end
337
338
339	// corect collapse
340	$('[data-toggle="collapse"]').each(function (i, elem) {
341		$(elem).on("click", function () {
342			if ($(elem).hasClass("collapsed")) {
343				$(elem).attr("aria-expanded", "false");
344				$(elem).toggleClass("collapsed");
345				$(elem).parent().siblings(".collapse").slideToggle();
346			} else {
347				$(elem).attr("aria-expanded", "true");
348				$(elem).toggleClass("collapsed");
349				$(elem).parent().siblings(".collapse").slideToggle();
350			}
351			// $(elem).toggleClass("collapsed");
352			// $(elem).parent().siblings(".collapse").slideToggle();
353		});
354	})
355	$('.page-content.content-collapse > .collapse').each(function (i, elem) {
356		$(elem).wrapInner('<div class="collapse-block" />');
357	})
358	$('.content-collapse .title i').on("click", function () {
359		$(this).siblings('.collapse-title').trigger("click");
360	})
361	$('.page-content.content-collapse > .collapse').each(function (i, elem) {
362		$(elem).css('transition', 'all 0s ease');
363	})
364
365	$('.page-content.content-collapse > .collapsein').each(function (i, elem) {
366		$(elem).wrapInner('<div class="collapse-block" />');
367	})
368	$('.page-content.content-collapse > .collapsein').each(function (i, elem) {
369		$(elem).css('transition', 'all 0s ease');
370	})
371
372
373
374	$('.cms-accordion-items').each(function (i, elem) {
375		$(elem).css('transition', 'all 0s ease');
376	})
377	// end
378
379
380
381	// remove style font-family
382	if ($(".cms-content").length > 0) {
383		$('.cms-content *').each(function (index, element) {
384			$(element).css("font-family", "");
385		})
386	}
387	// end
388
389
390	// clear width on table BEGIN
391	// $("table td").each(function(i, td){
392	// 	$(td).css("width", "");
393	// })
394	// clear width on table END
395
396
397	// add top scroll on table
398	tableScroll();
399	$("form").submit(function (event) {
400		$(".table-top-scroll").remove();
401		setTimeout(function () {
402			tableScroll();
403		}, 500);
404
405	});
406	// $('#divResultSearch').bind('DOMSubtreeModified', function () {
407	//     $(".table-top-scroll").remove();
408	//     tableScroll();
409	// });
410
411	function tableScroll() {
412		if ($(".table-responsive").length > 0) {
413			addTopScroll()
414		} else {
415			addTableContainer()
416		}
417	}
418
419	function addTopScroll() {
420		if ($(".table-responsive").find("table").width() > $(".table-responsive").width()) {
421			$(".table-responsive").each(function (i, elem) {
422				var $block = $(".table-responsive"),
423					$table = $block.find("table");
424
425				$block.before('<div class="table-top-scroll"></div>'); // create container for scroll
426				$table.clone(true).appendTo($(".table-top-scroll")); // clone table on container for scroll
427
428				$block.scroll(function () {
429					$block.siblings(".table-top-scroll")
430						.scrollLeft($block.scrollLeft());
431				});
432				$block.siblings.scroll(function () {
433					$block
434						.scrollLeft($block.siblings.scrollLeft());
435				});
436			})
437		}
438	}
439
440	function addTableContainer() {
441		if ($("table").length > 0) {
442			$("table").each(function (i, table) {
443				var $table = $(table); // find table
444				// $table.before('<div class="table-container"><div class="table-responsive"></div></div>'); // create container
445				// $table.clone(true).appendTo($table.siblings(".table-container").find(".table-responsive"));
446				// $table.remove();
447				$table.wrap('<div class="table-container"><div class="table-responsive"></div></div>'); // create container
448			})
449		}
450
451		addTableContainerScroll();
452	}
453
454	function addTableContainerScroll() {
455		$(".table-container").each(function (i, elem) {
456			var $tableContainer = $(this);
457			if ($tableContainer.find("table").width() > $tableContainer.find(".table-responsive").width()) {
458				var $block = $tableContainer.find(".table-responsive"),
459					$table = $tableContainer.find(".table-responsive table");
460
461				$block.before('<div class="table-top-scroll"></div>'); // create container for scroll
462				$table.clone(true).appendTo($block.siblings(".table-top-scroll")); // clone table on container for scroll
463
464				$block.scroll(function () {
465					$block.siblings(".table-top-scroll")
466						.scrollLeft($block.scrollLeft());
467				});
468				$block.siblings(".table-top-scroll").scroll(function () {
469					$block
470						.scrollLeft($block.siblings(".table-top-scroll").scrollLeft());
471				});
472			}
473		})
474	}
475	// end
476
477
478	// scroll top with animate
479	var IS_BTN_TOP = false,
480		scrollDuration = 1000,
481		isScrolling = false;
482
483	$('body').on('click', '#scrollTop', function (e) {
484		if (isScrolling) {
485			e.stopPropagation();
486			return false;
487		}
488
489		isScrolling = true;
490
491		$('html, body').stop().animate({
492			scrollTop: 0
493		}, scrollDuration, function () {
494			isScrolling = false;
495		});
496
497		return false;
498	});
499
500	var headerMin = false,
501		headerHeight = $('header .top-header').outerHeight() * 2;
502
503	$(window).scroll(function () {
504		if (!IS_BTN_TOP && $(this).scrollTop() > $(this).height()) {
505			$('#scrollTop').addClass("active");
506			IS_BTN_TOP = true;
507		}
508		if (IS_BTN_TOP && $(this).scrollTop() < $(this).height()) {
509			$('#scrollTop').removeClass("active");
510			IS_BTN_TOP = false;
511		}
512
513		if ($(window).scrollTop() > headerHeight && !headerMin) {
514			$("body").addClass("page-scroll");
515			headerMin = true;
516		} else if ($(window).scrollTop() < headerHeight) {
517			$("body").removeClass("page-scroll");
518			headerMin = false;
519		}
520	});
521	// end
522
523
524	breadcrumbTrim();
525
526	setTimeout(function () {
527		corecListHeight();
528		$('[data-show-more-container]').css({ "opacity": "1", "height": "inherit" });
529	}, 350)
530
531	mobileDirectionList();
532
533})
534
535function runNewVideo() {
536	if ($('.news-video video').length > 0) {
537		$('.news-container .news-img video').after('<div class="video-icon"><span></span><span></span></div>');
538		$('.news-container .news-img').addClass("news-video");
539
540		if ($('.news-video video').get(0).paused) {
541
542		} else {
543			$('.news-video').addClass('video-pause')
544		}
545	}
546
547	// $(window).on("load", function(){
548	if (document.getElementById('newsVideo')) {
549		const newsVideoElement = document.getElementById('newsVideo');
550		if (newsVideoElement.paused) {
551			newsVideoElement.play();
552		} else {
553
554		}
555	}
556	// })
557}
558
559function playMainVideo() {
560	const videoElement = document.getElementById('main_video');
561
562	if (videoElement != null) {
563		if (videoElement.playing) {
564			// video is already playing so do nothing
565		}
566		else {
567			// video is not playing
568			// so play video now
569			videoElement.play();
570		}
571	}
572}
573
574function mobileDetect() {
575	// Mobile or not mobile?
576	var isMobile = navigator.userAgent.match(/Android/i) ||
577		navigator.userAgent.match(/webOS/i) ||
578		navigator.userAgent.match(/iPhone/i) ||
579		navigator.userAgent.match(/iPad/i) ||
580		navigator.userAgent.match(/iPod/i);
581
582	if ($(window).width() <= 575) {
583		isMobile = true
584	} else {
585		isMobile = false
586	}
587}
588
589
590function breadcrumbTrim() {
591	if ($(window).width() <= 991) {
592		$("[data-breadcrumb-block]").find(".breadcrumbs-trip").removeClass("breadcrumbs-trip");
593
594		var bc = $("[data-breadcrumb-container]"), // ul parent parent
595			bcWidth = bc.width(),
596			bcWidthMin = bcWidth - 20,
597			bcFull = $("[data-breadcrumb-block]"),
598			bcFullWidth = 0, // ul parent
599			bcFullLiCount = 0,
600			windowWidth = $(window).width();
601
602		if ($(window).width() > 991) {
603			var titleParentWidth = bc.parent().outerWidth(),
604				titleWidth = bc.siblings(".section-top-title").outerWidth();
605
606			bcWidth = titleParentWidth - titleWidth;
607			bcWidthMin = bcWidth - 30;
608
609			// bc.css({ "width": bcWidthMin + "px", "overflow": "hidden" })
610
611		}
612
613		// find container width
614		bcFull.find("li").each(function () {
615			bcFullWidth += $(this).width();
616			bcFullLiCount++;
617		})
618
619		// trip nth-last-child(-2) breadcrumbs element
620		if (bcWidth < bcFullWidth) {
621			if (bcWidth < bcFullWidth - 200) {
622				bcFull.find("li").eq(bcFullLiCount - 2).addClass("breadcrumbs-trip");
623			} else {
624				bcFull.find(".breadcrumbs-trip").removeClass("breadcrumbs-trip");
625			}
626		} else {
627			bcFull.find(".breadcrumbs-trip").removeClass("breadcrumbs-trip");
628		}
629
630		// find new corect container width
631		bcFullWidth = 0;
632		bcFull.find("li").each(function () {
633			bcFullWidth += $(this).width();
634		})
635
636		// trip breadcrumbs 
637		if (bcWidth < bcFullWidth) {
638			bcFull.css({ "width": bcWidthMin + "px", "overflow": "hidden" });
639			bc.addClass("bcAfter");
640		} else {
641			bcFull.removeAttr("style");
642			bc.removeClass("bcAfter");
643		}
644	}
645};
646
647
648function corecListHeight() {
649	$('[data-show-more-container]').each(function (i, elem) {
650		var $this = $(elem),
651			countRow = (($this.attr("data-show-more-container") == '' || !$this.attr("data-show-more-container")) ? '4' : $this.attr("data-show-more-container")),
652			countMdRow = (($this.attr("data-show-more-md-container") == '' || !$this.attr("data-show-more-md-container")) ? '4' : $this.attr("data-show-more-md-container")),
653			countSmRow = (($this.attr("data-show-more-sm-container") == '' || !$this.attr("data-show-more-sm-container")) ? '3' : $this.attr("data-show-more-sm-container")),
654			countMobileRow = (($this.attr("data-show-more-mobile-container") == '' || !$this.attr("data-show-more-mobile-container")) ? '2' : $this.attr("data-show-more-mobile-container")),
655			elHeight = 0,
656			allElHeight = $(elem).find("ul").outerHeight();
657
658		$(elem).find("li").each(function (i, el) {
659			if ($(window).width() > 991) {
660				if (i == 0) {
661					elHeight += $(el).outerHeight(true);
662				}
663				if (i % countRow == 0) {
664					// allElHeight += $(el).outerHeight(true);
665				}
666			} else if ($(window).width() > 767) {
667				if (i == 0 || i == countMdRow) {
668					elHeight += $(el).outerHeight(true);
669				}
670				if (i % countMdRow == 0) {
671					// allElHeight += $(el).outerHeight(true);
672				}
673			} else if ($(window).width() > 575) {
674				if (i == 0 || i == countSmRow) {
675					elHeight += $(el).outerHeight(true);
676				}
677				if (i % countSmRow == 0) {
678					// allElHeight += $(el).outerHeight(true);
679				}
680			} else {
681				if (i == 0 || i == countMobileRow) {
682					elHeight += $(el).outerHeight(true);
683				}
684				// allElHeight += $(el).outerHeight(true);
685			}
686		})
687
688		// elHeight = elHeight - 15;
689
690		$this.find("ul").css("height", elHeight);
691
692		$this.attr("data-height", elHeight)
693		$this.attr("data-full-height", allElHeight)
694
695		if (allElHeight > elHeight) {
696			$this.parent().find('[data-show-more]').parent().show(0).fadeIn(200);
697		} else {
698			$this.attr('style', '')
699			$this.parent().find('[data-show-more]').parent().hide(0).fadeOut(200);
700		}
701
702	})
703
704
705	$('[data-show-more]').on("click", function (e) {
706		e.preventDefault();
707
708		var $this = $(this),
709			height = $(this).closest("section").find("[data-show-more-container]").attr("data-height"),
710			fullHeight = $(this).closest("section").find("[data-show-more-container]").attr("data-full-height"),
711			lang = $("html").attr("lang"),
712			langShow = "Показати більше",
713			langHide = "Показати менше";
714
715		if (lang == "en") {
716			langShow = "More";
717			langHide = "Hide";
718		} else if (lang == "ru") {
719			langShow = "Показать больше";
720			langHide = "Показать меньше";
721		} else {
722			langShow = "Показати більше";
723			langHide = "Показати менше";
724		}
725
726		if ($this.attr("data-show-text")) {
727			langShow = $this.attr("data-show-text");
728		}
729
730		if ($this.attr("data-hide-text")) {
731			langHide = $this.attr("data-hide-text");
732		}
733
734		if ($this.hasClass("active")) {
735			$this.find("span").text(langShow);
736			$this.find("svg").css("transform", "rotate(0deg)")
737
738			$this.removeClass("active");
739			$this.closest("section").find("[data-show-more-container] ul").animate({
740				'height': height
741			}, 500).removeAttr("style");
742		} else {
743			$this.find("span").text(langHide);
744			$this.find("svg").css("transform", "rotate(180deg)")
745
746			$this.addClass("active");
747			$this.closest("section").find("[data-show-more-container] ul").animate({
748				'height': fullHeight
749			}, 500).removeAttr("style");
750		}
751
752
753
754	})
755}
756
757
758function mobileDirectionList() {
759	if ($(window).width() <= 767) {
760		$("[data-direction-container]").slideUp(0);
761
762		$("[data-show-direction]").on("click", function () {
763			$("[data-direction-container]").slideToggle()
764		})
765	} else {
766		$("[data-direction-container]").removeAttr("style");
767	}
768}
769
770
771$(window).resize(function () {
772	mobileDetect();
773
774	$('[data-open-menu]').parent().parent().removeClass("active");
775	$('[data-open-menu]').parent().siblings("[data-item-menu]").slideUp(0);
776	$('[data-item-menu]').removeClass("right");
777	$('[data-open-submenu]').parent().parent().removeClass("active");
778	$('[data-open-submenu]').parent().siblings("[data-item-menu]").removeClass("active");
779	$('[data-item-submenu]').removeClass("left-position");
780	$("[data-mobile-bg]").fadeOut(0);
781
782	if ($(window).width() > 991.98) {
783		$(".header-menu").removeClass("active");
784		$("html").removeClass("menu-show");
785	}
786
787	breadcrumbTrim();
788	// corecListHeight();
789	mobileDirectionList();
790});

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.