PageSourceSearch

https://houjou.or.jp/js/smooth.scroll.js

js houjou.or.jp collected 2026-10-02 13:29:34 UTC 607 bytes, 13 lines download raw bytes

1$(function(){
2	// #で始まるアンカーをクリックした場合に処理
3	//ただし、non-scrollのクラスが付いた要素は除外(mmenuが動かなくなるため)
4	$('a[href^=#]:not(.non-scroll)').click(function() {
5		var speed = 600; // スクロールの速度(ミリ秒)
6		var href= $(this).attr("href");// アンカーの値取得
7		var target = $(href == "#" || href == "" ? 'html' : href);// 移動先を取得
8		var position = target.offset().top;// 移動先を数値で取得
9	 $('body,html').animate({scrollTop:position}, speed, 'swing');
10	 return false;
11	});
12	
13});

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.