PageSourceSearch

https://www.khu.ac.kr/resources/user/_common/_js/main.js

js khu.ac.kr collected 2026-09-24 08:42:37 UTC 1,327 bytes, 60 lines download raw bytes

1// 2021-09-27추가
2
3var guestCarousel;
4
5$(window).on("load",function(){
6    
7    if($(window).width()>768){        
8		set_pc_event();
9    }else if($(window).width()<768){        
10		set_m_event();
11    }     
12})
13
14
15$(window).on("resize",function(){
16    if(guestCarousel){
17        guestCarousel.trigger("destroy.owl.carousel");
18        if($(window).width()>768){
19            set_pc_event();
20        }else if($(window).width()<768){
21            set_m_event();
22        }
23    }
24})
25
26
27function set_pc_event(){
28    const profesor = document.getElementById("professor");
29    if (profesor) {
30        guestCarousel = $('#professor').owlCarousel({
31            autoHeight: true,
32            loop:false,
33            items:2,
34            nav: true,
35            dots: true,
36            mouseDrag:false,
37            margin:20,
38            slideBy:2
39        })
40    }
41}
42
43// set mobile
44function set_m_event(){
45    const profesor = document.getElementById("professor");
46    if (profesor) {
47        guestCarousel = $('#professor').owlCarousel({
48            autoHeight: true,
49            loop: false,
50            URLhashListener: true,
51            items: 1,
52            dots: false,
53            nav: false,
54            margin: 0,
55            slideBy: 1
56        })
57    }
58}
59
60// 2021-09-27추가

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.