PageSourceSearch

https://www.yamanashi.ac.jp/wp-content/themes/ac-yamanashi-ja-pc/js/main.js?ver=1710747146

js yamanashi.ac.jp collected 2026-10-01 10:17:53 UTC 3,044 bytes, 104 lines download raw bytes

1
2function show_hide_row(row)
3{
4    jQuery("#"+row).toggle();
5}
6
7(function($){
8
9    $(function() {
10        var topBtn = $('#page-top');    
11        topBtn.hide();
12        //スクロールが100に達したらボタン表示
13        $(window).scroll(function () {
14            if ($(this).scrollTop() > 800) {
15                topBtn.fadeIn();
16            } else {
17                topBtn.fadeOut();
18            }
19        });
20        //スクロールしてトップ
21        topBtn.click(function () {
22            $('body,html').animate({
23                scrollTop: 0
24            }, 500);
25            return false;
26        });
27    });
28
29    $(function(){
30        $(".accordion p").click(function(){
31            $(this).next("ul").slideToggle();
32            $(this).children("span").toggleClass("open");
33        }); 
34        
35        $(".close").click(function(){
36            $("ul li ul li").slideUp();
37        });
38        
39        $(".accordion dt").click(function(){
40            $(this).next("dd").slideToggle();
41            $(this).next("dd").siblings("dd").slideUp();
42            $(this).toggleClass("open");    
43            $(this).siblings("dt").removeClass("open");
44        });
45    });
46
47    $(document).ready(function(){
48        $('.slide_selector').slick({
49          speed: 600,
50          slidesToShow: 4, //スライドが見える数
51          slidesToScroll: 1, //スライドがスクロールする数
52          infinite: true, //無限スクロール
53          autoplay: true,
54          autoplaySpeed: 5000,
55          swipeToSlide: true,
56    
57         });
58    });
59
60    $(document).ready(function(){
61        $('.slide_selector2').slick({
62          speed: 600,
63          slidesToShow: 1, //スライドが見える数
64          slidesToScroll: 1, //スライドがスクロールする数
65          infinite: true, //無限スクロール
66          autoplay: true,
67          autoplaySpeed: 5000,
68          swipeToSlide: true,
69    
70         });
71    });
72
73    $('.textOverflowTest3').each(function() {
74        var $target = $(this);
75     
76        // オリジナルの文章を取得する
77        var html = $target.html();
78     
79        // 対象の要素を、高さにautoを指定し非表示で複製する
80        var $clone = $target.clone();
81        $clone
82          .css({
83            display: 'none',
84            position : 'absolute',
85            overflow : 'visible'
86          })
87          .width($target.width())
88          .height('auto');
89     
90        // DOMを一旦追加
91        $target.after($clone);
92     
93        // 指定した高さになるまで、1文字ずつ消去していく
94        while((html.length > 0) && ($clone.height() > $target.height())) {
95          html = html.substr(0, html.length - 1);
96          $clone.html(html + '...');
97        }
98     
99        // 文章を入れ替えて、複製した要素を削除する
100        $target.html($clone.html());
101        $clone.remove();
102    });
103
104})(jQuery)

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.