PageSourceSearch

http://hoteldongbang.com/wordpress/wp-content/themes/ez_responsive/js/menu_fixed.js

js hoteldongbang.com collected 2026-10-08 01:08:05 UTC 996 bytes, 39 lines download raw bytes

1jQuery(function($) {
2	let MENU_THRESHOLD = 400;
3	let topPrev = 0;
4	let $body = $('body'),
5		$mainMenuWrap = $('.mainMenuWrap'),
6		$ezSubMenuBG = $('.ez-subMenuBG');
7
8	$(window).on('scroll load', function() {
9		let top = $(this).scrollTop();
10		let left = $(this).scrollLeft();
11
12		/* 모바일 모드에서는 메뉴 상단 고정 안 함 */
13		if ($('#mmenu-icon').css('display') != 'none') {
14			$body.removeClass('menu-fixed');
15			return;
16		}
17
18		/* 메뉴가 위로 사라질 때 */
19		if (top > MENU_THRESHOLD && topPrev <= MENU_THRESHOLD) {
20			let h1 = $mainMenuWrap.outerHeight(true);
21
22			$body.addClass('menu-fixed');
23		}
24		/* 메뉴가 다시 나타날 때 */
25		else if (top <= MENU_THRESHOLD && topPrev > MENU_THRESHOLD) {
26			$body.removeClass('menu-fixed');
27		}
28
29		topPrev = top;
30	});
31
32	$mainMenuWrap
33		.on('mouseenter', function() {
34			$(this).stop();
35		})
36		.on('mouseleave', function() {
37			if ($body.hasClass('menu-fixed')) $(this).stop();
38		});
39});

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.