PageSourceSearch

https://arts-center.gr.jp/wp-content/themes/nl-jin/javascript.js?ver=6.9.4

js arts-center.gr.jp collected 2026-10-04 16:34:41 UTC 5,643 bytes, 192 lines download raw bytes

1//開閉
2
3jQuery(function ($) {
4    $(function () {
5        $(".open2").click(function () {
6            $(this).next().slideToggle();
7        });
8        $(".open2").click(function () {
9            $(this).toggleClass("close");
10        });
11    });
12});
13
14
15////mokuji
16
17jQuery(function ($) {
18    $(function () {
19        if ($("#mokuji").length == 0) {
20            $(".overlay_btn_close").hide();
21            $(".overlay_btn_open").hide();
22            return;
23        }
24        $(window).scroll(function () {
25            viewcontrollOverlayBtn();
26        });
27        $(".overlay_btn_open").click(function () {
28            enableOverlay();
29        });
30        $(".overlay_btn_close").click(function () {
31            disableOverlay();
32        });
33        $(".overlay").click(function (event) {
34            if (!$(event.target).closest('.overlay_inner').length) {
35                disableOverlay();
36            }
37        });
38        viewcontrollOverlayBtn();
39        disableOverlay();
40    });
41
42    function viewcontrollOverlayBtn() {
43        if ($(this).scrollTop() > 100) {
44            $(".overlay_btn").fadeIn();
45        } else {
46            $(".overlay_btn").fadeOut();
47        }
48    }
49    function enableOverlay() {
50        //if ($("#overlay_head").html() == "") {
51        //    $("#overlay_head").html($(".header__content").clone());
52        //}
53        if ($("#overlay_pan").html() == "") {
54            $("#overlay_pan").html($(".breadcrumbs").clone());
55        }
56        if ($("#overlay_mokuji").html() == "") {
57            $("#overlay_mokuji").html($("#mokuji").clone());
58            $("#overlay_mokuji #mokuji").attr("id", "mokuji2");
59            $("#mokuji2").removeClass("mokujibox");
60            $("#mokuji2 > div").removeClass("panel");
61            $("#mokuji2").addClass("overlay_mokuji");
62            $("#mokuji2 .panel-title").hide();
63            $("#overlay_mokuji a").click(function () {
64                disableOverlay();
65            });
66            $("#overlay_mokuji #collapse").attr("id", "collapse2");
67            $("#collapse2").addClass("in");
68            $("#collapse2").css('height', '');
69        }
70        $(".overlay_btn_open").hide();
71        $(".overlay_btn_close").show();
72        $(".overlay").fadeIn(500);
73    }
74    function disableOverlay() {
75        $(".overlay_btn_close").hide();
76        $(".overlay_btn_open").show();
77        $(".overlay").fadeOut(500, function () {
78            //$("#overlay_head").html("");
79            $("#overlay_pan").html("");
80            $("#overlay_mokuji").html("");
81        });
82    }
83});
84
85//tuibibanner
86/*var jsbs_banner_close = true;
87$(function() {
88    $(document).scroll(function(event) {
89        if (jsbs_banner_close == true) {
90            return;
91        }
92        var pageBottom = $(document).innerHeight() - $(window).innerHeight();
93        var percent = $(document).scrollTop() / pageBottom;
94        if(percent >= 0.4) {
95            $("#ad_area").show();
96        }
97    });
98    $(".ad_close").on("click", function() {
99        $("#ad_area").hide();
100        jsbs_banner_close = true;
101    });
102});*/
103
104
105//menu
106jQuery(function ($) {
107    $("#toggle").click(function () {
108        $("#menu").slideToggle();
109        return false;
110    });
111    $(window).resize(function () {
112        var win = $(window).width();
113        var p = 480;
114        if (win > p) {
115            $("#menu").show();
116        } else {
117            $("#menu").hide();
118        }
119    });
120});
121
122//imgsppc
123
124jQuery(function ($) {
125    var wid = $(window).width();
126    if (wid < 480) {
127        $('.imgChange').each(function () {
128            $(this).attr("src", $(this).attr("src").replace('_pc', '_sp'));
129        });
130    }
131});
132
133//pagetop
134
135// jQuery(function($){
136//   var pagetop = $('.pagetop');
137//     $(window).scroll(function () {
138//        if ($(this).scrollTop() > 100) {
139//             pagetop.fadeIn();
140//        } else {
141//             pagetop.fadeOut();
142//             }
143//        });
144//        pagetop.click(function () {
145//            $('body, html').animate({ scrollTop: 0 }, 500);
146//               return false;
147//    });
148// });
149
150//openclose
151/*jQuery(function($){
152    $(".open").click(function(){
153        $(this).next().slideToggle();
154    });
155});
156*/
157
158jQuery(function ($) {
159    $(document).ready(function () {
160        $('.tab-btn').on('click', function (event) {
161            var tab_table = $(this).data('table');
162            var tab_name = $(this).data('tab');
163            $('.tab-btn[data-table=' + tab_table + ']').removeClass('active');
164            $(this).addClass('active');
165            $('.' + tab_table + ' th.tab').each(function (index, element) {
166                $('.' + tab_table + ' th:nth-child(' + (element.cellIndex + 1) + ')').hide();
167                $('.' + tab_table + ' td:nth-child(' + (element.cellIndex + 1) + ')').hide();
168            });
169            $('.' + tab_table + ' th.' + tab_name).each(function (index, element) {
170                $('.' + tab_table + ' th:nth-child(' + (element.cellIndex + 1) + ')').show();
171                $('.' + tab_table + ' td:nth-child(' + (element.cellIndex + 1) + ')').show();
172            });
173        });
174        $('.tab-default').click();
175    });
176});
177
178jQuery(function ($) {
179    $(function () {
180        $('#mokuji a[data-toggle="collapse"]').click(function (event) {
181            $("#collapse").slideToggle();
182
183            var _switch = $(this).find('span.fa');
184            if (_switch.hasClass('on') == true) {
185                _switch.removeClass('on').addClass('off');
186            } else {
187                _switch.removeClass('off').addClass('on');
188            }
189        });
190        $('#mokuji a[data-toggle="collapse"]').attr("href", "javascript:;");
191    });
192});

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.