PageSourceSearch

https://www.ak-iam.com/wordpress/wp-content/themes/grbs11/js/smooth-scroll.js

js ak-iam.com collected 2026-10-02 00:27:59 UTC 814 bytes, 30 lines download raw bytes

1$(function(){
2	// #で始まるリンクをクリックした場合
3	$('a[href^="#"]').click(function() {
4	  // スクロールの速度
5	  let speed = 400;
6	  // スクロールタイプ
7	  let type = 'swing';
8	  // href属性の取得
9	  let href= $(this).attr("href");
10	  // 移動先の取得(hrefが#indexならトップ$(html)に、)
11	  let target = $(href == "#index" ? 'html' : href);
12	  // 移動先のポジション取得
13	  let position = target.offset().top;
14	  // animateでスムーススクロール
15	  $('body,html').animate({scrollTop:position}, speed, type);
16	  return false;
17	});
18});
19
20
21$(function(){
22	var s = $('#page_top');
23	$(window).scroll(function () {
24	  if ( $(this).scrollTop() > 100 ) {
25		s.addClass('page_top_scroll');
26	  } else {
27		s.removeClass('page_top_scroll');
28	  }
29	});
30});

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.