PageSourceSearch

https://www.sookmyung.ac.kr/_res/sookmyung/_share/js/korean-main-image-banner.widget.js?15034

js sookmyung.ac.kr collected 2026-10-01 11:27:35 UTC 1,348 bytes, 43 lines download raw bytes

1$(function(){
2	var $slideLeng = $('.main-banner-swiper .swiper-slide').length;
3
4	var mainBannerSwiper = new Swiper('.main-banner-swiper', {
5		init: false,
6		loop: $slideLeng > 1 ? true : false,
7		slidesPerView: 1,
8		autoplay: {
9			delay: 4000,
10			disableOnInteraction: false,
11		},
12		watchOverflow: true,
13		pagination: {
14			el: '.main-banner-pagination',
15			type: 'progressbar',	
16			clickable: true,
17		},
18	});
19	$(".main-banner-autoplay button").on('click', function(){
20		if($(this).hasClass('pause')){
21			mainBannerSwiper.autoplay.stop();
22			$(this).parent().removeClass('pause').addClass('start');
23		}else{			
24			mainBannerSwiper.autoplay.start();
25			$(this).parent().removeClass('start').addClass('pause');
26		}
27	});
28	mainBannerSwiper.on('init slideChange', function () {
29		var activeslide = mainBannerSwiper.realIndex;
30		var totalslide = mainBannerSwiper.slides.length;
31
32		// 슬라이드가 1개인 경우, totalslide 값을 1로 고정하여 "01/01"을 표시하도록 합니다.
33		if (totalslide === 1) {
34			$(".active-slide").html('01');
35			$(".total-slide").html('01');
36		} else {
37			// 슬라이드가 2개 이상인 경우, 정상적인 방식으로 값을 표시합니다.
38			$(".active-slide").html(('0' + (activeslide + 1)).slice(-2));
39			$(".total-slide").html(('0' + (totalslide - 2)).slice(-2));
40		}
41	});
42	mainBannerSwiper.init();
43});

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.