PageSourceSearch

https://www.korea.kr/jsV5/operations.js?time=202610021911

js korea.kr collected 2026-10-02 10:13:45 UTC 16,132 bytes, 428 lines download raw bytes

1/* =========================================
2==== 주의 ==================================
3web, mobile 공통 js
4============================================
5========================================== */
6$(document).ready(function(){
7
8	$('img[usemap]').rwdImageMaps();
9
10	$('.info20200325 .info_slider .slider_tab > div').slick({
11		slidesToShow: 8,
12		asNavFor: '.info20200325 .info_slider .slider_con',
13		dots: false,
14		focusOnSelect: true,
15		arrows: false,
16		infinite: false,
17		variableWidth: false,
18	});
19	$('.info20200325 .info_slider .slider_con').slick({
20		dots: false,
21		infinite: true,
22		slidesToShow:1,
23		slidesToScroll: 1,
24		speed: 400,
25		autoplay : false,
26		autoplaySpeed: 5000,
27		cssEase: 'ease-in-out',
28		arrows: false,
29		swipe : true,
30		focusOnSelect: true,
31		variableWidth: false,
32		adaptiveHeight: true,
33		asNavFor: '.info20200325 .info_slider .slider_tab > div',
34	});
35
36	$('.info20200518 .info_slider .slider_tab > div').slick({
37		slidesToShow: 10,
38		asNavFor: '.info20200518 .info_slider .slider_con',
39		dots: false,
40		focusOnSelect: true,
41		arrows: false,
42		infinite: false,
43		variableWidth: false,
44	});
45	$('.info20200518 .info_slider .slider_con').slick({
46		dots: false,
47		infinite: true,
48		slidesToShow:1,
49		slidesToScroll: 1,
50		speed: 400,
51		autoplay : false,
52		autoplaySpeed: 5000,
53		cssEase: 'ease-in-out',
54		arrows: false,
55		swipe : true,
56		focusOnSelect: true,
57		variableWidth: false,
58		adaptiveHeight: true,
59		asNavFor: '.info20200518 .info_slider .slider_tab > div',
60	});
61
62	$('.weekend20200709 .weekend_slider .slider_tab').slick({
63		slidesToShow: 20,
64		asNavFor: '.weekend20200709  .weekend_slider .slider_con',
65		dots: false,
66		focusOnSelect: true,
67		arrows: false,
68		infinite: false,
69		variableWidth: false,
70		adaptiveHeight: true,
71	});
72	$('.weekend20200709  .weekend_slider .slider_con').slick({
73		dots: false,
74		infinite: true,
75		slidesToShow:1,
76		slidesToScroll: 1,
77		speed: 400,
78		//autoplay : true,
79		//autoplaySpeed: 5000,
80		cssEase: 'ease-in-out',
81		arrows: false,
82		swipe : true,
83		focusOnSelect: true,
84		variableWidth: false,
85		adaptiveHeight: true,
86		asNavFor: '.weekend20200709  .weekend_slider .slider_tab',
87	});
88
89	$('.weekend_slider.st1 .slider_tab').slick({
90		slidesToShow: 3,
91		asNavFor: '.weekend_slider.st1 .slider_con',
92		dots: false,
93		focusOnSelect: true,
94		arrows: false,
95		infinite: false,
96		variableWidth: true,
97		adaptiveHeight: true,
98	});
99	$('.weekend_slider.st1 .slider_con').slick({
100		dots: false,
101		infinite: true,
102		slidesToShow:1,
103		slidesToScroll: 1,
104		speed: 400,
105		//autoplay : true,
106		//autoplaySpeed: 5000,
107		cssEase: 'ease-in-out',
108		arrows: false,
109		swipe : true,
110		focusOnSelect: true,
111		variableWidth: false,
112		adaptiveHeight: true,
113		asNavFor: '.weekend_slider.st1 .slider_tab',
114	});
115
116	$('.weekend_slider.st2 .slider_tab').slick({
117		slidesToShow: 18,
118		asNavFor: '.weekend_slider.st2 .slider_con',
119		dots: false,
120		focusOnSelect: true,
121		arrows: false,
122		infinite: false,
123		variableWidth: true,
124		adaptiveHeight: true,
125	});
126	$('.weekend_slider.st2 .slider_con').slick({
127		dots: false,
128		infinite: true,
129		slidesToShow:1,
130		slidesToScroll: 1,
131		speed: 400,
132		//autoplay : true,
133		//autoplaySpeed: 5000,
134		cssEase: 'ease-in-out',
135		arrows: false,
136		swipe : true,
137		focusOnSelect: true,
138		variableWidth: false,
139		adaptiveHeight: true,
140		fade: true,
141		asNavFor: '.weekend_slider.st2 .slider_tab',
142	});
143
144	/* 오디오 설정 */
145	var audio = new Audio();
146	$('.weekend20200910 .weekend_slider .slider_con .audio_list ul li .box button').click(function() {
147		var class_id = $(this).attr('id');
148		console.log(class_id);
149		switch (class_id) {
150			case "playlist01":
151				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDc1M19XUlRfMjAxOTExMjFfMQ==';
152				audio.type = 'audio/mp3';
153				break;
154			case "playlist02":
155				audio.src = 'https://static.wixstatic.com/preview/4159e6_24a55ec40e814b189d10138c8e6ff5c5-128.mp3';
156				audio.type = 'audio/mp3';
157				break;
158			case "playlist03":
159				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDk5MF9XUlRfMjAxOTExMjFfMQ==';
160				audio.type = 'audio/mp3';
161				break;
162			case "playlist04":
163				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDczN19XUlRfMjAxOTExMjFfMQ==';
164				audio.type = 'audio/mp3';
165				break;
166			case "playlist05":
167				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDc1Nl9XUlRfMjAxOTExMjFfMQ==';
168				audio.type = 'audio/mp3';
169				break;
170			case "playlist06":
171				audio.src = 'https://static.wixstatic.com/preview/4159e6_3d6035357cdc40e79293b24d8deb258a-128.mp3';
172				audio.type = 'audio/mp3';
173				break;
174			case "playlist07":
175				audio.src = 'https://static.wixstatic.com/preview/4159e6_c11f639420494120a570924cbc9416b3-128.mp3';
176				audio.type = 'audio/mp3';
177				break;
178			case "playlist08":
179				audio.src = 'https://static.wixstatic.com/preview/4159e6_328baebb0a0645f297db4f6faddf3a5a-128.mp3';
180				audio.type = 'audio/mp3';
181				break;
182			case "playlist09":
183				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDc4Nl9XUlRfMjAxOTExMjFfMQ==';
184				audio.type = 'audio/mp3';
185				break;
186			case "playlist10":
187				audio.src = 'https://static.wixstatic.com/preview/4159e6_795d412bfe634d3e95fe9b04146c5097-128.mp3';
188				audio.type = 'audio/mp3';
189				break;
190			case "playlist11":
191				audio.src = 'https://static.wixstatic.com/preview/4159e6_54efb62919df465e93988d022962120f-128.mp3';
192				audio.type = 'audio/mp3';
193				break;
194			case "playlist12":
195				audio.src = 'https://gongu.copyright.or.kr/gongu/wrt/cmmn/wrtFileMediaPlay.do?fileTp=audio/mp3&filePath=L2Rpc2sxL25ld2RhdGEvMjAxOS8yMS9DTFMxMDAwMi8xMzIyMDg0MV9XUlRfMjAxOTExMjFfMQ==';
196				audio.type = 'audio/mp3';
197				break;
198		}
199
200		if($(this).text() == '시작' ){
201			audio.play();
202			$('.weekend20200910 .weekend_slider .slider_con .audio_list ul li .box button').not(this).parent().removeClass('rotation');
203			$('.weekend20200910 .weekend_slider .slider_con .audio_list ul li .box button').not(this).removeClass('pause');
204			$('.weekend20200910 .weekend_slider .slider_con .audio_list ul li .box button').not(this).text('시작');
205			$(this).text('멈춤');
206			$(this).addClass('pause');
207			$(this).parent().addClass('rotation');
208		}else{
209			audio.pause()
210			$(this).text('시작');
211			$(this).removeClass('pause');
212			$(this).parent().removeClass('rotation');
213		}
214
215	});
216
217
218	$(".weekend_section_info div.wrow:first-child").css("height", $('.weekend_section_info .wrow .wcol:first-child .txt').outerHeight() + $(".weekend_section_info .wcol.on button").height());
219
220	$(".weekend_section_info button").click(function(){
221		var btnH = $(this).outerHeight();
222		$(this).parent().addClass("on").siblings().removeClass("on");
223		$(this).parent().parent().css('height', $(this).next('.txt').outerHeight() + btnH);
224		$(this).parent().parent().siblings().removeAttr("style").children().removeClass("on");
225		$('.weekend_slider.st1 .slider_con').slick('resize');
226	});
227
228	$(window).resize(function(){
229		var btnH = $(".weekend_section_info .wcol.on button").height();
230		$(".weekend_section_info .wcol.on button").parent().parent().css("height", $('.weekend_section_info .wcol.on .txt').outerHeight()+ btnH);
231	});
232
233	$('.info20211115 .info_slider .slider_tab > div').slick({
234		slidesToShow: 10,
235		asNavFor: '.info20211115 .info_slider .slider_con',
236		dots: false,
237		focusOnSelect: true,
238		arrows: false,
239		infinite: false,
240		variableWidth: false,
241	});
242	$('.info20211115 .info_slider .slider_con').slick({
243		dots: false,
244		infinite: true,
245		slidesToShow:1,
246		slidesToScroll: 1,
247		speed: 400,
248		autoplay : false,
249		autoplaySpeed: 5000,
250		cssEase: 'ease-in-out',
251		arrows: false,
252		swipe : true,
253		focusOnSelect: true,
254		variableWidth: false,
255		adaptiveHeight: true,
256		asNavFor: '.info20211115 .info_slider .slider_tab > div',
257	}).on('afterChange', function(event, slick, currentSlide, nextSlide){
258		$(".info20211115 .info_box_txt ul li").each(function(i){
259			if(i + 1 == currentSlide+1){
260				$(this).show();
261			}else{
262				$(this).hide();
263			}
264		});
265	});
266
267	$(".weekend_section_tab a").click(function(e){
268		$(this).parent().addClass('active').siblings().removeClass("active");
269		$(this.hash).show().siblings(".weekend_section_tab_cont").hide();
270		$('.weekend_slider.st1 .slider_con').slick('resize');
271		$('.weekend_slider.st1 .slider_con').slick('init');
272		$('.weekend_slider_type1').slick('setPosition');
273		e.preventDefault();
274	});
275
276	/*
277	$(".weekend202120318 .weekend_tab li:first-child").addClass("active");
278	$(".weekend202120318 .weekend_tab a").click(function(){
279		$(this).parent().addClass('active').siblings().removeClass("active");
280		$(this.hash).show().siblings(".weekend_tab_cont").hide();
281		return false;
282	});
283	*/
284
285	$('.weekend_tab button').on('click',function(e){
286		$(this).parent().addClass('active').siblings().removeClass("active");
287		var idx = $(this).parent().index();
288		$(this).parent().parent().parent().next().children('.weekend_tab_cont').eq(idx).show().siblings(".weekend_tab_cont").hide();
289		$('.weekend_slider_type1').slick('setPosition');
290		e.preventDefault();
291	});
292
293	$('.weekend_slider_type1').slick({
294		slidesToShow: 1,
295		slidesToScroll: 1,
296		infinite: true,
297		arrows: true,
298		dots: true,
299		adaptiveHeight:true,
300		speed: 800
301	});
302
303	$('.weekend20221007_info .map_c1').on('click',function(e){
304		$("html").animate({scrollTop:$(".weekend20221007_info #mapc").offset().top},300);
305		$('.weekend20221007_info .weekend_tab ul li:nth-child(1)').addClass('active');
306		$('.weekend20221007_info .weekend_tab ul li:nth-child(2)').removeClass('active');
307		$('.weekend20221007_info .weekend_tab ul li:nth-child(3)').removeClass('active');
308		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(1)').show();
309		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(2)').hide();
310		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(3)').hide();
311		$('.weekend_slider_type1').slick('setPosition');
312		e.preventDefault();
313	});
314	$('.weekend20221007_info .map_c2').on('click',function(e){
315		$("html").animate({scrollTop:$(".weekend20221007_info #mapc").offset().top},300);
316		$('.weekend20221007_info .weekend_tab ul li:nth-child(2)').addClass('active');
317		$('.weekend20221007_info .weekend_tab ul li:nth-child(1)').removeClass('active');
318		$('.weekend20221007_info .weekend_tab ul li:nth-child(3)').removeClass('active');
319		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(2)').show();
320		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(3)').hide();
321		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(1)').hide();
322		$('.weekend_slider_type1').slick('setPosition');
323		e.preventDefault();
324	});
325	$('.weekend20221007_info .map_c3').on('click',function(e){
326		$("html").animate({scrollTop:$(".weekend20221007_info #mapc").offset().top},300);
327		$('.weekend20221007_info .weekend_tab ul li:nth-child(3)').addClass('active');
328		$('.weekend20221007_info .weekend_tab ul li:nth-child(1)').removeClass('active');
329		$('.weekend20221007_info .weekend_tab ul li:nth-child(2)').removeClass('active');
330		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(3)').show();
331		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(1)').hide();
332		$('.weekend20221007_info .weekend_tab_cont_wrap > div:nth-child(2)').hide();
333		$('.weekend_slider_type1').slick('setPosition');
334		e.preventDefault();
335	});
336
337	$('.weekend20230420 .weekend_tab button').on('click',function(e){
338		$("html").animate({scrollTop:$(".weekend20230420 .weekend_tab_cont_wrap").offset().top - 100},300);
339		e.preventDefault();
340	});
341
342	$('.notify_event .terms_open').click(function(){
343		$('.notify_event .terms').fadeIn();
344		return false;
345	});
346	$('.notify_event .terms_close').click(function(){
347		$('.notify_event .terms').fadeOut();
348		return false;
349	});
350
351	$('.weekend20231110 .map_img .mapGo').on('click',function(e){
352		var idx = $('.weekend20231110 .map_img .mapGo').index(this),
353			tab = $('.weekend20231110 .tab_wrap .tab ul li').eq(idx + 1);
354		tab.addClass('active').children('button').attr('title','선택됨');
355		tab.siblings().removeClass('active').children('button').attr('title','');
356		$('.weekend20231110 .tab_cont_t .cont').eq(idx + 1).show().siblings(".weekend20231110 .tab_cont_t .cont").hide();
357		$("html").animate({scrollTop:$(".weekend20231110 .tab_wrap").offset().top - 100},300);
358	});
359
360	$('.weekend20231110 .tab_wrap .tab button').on('click',function(e){
361		$(this).parent().addClass('active').siblings().removeClass("active");
362		var idx = $(this).parent().index();
363		$(this).parent().addClass('active').children('button').attr('title','선택됨');
364		$(this).parent().siblings().removeClass('active').children('button').attr('title','');
365		$('.weekend20231110 .tab_cont_t .cont').eq(idx).show().siblings(".weekend20231110 .tab_cont_t .cont").hide();
366		$("html").animate({scrollTop:$(".weekend20231110 .tab_wrap").offset().top - 100},300);
367	});
368
369	$('.Olympics2024paris .tab_wrap .tab button').on('click',function(e){
370		$(this).parent().addClass('active').siblings().removeClass("active");
371		var idx = $(this).parent().index();
372		$(this).parent().addClass('active').children('button').attr('title','선택됨');
373		$(this).parent().siblings().removeClass('active').children('button').attr('title','');
374		$('.Olympics2024paris .tab_cont_t .cont').eq(idx).addClass('active').siblings('.Olympics2024paris .tab_cont_t .cont').removeClass('active');
375		$("html").animate({scrollTop:$('.Olympics2024paris .tab_cont_t').offset().top - 100},300);
376		playerListMore();
377	});
378	playerListMore();
379
380	function playerListMore() {
381		$('.Olympics2024paris .tab_cont_t .cont.active .player_list > li').slice(0, 9).css("display", "block");
382		if($('.Olympics2024paris .tab_cont_t .cont.active .player_list > li:hidden').length == 0){
383			$('.Olympics2024paris .tab_cont_t .cont.active .player_list_more').hide();
384		}
385		$('.Olympics2024paris .tab_cont_t .cont.active .player_list_more').off().on('click',function(e){
386			e.preventDefault();
387			$(this).parent().find('.player_list > li:hidden').slice(0, 9).addClass('active');
388			if($(this).parent().find('.player_list > li:hidden').length == 0){
389				$(this).hide();
390			}
391		});
392	};
393
394
395	$('.weekend20241008 .top_wrap .mapGo').on('click', function(e) {
396		$('html').animate({scrollTop : $(this.hash).offset().top},300);
397	});
398	$('.weekend20241008 .tab_wrap .tab button').on('click',function(e){
399		$(this).parent().addClass('active').siblings().removeClass("active");
400		var idx = $(this).parent().index();
401		$(this).parent().addClass('active').children('button').attr('title','선택됨');
402		$(this).parent().siblings().removeClass('active').children('button').attr('title','');
403		$("html").animate({scrollTop:$('.weekend20241008 .tab_cont_t .cont').eq(idx).offset().top},300);
404		//$('.weekend20241008 .tab_cont_t .cont').eq(idx).show().siblings(".weekend20231110 .tab_cont_t .cont").hide();
405		//$("html").animate({scrollTop:$(".weekend20241008 .tab_wrap").offset().top - 100},300);
406	});
407	$('.weekend20241008 .tab_wrap .tab_cont_t .cont .btn_layerpop').on('click',function(e){
408		$(this).parent().next('.layerpop').addClass('active');
409		return false;
410	});
411	$('.weekend20241008 .layerpop .close').on('click',function(e){
412		$('.weekend20241008 .layerpop').removeClass('active');
413		return false;
414	});
415	if($('.weekend20241008 .layerpop .alink').length > 0){
416		$(document).on('click', function(e) {
417			if(!$('.weekend20241008 .layerpop .alink').is(e.target) && $('.weekend20241008 .layerpop .alink').has(e.target).length === 0){
418				$('.weekend20241008 .layerpop').removeClass('active');
419			}
420		});
421	}
422	
423	$('.weekend20250318 .weekend_tab button').on('click',function(e){
424		$("html").animate({scrollTop:$(".weekend20250318 .weekend_tab_cont_wrap").offset().top - 150},300);
425		e.preventDefault();
426	}); 
427	
428});

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.