PageSourceSearch

https://ewha.ac.kr/_res/ewhaen/_js/user/m-mn.js

js ewha.ac.kr collected 2026-09-24 08:51:27 UTC 3,352 bytes, 96 lines download raw bytes

1$(function () {
2
3	$(".btn-menu").click(function(e) {
4		if($('.btn-sch-open').hasClass('active')) $('.btn-sch-open').trigger('click');
5
6		$(".slideMenu").animate({right: "0"}, 300);
7		$(".slideMenu").show();
8		$(".slide-close").show();
9		$("html, body").addClass('all-fixed');
10	});
11
12	$(".slide-close").click(function () {
13		$(".slideMenu").animate({
14			right: "-100%"
15		});
16		$(".slideMenu").hide(10);
17		$("html, body").removeClass('all-fixed');	
18	});
19
20	$(window).resize(function(){
21
22		if($(window).width() > 1024){
23			$(".slideMenu").css({right: "-100%"});
24			$(".slideMenu").hide();
25			$(".slide-close").hide();
26			$("html, body").removeClass('all-fixed');
27			$('.bottom-header-wrap').css({'z-index': '40'});
28		}
29	});
30
31	$('.dep1 > li').each(function () {
32		if($(this).find('.dep2').length <= 0) {
33			$(this).find('> a').addClass('no-menu');
34		}
35	});
36
37	$(".dep1 > li > a").click(function () {
38		if ($(this).next().is(':hidden')) {
39			$(this).addClass("selected");
40			$(this).parent().siblings().find('a.active').next('.dep2').hide();
41			$(this).parent().siblings().find('a.active').removeClass('active')
42			$(this).parent().siblings().find('.dep2').hide();
43			$(this).next('.dep2').show();
44			$(this).parent().siblings().find(".selected").removeClass("selected");
45			$(this).parent().siblings().find(".selected").find('.dep3').slideUp();
46		}
47		if ($(this).parent().find('.dep2').length > 0) return false;
48	});
49
50	setTimeout(function(){
51		if($('body').hasClass('main') || $('body').hasClass('search')) $('.dep1 > li:eq(0) > a').trigger('click');	
52	}, 200);
53
54	$(".dep2 > li > a").click(function () {
55		if ($(this).next().is(':hidden')) {
56			$(this).parent().find(".dep3").slideUp().siblings(".dep3").slideDown();
57			$(this).parent().find(".dep3").slideUp().slideDown();
58			$(this).addClass("selected");
59			$(this).next(".dep3").slideDown();
60			$(this).parent().siblings().find(".dep3").slideUp();
61			$(this).parent().siblings().find(".selected").removeClass("selected");
62		} else {
63			$(this).next(".dep3").slideUp();
64			$(this).removeClass("selected");
65		}
66	});
67
68	$(function () {
69		var hasDep = $(".dep3").parents(".dep2 > li").find("a:first");
70
71		hasDep.addClass("has-dep03-open");
72		hasDep.attr('href', '#a');
73		$(".dep3").parents(".dep2 > li").each(function () {
74			$(this).click(function () {
75				//$(this).find("a:first").toggleClass("has-dep03-open", "has-dep03-close");
76				$(".dep3").parents(".dep2 > li").find("a:first").not("a.selected").removeClass("has-dep03-close").removeClass("depth02-active").addClass("has-dep03-open");
77				//$(".dep3 > li > a.active").parents(".dep2 > li").find("a:first").addClass("depth02-active");
78				$(this).find("a:first.selected").addClass("depth02-active");
79
80				//$(".dep1 > li > a.active").parents(".dep1 > li").find(".dep2").show();
81				//$(".dep3 > li > a.active").parents(".dep2 > li").find(".dep3").show();
82				$(".dep2 > li").find("a:first").removeClass("depth02-active");
83				//$(".dep3 > li > a.active").parents(".dep2 > li").find("a:first").addClass("depth02-active");
84			});
85		});
86
87		$(".dep1 > li > a.active").parents(".dep1 > li").find(".dep2").show();
88		$(".dep3 > li > a.active").parents(".dep2 > li").find(".dep3").show();
89		$(".dep2 > li").find("a:first").removeClass("depth02-active");
90		$(".dep3 > li > a.active").parents(".dep2 > li").find("a:first").addClass("depth02-active");
91
92	});
93
94
95
96});

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.