PageSourceSearch

https://tukorea.ac.kr/sites/tukorea/style/js/script.js

js tukorea.ac.kr collected 2026-10-02 03:37:44 UTC 18,204 bytes, 519 lines download raw bytes

1$(document).ready(function() {
2
3  /* 대학소개 - 대학현황 - 정보공개안내 */
4  $('.tblOpenInfo').hide();
5  $('.btnOpenInfo').on('click', function() {
6	$('.tblOpenInfo').slideToggle();
7  });
8  /* 대학소개 - 대학현황 - 정보공개안내 */
9
10  // 탭키로 이동시 skipmanu 포커스 적용시 대메뉴 표시 //
11  $('.skipMenu a').on('focus', function() {
12	$('.head_navi').css('opacity', '1');
13  });
14  // 로고 포커스 이동시 language //
15  $('.head_logo a').on('focus', function() {
16	$('.wrapLanguage').slideUp();
17  });
18
19  /***** BEGIN 메인비쥬얼 *****/
20  // 넘버링 //
21  $('.main_visual > ul').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
22	var i = (currentSlide ? currentSlide : 0) + 1;
23	$('.main_visual .numbering .now').text(i);
24	$('.main_visual .numbering .total').text(slick.slideCount);
25	$('.main_visual').css('visibility', 'visible');
26  });
27
28  //	$('.main_visual > ul').on('init', function(event, slick) {});
29  $('.main_visual > ul').on('beforeChange', function(event, slick, currentSlide, nextSlide) {
30	$('#mainVisualAviBar').val("0");
31  });
32  $('.main_visual > ul').on('afterChange', function(event, slick, currentSlide) {
33	var video = $('#mainVisualAvi').get(0);
34
35	if($('.main_visual .slick-list .slick-current.slick-active').find("li").hasClass('type_video')) {
36	  $('.main_visual > ul').slick('slickPause');
37	  $('#mainVisualAviBar').show();
38	  if(video.ended === true) video.load();
39	  video.play();
40	  console.log("video");
41	} else {
42	  if(typeof video != "undefined") {
43		$('#mainVisualAviBar').hide();
44		if(video.paused !== true) video.pause();			
45	  }
46	  console.log("image");
47	}
48  });  
49
50  var mvAutoplay = false;	// 슬라이더 첫장이 비디오인지 체크 해서 autoplay 옵션을 설정
51
52  if($('.main_visual > ul > li:eq(0)').hasClass('type_video')) {	
53	mvAutoplay = false;
54  } else {	
55	mvAutoplay = true; 
56  }
57
58  var mainVisual = $('.main_visual > ul').not('.slick-initialized').slick({
59	centerMode: true
60	, infinite: true
61	, autoplaySpeed: 7000 //슬라이드 노출 시간
62	, speed: 500 //슬라이드 속도
63	, slidesToShow: 1
64	, slideToScroll: 1
65	, autoplay: mvAutoplay
66	, fade: true
67	, dots: true
68	, appendDots: $('.main_visual .paging')
69	, arrows: true
70	, prevArrow: $('.main_visual .prev')
71	, nextArrow: $('.main_visual .next')
72	, focusOnSelect: false
73	//	, variableWidth: true		
74  }); 
75
76  $('.main_visual button.stop').on('click', function(e) {
77	e.preventDefault();
78	mainVisual.slick('slickPause');
79	$('.main_visual .stop').removeClass('on');
80	$('.main_visual .play').addClass('on');
81  });
82  $('.main_visual button.play').on('click', function(e) {
83	e.preventDefault();
84	mainVisual.slick('slickPlay');
85	$('.main_visual .play').removeClass('on');
86	$('.main_visual .stop').addClass('on');
87  });  
88
89  // 메인비쥬얼 비디오 재생완료시 슬라이더 자동재생 켜기 //
90  $('video').on('ended',function() {
91	//	console.log('autoplay = ' + $('.main_visual > ul').slick('slickGetOption', 'autoplay'));
92	if($('.main_visual .playstop .stop').hasClass('on')) {
93	  $('.main_visual > ul').slick('slickNext');
94	  $('.main_visual > ul').slick('slickSetOption', 'autoplay', true, true);
95	} else {
96	  $('.main_visual > ul').slick('slickSetOption', 'autoplay', false, true);
97	}
98  });
99
100  // 메인비쥬얼 프로그레스바 //
101  $('video').on('timeupdate',function() {
102	var percent = Math.floor((100 / this.duration) * this.currentTime);
103	if(!isNaN(this.duration) && !isNaN(this.currentTime)) {
104	  $('#mainVisualAviBar').val(percent);
105	}
106  });
107  /***** END 메인비쥬얼 *****/
108
109  /***** BEGIN DEPART *****/
110  var depart_nav = $('.depart_nav').slick({
111	infinite: true
112	,slidesToShow:4
113	, slidesToScroll: 1
114	, asNavFor: '.depart_slide ul'
115	, arrows: false
116	, focusOnSelect: true
117	, pauseOnHover: true
118	, pauseOnFocus: true
119	, pauseOnDotsHover: true
120	, responsive: [
121	  {
122		breakpoint: 1280,
123		settings: {
124		  slidesToShow: 3,
125		  slideToScroll: 1,
126		}
127	  },
128	  {
129		breakpoint: 1024,
130		settings: {
131		  slidesToShow: 2,
132		  slideToScroll: 1,
133		}
134	  },
135	  {
136		breakpoint: 480,
137		settings: {
138		  slidesToShow: 1,
139		  slideToScroll: 1,
140		}
141	  }
142	]
143  });
144
145  var depart_slide = $('.depart_slide ul').not('.slick-initialized').slick({	
146	centerMode: false
147	, infinite: true
148	, autoplaySpeed: 3000
149	, speed: 500
150	, slidesToShow: 4
151	, slideToScroll: 1
152	//	, slidesPerRow: 2
153	//	, rows: 2
154	, autoplay: true
155	, fade: false
156	, dots: false
157	, appendDots: $('.depart_slide .paging')
158	, arrows: true
159	, prevArrow: $('.depart_slide .prev')
160	, nextArrow: $('.depart_slide .next')
161	, pauseOnHover: true
162	, pauseOnFocus: true
163	, pauseOnDotsHover: true
164	, asNavFor: '.depart_nav'
165	, responsive: [
166	  {
167		breakpoint: 1280,
168		settings: {
169		  slidesToShow: 3,
170		  slideToScroll: 1,
171		}
172	  },
173	  {
174		breakpoint: 1024,
175		settings: {
176		  slidesToShow: 2,
177		  slideToScroll: 1,
178		}
179	  },
180	  {
181		breakpoint: 480,
182		settings: {
183		  slidesToShow: 1,
184		  slideToScroll: 1,
185		}
186	  }
187	]
188  }); 
189
190
191  $('.depart_wrap .control .prev').on('click', function() {
192	depart_nav.slick('slickPrev');
193  });
194  $('.depart_wrap .control .next').on('click', function() {
195	depart_nav.slick('slickNext');
196  });
197  $('.depart_wrap .control button.stop').on('click', function() {
198	depart_nav.slick('slickPause');
199	depart_slide.slick('slickPause');
200	$('.depart_wrap .control .stop').removeClass('on');
201	$('.depart_wrap .control .play').addClass('on').focus();
202  });
203  $('.depart_wrap .control button.play').on('click', function() {
204	depart_nav.slick('slickPlay');
205	depart_slide.slick('slickPlay');
206	$('.depart_wrap .control .play').removeClass('on');
207	$('.depart_wrap .control .stop').addClass('on').focus();
208  });  
209
210  /***** END DEPART *****/
211
212    /***** BEGIN USER *****/
213  var userSliderOpt = {
214	centerMode: false
215	, infinite: true
216	, speed: 500
217	, rows: 3
218	, slidesToShow: 4
219	, slideToScroll: 1
220	, autoplay: true
221	, fade: false
222	, focusOnSelect: true
223	, focusOnChange: false
224	, pauseOnFocus: true
225	, pauseOnHover: true
226	, dots: true
227	//		, appendDots: $('.promotion_slide .paging')
228	, arrows: false
229	//		, prevArrow: $('.promotion_slide .prev')
230	//		, nextArrow: $('.promotion_slide .next')
231	//		, variableWidth: true
232	, responsive: [
233	  {
234		breakpoint: 1024,
235		settings: {
236		  rows: 3,
237		  slidesToShow: 3,
238		}
239	  },
240	  {
241		breakpoint: 768,
242		settings: {
243		  rows: 3,
244		  slidesToShow: 2,
245		}
246	  },
247	  {
248		breakpoint: 480,
249		settings: {
250		  rows: 3,
251		  slidesToShow: 1,
252		}
253	  },
254	  {
255		breakpoint: 380,
256		settings: {
257		  rows: 3,
258		  slidesToShow: 1,
259		}
260	  }
261	]
262  };
263
264  $('.user_wrap .userSlider0').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
265	var i = (currentSlide ? currentSlide : 0) + 1;
266	$('.usControl0 .numbering .now').text(i);
267	$('.usControl0 .numbering .total').text(slick.slideCount);
268  });
269  $('.user_wrap .userSlider1').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
270	var i = (currentSlide ? currentSlide : 0) + 1;
271	$('.usControl1 .numbering .now').text(i);
272	$('.usControl1 .numbering .total').text(slick.slideCount);
273  });
274  $('.user_wrap .userSlider2').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
275	var i = (currentSlide ? currentSlide : 0) + 1;
276	$('.usControl2 .numbering .now').text(i);
277	$('.usControl2 .numbering .total').text(slick.slideCount);
278  });
279  $('.user_wrap .userSlider3').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
280	var i = (currentSlide ? currentSlide : 0) + 1;
281	$('.usControl3 .numbering .now').text(i);
282	$('.usControl3 .numbering .total').text(slick.slideCount);
283  });
284
285  $('.user_wrap .prev').on('click', function() {
286	var idx = $('.user_wrap .prev').index($(this));
287	$('.user_wrap .userSlider' + idx).slick('slickPrev');
288  });
289  $('.user_wrap .next').on('click', function() {
290	var idx = $('.user_wrap .next').index($(this));
291	$('.user_wrap .userSlider' + idx).slick('slickNext');
292  });
293
294  $('.user_wrap .play').on('click', function() {
295	var idx = $('.user_wrap .play').index($(this));
296	$('.user_wrap .userSlider' + idx).slick('slickPlay');
297	$('.usControl' + idx + ' .play').removeClass('on');
298	$('.usControl' + idx + ' .stop').addClass('on');
299  });
300  $('.user_wrap .stop').on('click', function() {
301	var idx = $('.user_wrap .stop').index($(this));
302
303	$('.user_wrap .userSlider' + idx).slick('slickPause');
304	$('.usControl' + idx + ' .stop').removeClass('on');
305	$('.usControl' + idx + ' .play').addClass('on');
306  });
307
308
309  $('.openUser').on('click', function() {
310
311	$('.user_wrap .wrap > li').removeClass('active');
312	$('.user_wrap .wrap > li:eq(0)').addClass('active');
313
314	$('.user_container').show();
315
316	$('.user_wrap .userSlider0').slick(userSliderOpt);
317	$('.user_wrap .userSlider0').slick('slickSetOption', {
318	  appendDots: $('.usControl0 .paging')
319	}, true);
320
321  });
322  $('.closeUser').on('click', function() {
323	//		$('div.userNav').fadeOut();
324	$('div.user_container').hide();
325	$('.user_wrap .userSlider.slick-slider').slick('unslick');
326  });
327
328  $('.user_wrap .title a').on('click', function() {
329	var idx = $('.user_wrap .title a').index($(this));
330	$('.user_wrap .userSlider.slick-slider').slick('unslick');
331	$('.user_wrap .wrap > li').removeClass('active');
332	$('.user_wrap .wrap > li').eq(idx).addClass('active');
333	$('.user_wrap .userSlider' + idx).slick(userSliderOpt);
334	$('.user_wrap .userSlider' + idx).slick('slickSetOption', {
335	  appendDots: $('.usControl' + idx + ' .paging')
336	}, true);
337  });
338  /***** END USER *****/
339
340  // 메뉴뎁스 //
341  
342  _pathMenuSeqs = $('#pathMenuSeqs').val();	
343  if(_pathMenuSeqs != undefined ){
344	if(_pathMenuSeqs.length > 0) {
345	var _tmp = _pathMenuSeqs.split(",");
346	_siteNum = _tmp[0];
347	_dp1 = _tmp[1];
348	_dp2 = _tmp[2];
349	_dp3 = _tmp[3];
350	_dp4 = _tmp[4];
351	_dp5 = _tmp[5];		
352	_isSub = true;
353	//		console.log('_dp1=' + _dp1 + ', _dp2=' + _dp2 + ', _dp3=' + _dp3 + ', _dp4=' + _dp4 + ', _dp5=' + _dp5);
354	$('body').addClass('dp2Code_' + _dp2);
355  }
356  }
357  
358
359  $('.goto_next').attr('title', '다음 단으로 이동');
360
361
362  $('.language > a').on('click', function() {
363	if($(this).next('.language_container').css('display') == "none") $(this).next('.language_container').slideDown();
364	else $(this).next('.language_container').slideUp();
365  });
366
367  $('.search > a').on('click', function() {
368	$(this).next('.search_container').show();
369  });
370  $('.closeSearch').on('click', function() {
371	$('.search_container').hide();
372  });
373
374
375  // 편집모드가 아니라면 AOS, 스크롤 기능 작동 //
376  var nHref = $(location).attr('href');
377  if (nHref.indexOf('contentsHtmlView.do') < 0) {
378	$('div._obj').attr('data-aos', 'fade-up');
379	AOS.init({
380	  disable: false	// 'phone', 'tablet', 'mobile'
381	  , delay: 250 //요청사항으로 속도 조정
382	  , duration: 500 //요청사항으로 속도 조정
383	  //, delay: 500
384	  //, duration: 1000
385	  
386	  //		, easing: 'ease'
387	});
388
389	// 단 이동 //
390    //   $('.moveSection > li > a').on('click', function() {
391    //     var idx = $('.moveSection > li > a').index($(this));
392    //     $('.moveSection > li').removeClass('active').eq(idx).addClass('active');
393  
394    //     if(idx == 0) $('html, body').animate({scrollTop:0}, 1000);				// TOP
395    //     else if(idx == 1) $('html, body').animate({scrollTop:800}, 1000);		// NEWS
396    //     else if(idx == 2) $('html, body').animate({scrollTop:1700}, 1000);		// MEDIA
397    //     else if(idx == 3) $('html, body').animate({scrollTop:2400}, 1000);		// DEPARTMENT
398    //     else if(idx == 4) $('html, body').animate({scrollTop:3400}, 1000);		// LIVE ON
399    //     else if(idx == 5) $('html, body').animate({scrollTop:3500}, 1000);		// FUNDING
400    //   });
401  
402    //   $(window).scroll(function() {
403    //     var height = $(document).scrollTop();
404    //     if(height >= 800 && height < 1700) {
405    //       if(!$('.moveSection > li:eq(1)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(1).addClass('active');
406  
407    //     } else if(height >= 1700 && height < 2400) {
408    //       if(!$('.moveSection > li:eq(2)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(2).addClass('active');
409  
410    //     } else if(height >= 2400 && height < 3400) {
411    //       if(!$('.moveSection > li:eq(3)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(3).addClass('active');
412  
413    //     } else if(height >= 3400 && height < 3500) {
414    //       if(!$('.moveSection > li:eq(4)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(4).addClass('active');
415  
416    //     } else if(height >= 3500) {
417    //       if(!$('.moveSection > li:eq(5)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(5).addClass('active');
418  
419    //     } else {
420    //       if(!$('.moveSection > li:eq(0)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(0).addClass('active');
421    //     }
422    //   });
423    
424    // 단 이동 - 2023.09.20 //
425//	  $('.moveSection > li > a').on('click', function() {
426//		var idx = $('.moveSection > li > a').index($(this));
427//		$('.moveSection > li').removeClass('active').eq(idx).addClass('active');
428  
429//		if(idx == 0) $('html, body').animate({scrollTop:0}, 1000);				// TOP
430//		else if(idx == 1) $('html, body').animate({scrollTop:800}, 1000);		// NOTICE
431//		else if(idx == 2) $('html, body').animate({scrollTop:1700}, 1000);		// NEWS
432//		else if(idx == 3) $('html, body').animate({scrollTop:2400}, 1000);		// IN PRESS
433//		else if(idx == 4) $('html, body').animate({scrollTop:3150}, 1000);		// DEPARTMENT
434//		else if(idx == 5) $('html, body').animate({scrollTop:4100}, 1000);		// MEDIA
435//		else if(idx == 6) $('html, body').animate({scrollTop:4300}, 1000);		// FUNDING
436//	  });
437  
438//	  $(window).scroll(function() {
439//		var height = $(document).scrollTop();
440//		if(height >= 800 && height < 1700) {
441//		  if(!$('.moveSection > li:eq(1)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(1).addClass('active');
442  
443//		} else if(height >= 1700 && height < 2400) {
444//		  if(!$('.moveSection > li:eq(2)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(2).addClass('active');
445  
446//		} else if(height >= 2400 && height < 3150) {
447//		  if(!$('.moveSection > li:eq(3)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(3).addClass('active');
448  
449//		} else if(height >= 3150 && height < 4100) {
450//		  if(!$('.moveSection > li:eq(4)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(4).addClass('active');
451  
452//		} else if(height >= 4100 && height < 4300) {
453//		  if(!$('.moveSection > li:eq(5)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(5).addClass('active');
454  
455//		} else if(height >= 4300) {
456//		  if(!$('.moveSection > li:eq(6)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(6).addClass('active');
457  
458//		} else {
459//		  if(!$('.moveSection > li:eq(0)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(0).addClass('active');
460//		}
461//	  });
462// }
463	
464	 // 단 이동 - 2025.09.04 //
465	  $('.moveSection > li > a').on('click', function() {
466		var idx = $('.moveSection > li > a').index($(this));
467		$('.moveSection > li').removeClass('active').eq(idx).addClass('active');
468  
469		if(idx == 0) $('html, body').animate({scrollTop:0}, 1000);				// TOP
470		else if(idx == 1) $('html, body').animate({scrollTop:800}, 1000);		// NOTICE
471		else if(idx == 2) $('html, body').animate({scrollTop:1600}, 1000);		// NEWS
472		else if(idx == 3) $('html, body').animate({scrollTop:2300}, 1000);		// IN PRESS
473		else if(idx == 4) $('html, body').animate({scrollTop:2900}, 1000);		// DEPARTMENT
474		else if(idx == 5) $('html, body').animate({scrollTop:3700}, 1000);		// MEDIA
475		else if(idx == 6) $('html, body').animate({scrollTop:4500}, 1000);		// COLLEGE NEWSPAPER
476		else if(idx == 7) $('html, body').animate({scrollTop:4800}, 1000);		// FUNDING
477		else if(idx == 8) $('html, body').animate({scrollTop:5400}, 1000);		// TUKorea NEWSLETTER
478	  });
479  
480	  $(window).scroll(function() {
481		var height = $(document).scrollTop();
482		if(height >= 800 && height < 1600) {
483		  if(!$('.moveSection > li:eq(1)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(1).addClass('active');
484  
485		} else if(height >= 1700 && height < 2300) {
486		  if(!$('.moveSection > li:eq(2)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(2).addClass('active');
487  
488		} else if(height >= 2300 && height < 2900) {
489		  if(!$('.moveSection > li:eq(3)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(3).addClass('active');
490  
491		} else if(height >= 2900 && height < 3700) {
492		  if(!$('.moveSection > li:eq(4)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(4).addClass('active');
493  
494		} else if(height >= 3700 && height < 4500) {
495		  if(!$('.moveSection > li:eq(5)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(5).addClass('active');
496  
497		} else if(height >= 4500 && height < 4800) {
498		  if(!$('.moveSection > li:eq(6)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(6).addClass('active');
499		  
500		} else if(height >= 4800 &&  height < 5400) {
501		  if(!$('.moveSection > li:eq(7)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(7).addClass('active');
502  
503		} else if(height >= 5400) {
504		  if(!$('.moveSection > li:eq(8)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(8).addClass('active');
505		  
506		} else {
507		  if(!$('.moveSection > li:eq(0)').hasClass('active')) $('.moveSection > li').removeClass('active').eq(0).addClass('active');
508		}
509	  });
510  }
511
512    $('.view-con table').wrap('<div class="table_1 on"></div>');
513
514  
515});
516
517function jf_nottoday(){
518   alert("연말정산 신청기간이 아닙니다!");
519}

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.