PageSourceSearch

https://s-store.co.jp/js/jquery.scrollshow.js

js s-store.co.jp collected 2026-10-02 17:10:27 UTC 876 bytes, 34 lines download raw bytes

1/* =========================================================*/
2// jquery.scrollshow.js / ver.1.0
3// Lisence : MIT License
4
5// Date: 2014-01-22
6// Author: CoolWebWindow
7// Mail: [email protected]
8// Web: http://www.coolwebwindow.com
9
10// Used jquery.js
11// http://jquery.com/
12/* =========================================================*/
13
14$.fn.scrollshow = function(config) {
15    // オプション
16    var o = $.extend({
17        position : 400 // 表示位置
18    }, config);
19
20    var $element = $(this);
21
22    // 要素の非表示
23    if ($(window).scrollTop() < o.position){
24        $element.hide();
25    }
26    // スクロールすると表示させる
27    $(window).scroll(function(){
28        if ($(this).scrollTop() >= o.position) {
29            $element.not(':animated').fadeIn();
30        } else {
31            $element.not(':animated').fadeOut();
32        }
33    });
34};

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.