PageSourceSearch

https://diatomology.org/about/materials/common.js

js diatomology.org collected 2026-10-07 16:32:46 UTC 786 bytes, 21 lines download raw bytes

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

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.