PageSourceSearch

https://www.gwangju.ac.kr/pages/gwangju/main/main4.js?v=20260827

js gwangju.ac.kr collected 2026-10-02 14:31:23 UTC 10,399 bytes, 350 lines download raw bytes

1var program_list,
2    program_index,
3    program_pre_index,
4    program_interval = null,
5    isWorking = false;
6
7$(function(){
8
9
10	var popzoneSwiper = new Swiper('#popup_box', {
11        freeMode: false,
12        slidesPerView: 1,
13        speed: 1500,
14        observer: true,
15        observeParents: true,
16        centeredSlidesBounds: true,
17        updateOnWindowResize: true,
18        autoplay: {
19            delay: 3000,
20        },
21        pagination: {
22            el: '#popzone_total',
23            type: 'custom',
24            renderCustom: function (swiper, current, total) {
25				if(total == 0){
26					return '0<span>/'+total+'</span>';
27				}else{
28					return current+'<span>/'+total+'</span>';
29				}
30            }
31        },
32        observer : true,
33        loop: true,
34        navigation: {
35            nextEl: '#popzone_next',
36            prevEl: '#popzone_prev',
37        },
38        on: {
39            init: function() {
40                var idx = this.activeIndex-1;
41            },
42            slideChange: function() {
43                //특이 사항 인덱스가 0이 아닌 1부터 숫자를 센다
44                var idx = this.activeIndex-1;
45            }
46        },
47
48
49    });
50    $("#popzone_stop").click(function(){
51        if($(this).hasClass('play') !== false){
52            $(this).removeClass('play');
53            popzoneSwiper.autoplay.start();
54        }
55        else{
56            $(this).addClass('play');
57            popzoneSwiper.autoplay.stop();
58        }
59        return false;
60    });
61
62
63
64
65
66	var popzone3 = new Swiper('#sc4-popupzone', {
67        freeMode: false,
68        speed: 1500,
69        observer: true,
70        observeParents: true,
71        centeredSlidesBounds: true,
72		centeredSlides: true,
73        updateOnWindowResize: true,
74//		autoplay: false,
75        autoplay: {
76            delay: 3000,
77        },
78		slidesPerView: 1,
79		breakpoints: { //반응형 조건 속성
80			600: { 
81			  slidesPerView: 1, 
82			},
83			1200: {
84			  slidesPerView: 1,
85			},
86		},
87        pagination: {
88            el: '.popzone_total3',
89            type: 'custom',
90            renderCustom: function (swiper, current, total) {
91               return '<span>'+current+'</span> / '+total;
92
93				
94            }
95        },
96        observer : true,
97//        loop: true,
98        loop: false,
99        navigation: {
100            nextEl: '#popzone3_next',
101            prevEl: '#popzone3_prev',
102        },
103        on: {
104            init: function() {
105                var idx = this.activeIndex-1;
106            },
107            slideChange: function() {
108                //특이 사항 인덱스가 0이 아닌 1부터 숫자를 센다
109                var idx = this.activeIndex-1;
110				popzone3.pagination.update();
111            }
112        },
113    });
114    
115    $("#popzone_btn_playstop3").click(function(){
116        if($(this).hasClass('play') !== false){
117            $(this).removeClass('play');
118            popzone3.autoplay.start();
119        }
120        else{
121            $(this).addClass('play');
122            popzone3.autoplay.stop();
123        }
124        return false;
125    });
126
127
128
129
130	var swiper_story = new Swiper('#swiper_story', {
131		spaceBetween: 20,
132		slidesPerView: 4,
133		autoplay: {
134            delay: 3000,
135        },
136		breakpoints: { //반응형 조건 속성
137			640: { //640 이상일 경우
138			  slidesPerView: 1, //레이아웃 2열
139			},
140			768: {
141			  slidesPerView: 2,
142			},
143			1024: {
144			  slidesPerView: 2,
145			},
146			1280: {
147			  slidesPerView: 3,
148			},
149		},
150		scrollbar: { el: '.swiper-scrollbar' },
151		history: 'slide',
152    });
153
154
155
156    var student_list = new Swiper("#student_wrap",{//여기에 ul위 div 아이디값 입력
157        speed:1000,//속도
158        slidesPerView: 'auto',
159        autoplay: {
160            //자동으로 돌아가 게 할지
161            delay: 2500, //전환속도
162            disableOnInteraction: false //이전 다음 버튼 누른다음에 계속 자동 플레이 멈춤여부
163        },
164
165        freeMode: false,
166        observeParents: false,
167        centeredSlidesBounds: false,
168        updateOnWindowResize: true,
169        observer : false,
170        loop: true,
171        navigation: {
172            nextEl: '#student_next',//다음 버튼 id 값
173            prevEl: '#student_prev',//이전 버튼 id 값
174        },
175        pagination: {
176            el: '#student_pagination',//페이징 번호 표기(html을 그대로 입력)
177            type: 'custom',
178            clickable: true,
179            renderCustom: function (swiper, current, total) {
180                return '<span class="now">'+current+'</span> / <span class="past">'+total+'</span>';
181            }
182        },
183        breakpoints: {
184            580: {
185                centeredSlides: true,
186            },
187        },
188        on: {
189            init: function () {
190                var swipe = this;
191                /*swipe.update(true)*/
192            },
193            transitionStart:function(){
194                $("#student_wrap .swiper-slide-active").addClass('active')
195                $("#student_wrap .swiper-slide-active").removeClass('swiper-slide-active')
196                $("#student_wrap .active").addClass('swiper-slide-active')
197                $("#student_wrap .swiper-slide-active").removeClass('active')
198            },
199            slideChangeTransitionStart:function(){
200                $("#student_wrap .swiper-slide-active").addClass('active')
201                $("#student_wrap .swiper-slide-active").removeClass('swiper-slide-active')
202                $("#student_wrap .active").addClass('swiper-slide-active')
203                $("#student_wrap .swiper-slide-active").removeClass('active')
204            },
205            slideChangeTransitionEnd:function(){
206                var swipe = this;
207                /*swipe.update(true)*/
208            }
209        },
210    });
211
212    //정지 버튼 클릭 이벤트
213    $("#student_stop").click(function(e){
214        e.preventDefault();//이벤트 전파 중지
215
216        //btn_play 이라는 클래스가 존재 하는지 체크
217        //btn_play->플레이버튼(누르면 시작) btn_stop-> 정지버튼(누르면 정지)
218        if($(this).hasClass('btn_play') !== false){
219            //존재 하는경우(슬라이드를 시작해야 하는거)
220            $(this).removeClass('btn_play');//해당클래스 삭제
221            $(this).addClass('btn_stop');//해당 클래스 추가
222            student_list.autoplay.start();//비주얼 자동재생 시작
223        }
224        else{
225            //존재하지 않는경우
226            $(this).removeClass('btn_stop');//해당 클래스 삭제
227            $(this).addClass('btn_play');//해당 클래스 추가
228            student_list.autoplay.stop();//비주얼 자동재생 정지
229        }
230        return false;
231    });
232
233
234    program_index = 0;
235    program_interval = null
236    program_list = $("#program_list > .program_wrap > .swiper-slide");
237    program_list.not(":eq(0)").hide();
238    //program_start();
239    program_pagination()
240
241    //정지 버튼 클릭 이벤트
242    $("#program_stop").click(function(e){
243        e.preventDefault();//이벤트 전파 중지
244        //btn_play 이라는 클래스가 존재 하는지 체크
245        //btn_play->플레이버튼(누르면 시작) btn_stop-> 정지버튼(누르면 정지)
246        if($(this).hasClass('btn_play') !== false){
247            //존재 하는경우(슬라이드를 시작해야 하는거)
248            $(this).removeClass('btn_play');//해당클래스 삭제
249            $(this).addClass('btn_stop');//해당 클래스 추가
250            program_start()
251        }
252        else{
253            //존재하지 않는경우
254            $(this).removeClass('btn_stop');//해당 클래스 삭제
255            $(this).addClass('btn_play');//해당 클래스 추가
256            program_stop()
257        }
258        return false;
259    });
260
261    //이전 버튼 클릭 이벤트
262    $("#program_prev").click(function(e){
263        e.preventDefault();//이벤트 전파 중지
264        program_stop()
265        program_pre_index = program_index;
266        program_index = program_index-1;
267        if(program_list.length <= program_index)program_index = 0;
268        if(0 > program_index)  program_index = program_list.length-1;
269        program_fade()
270        /*if($(this).hasClass('btn_play') === false){
271            program_start()
272        }*/
273
274    });
275
276    //다음 버튼 클릭 이벤트
277    $("#program_next").click(function(e){
278        e.preventDefault();//이벤트 전파 중지
279        program_stop()
280        program_pre_index = program_index;
281        program_index = program_index+1;
282        if(program_list.length <= program_index)program_index = 0;
283        if(0 > program_index)  program_index = program_list.length-1;
284        program_fade()
285        /*if($(this).hasClass('btn_play') === false){
286            program_start()
287        }*/
288
289    });
290
291
292});
293
294function program_start()
295{
296    program_interval = setInterval(function(){
297
298        program_pre_index = program_index;
299        program_index = program_index+1;
300        if(program_list.length <= program_index)program_index = 0;
301        if(0 > program_index)  program_index = program_list.length-1;
302
303        program_fade()
304    },3000)
305}
306
307function program_stop()
308{
309    if(program_interval !== null){
310        clearInterval(program_interval);
311        program_interval = null;
312    }
313}
314
315function program_pagination()
316{
317    var total = program_list.length;
318    var current = program_index+1;
319    var pagination = '<span class="now">'+current+'</span> / <span class="past">'+total+'</span>';
320    $("#program_pagination").html(pagination);
321}
322
323function program_fade()
324{
325    if(isWorking === true){
326        return false;
327    }
328    isWorking = true;
329    program_pagination()
330    program_list.eq(program_pre_index).stop().fadeOut()
331    program_list.eq(program_index).stop().fadeIn(function(){
332        isWorking = false;
333    })
334}
335
336
337
338function movie_play(idx) {
339	console.log(idx);
340	var myVideo = document.getElementById("a_video"+idx);
341	if (myVideo.paused) {
342		myVideo.play();
343		if($('.btn_play').hasClass('stop')){
344		}else{
345			$('.btn_play').trigger('click');
346		}
347	} else {
348		myVideo.pause();
349	}
350}

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.