PageSourceSearch

https://bosungsoft.net/theme/ins/js/theme_common.js

js bosungsoft.net collected 2026-10-02 02:01:10 UTC 3,396 bytes, 107 lines download raw bytes

1// 전체 선택, 개별 선택 체크박스 이미지와 실제 체크박스 체크되도록
2$(document).ready(function(){
3    $(".all_chk label").click(function(){
4        $(this).toggleClass("click_on");
5
6        if($(this).hasClass("click_on")) {
7            $(".li_chk input[type=checkbox]").prop('checked', true);
8            $(".li_chk label").addClass("click_on");
9        } else {
10            $(".li_chk input[type=checkbox]").prop('checked', false);
11            $(".li_chk label").removeClass("click_on");
12        }
13    });
14    $(".li_chk label").click(function(){
15        $(this).toggleClass("click_on");
16
17        var is_all = 1;
18        $(".li_chk label").each(function(){
19            if(!$(this).hasClass("click_on")) {
20                is_all = 0;
21            }
22        });
23
24        if(is_all) {
25            $(".all_chk label").addClass("click_on");
26        } else {
27            $(".all_chk label").removeClass("click_on");
28        }
29    });
30    
31    // 배너모음
32    var bannerHandle = setInterval(function(){
33        bannerNext();
34    }, 4500);
35    function bannerPrev(){
36        if( $("#slide_banner .banner_list li").is(":animated") ) return false;
37        var movePos = $("#slide_banner .banner_list li").last().outerWidth(true);
38        $("#slide_banner .banner_list li").last().prependTo($("#slide_banner .banner_list")).css("margin-left",-movePos);
39        $("#slide_banner .banner_list li").first().animate({marginLeft:0}, function(){
40            $(this).removeAttr("style");
41        });
42        return false;
43    }
44    
45    function bannerNext(){
46        if( $("#slide_banner .banner_list li").is(":animated") ) return false;
47        var movePos = $("#slide_banner .banner_list li").first().outerWidth(true);
48        $("#slide_banner .banner_list li").first().animate({marginLeft:-movePos}, function(){
49            $(this).appendTo($("#slide_banner .banner_list")).removeAttr("style");;
50        });
51        return false;
52    }
53    
54    $("#slide_banner .banner_ctrl").on("click", ".prev", function(){
55        $("#slide_banner .banner_ctrl .pause").trigger("click");
56        bannerPrev();
57    });
58    
59    $("#slide_banner .banner_ctrl").on("click", ".next", function(){
60        $("#slide_banner .banner_ctrl .pause").trigger("click");
61        bannerNext();
62    });
63    
64    $("#slide_banner .banner_ctrl").on("click", ".auto_btn", function(){
65        if( $(this).hasClass("pause") ){
66            $(this).text("배너 자동슬라이드 시작").removeClass("pause").addClass("play");
67            clearInterval(bannerHandle);
68        }else if( $(this).hasClass("play") ){
69            $(this).text("배너 자동슬라이드 일시정지").removeClass("play").addClass("pause");
70            bannerHandle = setInterval(function(){
71                bannerNext();
72            }, 4500);
73        }
74        return false;
75    });
76
77    
78   //  let collaborating = new Swiper(".collaborating", {
79     // loop: true,
80    // autoplay: {
81      //  delay: 2500,
82    //     disableOnInteraction: false,
83     //},
84      //breakpoints: {
85        // 320: {
86          //  slidesPerView: 2,
87    //     },
88      //   767: {
89        //    slidesPerView: 4,
90    //     },
91    //     1080: {
92      //      slidesPerView: 5,
93    //     }
94    //  },
95    //  navigation: {
96    //     nextEl: ".swiper-button-next",
97    //     prevEl: ".swiper-button-prev",
98    //  },
99 // });
100    
101    
102    
103});
104
105
106
107

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.