PageSourceSearch

https://seogu.go.kr/js/kor/content.js

js seogu.go.kr collected 2026-10-02 20:17:24 UTC 2,125 bytes, 67 lines download raw bytes

1// 텝메뉴 모바일변환
2$(document).ready(function () {
3    var $tabUl = $(".tab-ul.type2");
4    
5    if (!$(".respon_tab").find(".mobile_tab").length) {
6        var activeText = $tabUl.find("li.on span").text() || $tabUl.find("li.active span").text();
7        
8        $tabUl.wrap('<div class="respon_tab"></div>');
9        $tabUl.before('<button class="mobile_tab"><span>' + activeText + '</span></button>');
10    }
11
12    $(".mobile_tab").off('click').on('click', function () {
13        var $btn = $(this);
14        var $menu = $btn.next(".tab-ul.type2");
15        
16        $btn.toggleClass("on");
17        $menu.slideToggle(300);
18    });
19
20    // 3. 탭 클릭 시 닫기 (모바일에서만)
21    $(".tab-ul.type2 a").on('click', function () {
22        if ($(window).outerWidth() <= 540) { 
23            $(".mobile_tab").removeClass("on");
24            $(".tab-ul.type2").slideUp(300);
25            // 선택한 탭 이름으로 버튼 텍스트 변경
26            $(".mobile_tab span").text($(this).text());
27        }
28    });
29});
30// 텝메뉴 모바일변환 end
31
32// 경로당 sub06070607
33$(document).ready(function (e) {
34
35    var Senior_tab = $(".senior_citizen_list .list ul li a");
36
37    Senior_tab.click(function(e){
38        e.preventDefault();
39
40        var Tabpanel = $(this).attr('title');
41
42        Senior_tab.removeClass('on');
43        $(this).addClass('on');
44
45        $('.tabpanel').removeClass('on');
46        $('#tab-panel'+Tabpanel).toggleClass('on');
47    });
48
49});
50
51function Senior_Citizen(e) {
52    var url = $("#findItem option:selected").val();
53    $('.tabpanel').removeClass('on');
54    $(url).toggleClass('on'); //select된 값을 받아 페이지 이동
55
56}
57// 경로당 sub06070607 End
58
59// 공동주택 노후화시설물지원 지원단지현황 sub06120302
60$(document).ready(function () {
61    var SupportTab = $('.s06120302_support_complex .ui-tab_group .tab-ul li a');
62
63    SupportTab.click(function () {
64        $('.support_complex_main').addClass('on');
65    });
66});
67// 공동주택 노후화시설물지원 지원단지현황 sub06120302 End

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.