PageSourceSearch

https://www.zitto.co.jp/wp-content/themes/zitto/js/scroll.js

js zitto.co.jp collected 2026-10-02 15:23:19 UTC 1,234 bytes, 51 lines download raw bytes

1/* 下にスクロール */
2
3
4$(function(){
5    $("a[href^=#]").click(function(){
6    $("html,body").animate({ scrollTop: $($(this).attr("href")).offset().top }, 2000 ,"swing");
7    return false;
8    })
9});
10
11
12
13/* 追尾スクロール(上にスクロール) */
14
15
16$(document).ready(function(){
17 
18    $(".gotop").hide();
19 
20    $(window).on("scroll", function() {
21 
22        if ($(this).scrollTop() > 200) {
23         $('.gotop').slideDown("slow");
24        } else {
25            $('.gotop').slideUp("slow");
26        }
27       
28        scrollHeight = $(document).height(); 
29        scrollPosition = $(window).height() + $(window).scrollTop(); 
30        footHeight = $("#footer").innerHeight();
31                 
32        if ( scrollHeight - scrollPosition  <= footHeight ) {
33            $(".gotop").css({
34                "position":"absolute",
35                "bottom": footHeight
36            });
37        } else {
38            $(".gotop").css({
39                "position":"fixed",
40                "bottom": "0px"
41            });
42        }
43    });
44 
45    $('.gotop a').click(function () {
46        $('body,html').animate({
47        scrollTop: 0
48        }, 2000);
49        return false;
50     });
51});

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.