PageSourceSearch

https://www.carelogue.co.kr/js/secret_article.js?1604286051

js carelogue.co.kr collected 2026-09-24 11:08:12 UTC 3,901 bytes, 140 lines download raw bytes

1var SECRET_ARTICLE = function(){
2	var $secret_password;
3	var $widget_code;
4	var postInitWrite = function(widget_code){
5		$widget_code = widget_code;
6	}
7	var confirmSecret = function(event,board_code,code,link,widget_type,reload){
8		$secret_password = $('#post_secret_password');
9		if($secret_password.length==0){
10			$secret_password = $('<div class="remove-pop" id="post_secret_password" style="position:absolute; left:0;top:0;z-index:99999;"><p>'+LOCALIZE.설명_작성시등록하신비밀번호를입력해주세요()+'</p><div class="input_area"><input type="password" placeholder="'+LOCALIZE.설명_비밀번호()+'"><button class="btn btn-primary _confirm">'+LOCALIZE.버튼_확인닫기()+'</button></div></div>').hide();
11			if(widget_type == 'calendar'){
12				$('#calendar').append($secret_password);
13			}else if(widget_type == 'map'){
14				$('body').append($secret_password);
15			}else{
16				$('body').append($secret_password);
17			}
18		}
19		if(widget_type == 'calendar'){
20				var top = '50%';
21				var left = $(window).width()/2;
22				left = left -162.5;
23
24			$secret_password.css({
25				position:'fixed',
26				top : top,
27				left : left
28			});
29			$('._calendar_modal_back').show();
30		}else if(widget_type == 'map'){
31			var $post_link = $(event.target).find('._tools_txt');
32			var top = $post_link.offset().top;
33			var left = $post_link.offset().left;
34
35			$secret_password.css({
36				position : 'absolute',
37				top : top,
38				left : left
39			});
40
41		}else if(widget_type == 'map_mobile'){
42			var $post_link = $(event.target).find('._dropdown');
43
44			var top = $post_link.offset().top+113;
45			var left = $post_link.offset().left-325;
46
47			$secret_password.css({
48				position : 'absolute',
49				top : top,
50				left : left
51			});
52		}else if(widget_type == 'map_more'){
53			var $post_link = $('body').find('#maps_more .text-brand');
54
55			var top = $post_link.offset().top;
56			var left = $(window).width()/2;
57			left = left -162.5;
58
59			$secret_password.css({
60				position : 'absolute',
61				top : top,
62				left : left
63			});
64		}else{
65			var $post_link = $(event.target);
66			var top;
67			if($post_link.offset() === undefined){
68				top = $(window).height()/2;
69				top = top - 117
70			}else{
71				top = $post_link.offset().top;
72			}
73
74
75			var left = $(window).width()/2;
76			left = left -162.5;
77
78			$secret_password.css({
79				position : 'absolute',
80				top : top,
81				left : left
82			});
83		}
84
85		$secret_password.find('input').val('');
86		$secret_password.show();
87		$secret_password.off('click','._confirm')
88			.on('click','._confirm',function(){
89				var secret_pass = $secret_password.find('input').val();
90				CheckSecret(board_code,code,secret_pass,function(){
91					if(typeof link == 'function'){
92						if(widget_type == 'calendar'){
93							$('._calendar_modal_back').hide();
94						}
95						link(secret_pass);
96					}else{
97						window.location.href=link;
98
99						//hash url 용 reload 옵션 추가
100						if(typeof reload != 'undefined' && reload == 'Y'){
101							location.reload();
102						}
103					}
104				},widget_type);
105			});
106		$('body').off('mousedown.post_secret')
107			.on('mousedown.post_secret',function(e){
108				var $tmp = $(e.target).closest('#post_secret_password');
109				if($tmp.length==0) {
110					$secret_password.hide();
111					$('body').off('click.post_secret');
112				}
113			});
114	};
115	var CheckSecret = function(board_code,code,secret_pass,callback,widget_type){
116		$.ajax({
117			type:'post',
118			data:{board_code:board_code,code:code,secret_pass :secret_pass,widget_type:widget_type},
119			url:'/ajax/check_secret_pass.cm',
120			dataType:'json',
121			success:function(result){
122				if(result.msg == 'SUCCESS'){
123					if(typeof callback == 'function')
124						callback();
125				}else{
126					alert(result.msg);
127				}
128			}
129		});
130	};
131
132	return{
133		init: function(code) {
134			postInitWrite(code);
135		},
136		confirmSecret : function(event,board_code,code,link,widget_type,reload){
137			confirmSecret(event,board_code,code,link,widget_type,reload);
138		}
139	}
140}();

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.