PageSourceSearch

https://sdjh.or.kr/theme/yr_fod01/skin/board/sub_contents_04/js/view.skin.js

js sdjh.or.kr collected 2026-10-08 13:02:22 UTC 5,844 bytes, 161 lines download raw bytes

1/*
2//php 환경변수
3var w = '<?=$w?>';
4var board_skin_url = '<?=$board_skin_url?>';
5var board_skin_path = '<?=$board_skin_path?>';
6var skin_ajax_dir = '<?=$board_skin_url?>/ajax';
7
8bo_db = '<?=$g5['board_table']?>';
9bo_tbl = '<?=$write_table?>';
10wr_tbl = '<?=$write_table?>';
11wr_id = <?=$wr_id?>;
12gbl_css_ajax_path = '<?=$board_skin_path?>/ajax/ajax_global_style.php';
13gbl_css_ajax_url = '<?=$board_skin_url?>/ajax/ajax_global_style.php';
14
15gbl_concept = '<?=$board['bo_8']?>';
16gbl_align = '<?=$board['bo_9']?>';
17gbl_margin = '<?=$board['bo_10']?>';
18*/
19/*====================  변수 정의  ===============*/
20
21
22
23//alert(skin_ajax_dir);
24$('.text_target').attr('CONTENTEDITABLE',false);
25//alert(wr_id);
26
27if(mb_level >= 8){
28	if($('#bo_tab').length > 0){ //탭객체가 존재하면
29		//탭순서 정렬 이벤트
30		$('#bo_tab > ul').sortable({
31			connectWidth : "#bo_tab > ul > li",
32			update : function(){
33				var tab_odr_str = '';
34				$('#bo_tab > ul > li').each(function(){
35					if(tab_odr_str == ''){
36						tab_odr_str += $(this).attr('wr_id');
37					}else{
38						tab_odr_str += ','+$(this).attr('wr_id');
39					}
40				});
41				tab_odr_str = $.trim(tab_odr_str);
42				//alert(tab_odr_str);
43				$.ajax({
44					type:'POST',
45					url : tab_sort_ajax_url,
46					crossDomain:true,
47					data : {'bo_notice':tab_odr_str,'board_table':bo_db,'bo_table':bo_tbl},
48					success : function(res){
49						//alert(res);
50						location.reload(true);
51					},
52					error : function(xmRst){
53						alert('Status : ' + xmlRst.status + ' \n\rstatusText : ' + xmlRst.statusText + ' \n\rresponseText : ' + xmlRst.responseText);
54					}
55				});
56			}
57		});
58	}
59	var tpl_global_cssbtn_url = 'https://tpl.ypage.kr/_tpl/_ajax/ajax_temp_global_style.php';
60	var global_css_obj = $('#global_style_set');
61	//글로벌 스타일 버튼 불러오는 아작스
62	//alert(tpl_global_cssbtn_url);
63	$.ajax({
64		type : 'POST',
65		url : tpl_global_cssbtn_url,
66		dataType : 'html',
67		crossDomain : true,
68		success : function(res){
69			global_css_obj.html(res);
70			if(gbl_tab){
71				$('div[type=tab]').attr('value',$('li[value='+gbl_tab+']').attr('value')).text($('li[value='+gbl_tab+']').text());
72			}
73			if(gbl_concept){
74				$('div[type=concept]').attr('value',$('li[value='+gbl_concept+']').attr('value')).text($('li[value='+gbl_concept+']').text());
75			}
76			if(gbl_align){
77				$('div[type=align]').attr('value',$('li[value='+gbl_align+']').attr('value')).text($('li[value='+gbl_align+']').text());
78			}
79			if(gbl_margin){
80				$('div[type=margin]').attr('value',$('li[value='+gbl_margin+']').attr('value')).text($('li[value='+gbl_margin+']').text());
81			}
82			
83			if($('#bo_tab').length < 1){
84				$('div[type=tab]').parent().hide();
85			}
86			global_event_on();
87		},
88		error : function(xmRst){
89			alert('Status : ' + xmlRst.status + ' \n\rstatusText : ' + xmlRst.statusText + ' \n\rresponseText : ' + xmlRst.responseText);
90		}
91	});
92
93	function global_event_on(){
94		$('.gbtn_ul li').click(function(){
95			var gStyle_name_obj = $(this).parent().siblings('.name_style');
96			gStyle_name_obj.attr('value',$(this).attr('value')).text($(this).text());
97			var gStyle_name = gStyle_name_obj.attr('value');
98			var gStyle_type = gStyle_name_obj.attr('type');
99			//alert(gStyle_name == '');
100			
101			$.ajax({
102				type : 'POST',
103				url : gbl_css_ajax_url,
104				dataType : 'text',
105				data : {'bo_table':bo_tbl,'write_table':wr_tbl,'wr_id':wr_id,'g_css_name':gStyle_name,'g_type':gStyle_type},
106				crossDomain : true,
107				success : function(res){
108					//alert(res);
109					location.reload(true);
110				},
111				error : function(xmlRst){
112					alert('Status : ' + xmlRst.status + ' \n\rstatusText : ' + xmlRst.statusText + ' \n\rresponseText : ' + xmlRst.responseText);
113				}
114			});
115		});
116	}
117}
118
119//네이버 지도를 사용할때 이미지를 조정하는 코드
120if($('.map_box img[alt="지도 크게 보기"]').length > 0){
121	$('.map_box img[alt="지도 크게 보기"]').parent().css({'display':'block'});
122	if($(window).width() > 800){
123		$('.map_box img[alt="지도 크게 보기"]').css({'width':'60%'});
124	}else{
125		$('.map_box img[alt="지도 크게 보기"]').css({'width':'100%'});
126	}
127	$('.map_box').css({'padding-bottom':0,'height':'auto','overflow':'visible','text-align':'center'});
128}
129$(window).resize(function(){
130	if($('.map_box img[alt="지도 크게 보기"]').length > 0){
131		$('.map_box img[alt="지도 크게 보기"]').parent().css({'display':'block','text-align':'center'});
132		if($(window).width() > 800){
133			$('.map_box img[alt="지도 크게 보기"]').css({'width':'60%'});
134		}else{
135			$('.map_box img[alt="지도 크게 보기"]').css({'width':'100%'});
136		}
137		$('.map_box').css({'padding-bottom':0,'height':'auto','overflow':'visible'});
138	}	
139});
140
141//백업 이벤트
142if($('.btn_backup').length > 0){ //====================백업이벤트
143$('.btn_backup').click(function(){
144	if(confirm('현재 콘텐츠를 백업하고 새로운 콘텐츠를 생성하시겠습니까?')){
145		$.ajax({
146			type : 'POST',
147			url : backup_ajax_url,
148			dataType : 'text',
149			data : {'board_table':bo_db, 'bo_table':bo_tbl, 'mb_id':mb_id, 'mb_password':mb_password, 'mb_name':mb_name, 'mb_email':mb_email, 'write_table' : wr_tbl, 'wr_id' : wr_id},
150			crossDomain : true,
151			success : function(res){
152				alert('새로운 콘텐츠를 생성하였습니다.\n\n하단의 [수정]버튼을 클릭하여 내용을 수정하세요.\n수정하신 후 [공지]로 설정하시면 적용됩니다.');
153				location.href = res;
154			},
155			error : function(xmlRst){
156				alert('Status : ' + xmlRst.status + ' \n\rstatusText : ' + xmlRst.statusText + ' \n\rresponseText : ' + xmlRst.responseText);
157			}
158		});
159	}
160});
161} //=================================================//백업이벤트

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.