PageSourceSearch

https://co-work-ing.com/js/page-top.js

js co-work-ing.com collected 2026-10-08 20:42:22 UTC 811 bytes, 29 lines download raw bytes

1// トップへ戻るボタン
2
3$(function() {
4    var showFlag = false;
5    var topBtn = $('#page-top');    
6    topBtn.css('bottom', '-100px');
7    var showFlag = false;
8    //スクロールが100に達したらボタン表示
9    $(window).scroll(function () {
10        if ($(this).scrollTop() > 100) {
11            if (showFlag == false) {
12                showFlag = true;
13                topBtn.stop().animate({'bottom' : '20px'}, 200); 
14            }
15        } else {
16            if (showFlag) {
17                showFlag = false;
18                topBtn.stop().animate({'bottom' : '-100px'}, 200); 
19            }
20        }
21    });
22    //スクロールしてトップ
23    topBtn.click(function () {
24        $('body,html').animate({
25            scrollTop: 0
26        }, 500);
27        return false;
28    });
29});

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.