PageSourceSearch

https://www.alteka.com/js/jquery.smoothScroll.js

js alteka.com collected 2026-10-08 23:39:14 UTC 641 bytes, 19 lines download raw bytes

1$(function(){
2   // #で始まるアンカーをクリックした場合に処理
3   $('a[href^=#]').click(function() {
4   	var headerH = $('header').height();
5   	if(!$(this).hasClass('noSmooth')){
6		  // スクロールの速度
7		  var speed = 1000; // ミリ秒
8		  // アンカーの値取得
9		  var href= $(this).attr("href");
10		  // 移動先を取得
11		  var target = $(href == "#" || href == "" ? 'html' : href);
12		  // 移動先を数値で取得
13      var position = target.offset().top;
14		  // スムーススクロール
15		  $('body,html').animate({scrollTop:position}, speed, 'easeOutCubic');
16		  return false;
17	  }
18   });
19});

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.