PageSourceSearch

https://happyai.kr/js/cmnara.js?ver=26101008

js happyai.kr collected 2026-10-09 23:26:42 UTC 3,094 bytes, 86 lines download raw bytes

1$(function(){	
2	// 해더 전체 카테고리 NAV 탑메뉴에 복사
3	//$(".site_map").clone().prependTo(".nav .centerWrap"); 
4	$("#total_Menu dl").clone().appendTo(".top_menu"); 
5	//$(".top_menu dl:gt(7)").hide();
6
7	// 2차 메뉴 마우스 오버스 색상 유지
8	$(".total_menu .depth_2").hover(function(){
9		$(this).addClass("active");
10	},function(){
11		$(this).removeClass("active");
12	});
13
14	// 해더 NAV 탑메뉴에 2차 메뉴 노출
15	$(".top_menu dl").hover(function(){
16		$(this).find("dd").show();
17		$(this).find("dd").hide();
18		if($(this).find(".depth_2").children().length > 0)
19		$(this).find("dd").show();
20	},function(){
21		$(this).find("dd").hide();
22	});
23
24
25	// 좌/우측 퀵메뉴 스크롤 고정 
26	$(window).scroll(function(){ 	
27		var scroll = $(this).scrollTop();
28		if(scroll>= 158) {
29			//$(".left_quick_wrap").addClass("fixed");
30			$(".right_quick_wrap").addClass("fixed");
31		}else{
32			//$(".left_quick_wrap").removeClass("fixed");
33			$(".right_quick_wrap").removeClass("fixed");
34		}	
35	});	
36	//
37	
38    if($(window).width() < 1050){
39		$(".quick_banner").css("overflow","hidden");
40	}
41	
42	// 같은 속성(클래스명)에 같은 높이 부여하기
43	$.fn.equalizeHeights = function() { 
44		var maxHeight = this.map(function( i, e ) {
45			return $( e ).height();
46		}).get();
47		return this.height( Math.max.apply( this, maxHeight ) );
48	};
49	//$(".goods_list.row_04 > dl").equalizeHeights(); //장바구니 테이블 li 높이 같게 하기
50	$(".sub_category_wrap > li").equalizeHeights(); //상품 리스트 페이지 카테고리 li 높이 같게 하기
51	
52	/* 상품 뷰페이지 상품 이미지 크면 작게 줄이기
53	if($(".product_info_1 iframe img").width() > 835){
54		$(".product_info_1 iframe img").css("width","800px");
55	}
56	*/
57	//상품 리스트에 랩하나 더 감싸기
58	$(".goods_list").wrap("<div class='goods_list_wrap'></div>");
59	$(".goods_list.no_padding").wrap("<div class='line_01'></div>");
60	//상품 뷰페이지(/shop/prd_view.php?) 상담코드 및 장바구니/바로구매 버튼 복사
61	$(".view_top_info_wrap .right_wrap h1 span:first-child b").clone().appendTo(".sangdam_wrap ul li.s_1 a");
62	$(".header .top_wrap .right a:first-child").clone().appendTo(".sangdam_wrap ul li.s_3");
63	//$(".view_top_info_wrap .right_wrap .btn_wrap a:first-child").clone().appendTo(".sangdam_wrap ul li.s_4");
64	//$(".view_top_info_wrap .right_wrap .btn_wrap a:nth-child(2)").clone().appendTo(".sangdam_wrap ul li.s_5");
65	$(".sangdam_wrap").insertBefore("<li class='top'>맨위로</li>");
66
67	//상단 탑메뉴 2차 레이어에 글자 나오게 처리하기
68	$(".top_menu dl").hover(function(){
69		$(this).find("dt a").clone().prependTo(".top_menu dl dd").addClass("title");
70	},function(){
71		$(".top_menu dl dd a.title").remove();
72	});
73	// 모바일 상단 주소창 없애기
74	if(navigator.userAgent.indexOf("iPhone") != -1 || navigator.userAgent.indexOf("Linux") != -1){
75		 addEventListener("load", function(){
76			  setTimeout(scrollTo, 0, 0, 1)
77		 }, false);
78		 addEventListener("orientationchange", function(){
79			  setTimeout(scrollTo, 0, 0, 1)
80		 }, false);
81	}
82
83
84});
85
86

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.