PageSourceSearch

https://kistory.or.kr/js/contents.js

js kistory.or.kr collected 2026-10-02 19:05:54 UTC 3,163 bytes, 107 lines download raw bytes

1
2jQuery(document).ready(function($)	{
3	//$('.accordion dl:first-child').find('dt').addClass('active').next('dd').slideDown();
4	$('.accordion dt').on('click',function(){
5		var box = $(this).parents('.accordion');
6		if ($(this).hasClass('active')){
7			$(this).removeClass('active').find('span img').attr('src','../../images/accordion_bullet_closed.png');
8			$(this).next('dd').slideUp();
9		}else{
10			$('.accordion dt').removeClass('active').find('span img').attr('src','../../images/accordion_bullet_closed.png');
11			$(this).addClass('active').find('span img').attr('src','../../images/accordion_bullet_opened.png');
12			$('.accordion dd').slideUp();
13			$(this).next('dd').slideDown();
14		}
15	});
16});
17
18jQuery(document).ready(function($){
19	var windowWidth = $(window).width();
20	IsReservation(windowWidth);
21
22	$(window).resize(function() { 
23		var windowWidth = $(window).width();
24		IsReservation(windowWidth);
25	});	
26
27	function IsReservation(w){
28		var _html = ""
29		var cnt = 0;
30		var i = 1;
31
32		$(".calendar td .mobile").remove();
33
34		if (w <= 759){
35			$(".calendar td").each(function(index){
36				$(this).find("span").each(function(e){				
37					cnt = $(".calendar td:eq("+index+") .agree").length;
38					if ($(this).hasClass("agree") == true){
39						//console.log('cnt--'+cnt+', '+'i--'+i)
40						if (cnt == i ){
41							_html = "";
42							_html = "<span class=\"agree mobile\"><img src=\"images/icon_rent.png\"></span>";
43							$(this).parent().append(_html);
44							i = 0;
45						}
46						i ++;
47					}else{
48						_html = "";
49						$(this).parent().append(_html);
50					}
51				});		
52			});
53		}
54	}
55});
56
57
58//30주년 연혁 팝업창
59function LayerPopup_type(obj){
60	jQuery(document).ready(function($){
61		var background = $("<div>").attr({
62			"class": "popup_background"
63		}).css({
64			"background":"#000",
65			"width": "100%",
66			"height": $(document).outerHeight(),
67			"position": "absolute",
68			"left": 0,
69			"top": 0,
70			"z-index":100,
71			"opacity":0.95,
72			"filter":"alpha(opacity=95)"
73		});
74		$("body").append(background);
75
76		var id_Motion = $(".history_pop01, .history_pop02, .history_pop03, .history_pop04, .history_pop05, .history_pop06, .history_pop07, .history_pop08, .history_pop09, .history_pop10, .history_pop11, .history_pop12, .history_pop13, .history_pop14");
77
78		if(obj =="close"){
79			//for(var i=0; i<=id_Motion.length; i++){
80			//$(id_Motion[i]).css("display","none");
81			$("#list_pwd_chk").val('');
82			id_Motion.css("display","none");
83			$(".popup_background").remove();
84			//}
85		}else{
86			for(var i=0; i<=id_Motion.length; i++){
87				$(id_Motion[i]).css("display","none");
88			}
89			$(".popup_background").click(function(){
90				$("#list_pwd_chk").val('');
91				id_Motion.css("display","none");
92				$(".popup_background").remove();
93			});
94			var width = $(obj).width();
95			var top = $(window).scrollTop();
96			var windowHeight = $(window).height();
97			var height = $(obj).outerHeight();
98			$(obj).css({
99				"display":"block",
100				"z-index":999,
101				"left":"50%",
102				"margin-left":-(width/2),
103				"top":((windowHeight - height)/2)
104			});
105		}
106	});
107}//LayerPopup_type

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.