PageSourceSearch

https://tcb-agaskin.com/wp-content/themes/keni8-child/js/jquery.scroll.js

js tcb-agaskin.com collected 2026-10-05 05:39:51 UTC 1,329 bytes, 50 lines download raw bytes

1// anchor in page
2jQuery(function(){
3    var windowWidth = $(window).width();
4    var headerHight = 200; // ヘッダー等の高さ分の数値を入れる
5    jQuery('a[href^=#]').click(function() {
6    var speed = 1000;
7    var href= jQuery(this).attr("href");
8    var target = jQuery(href == "#" || href == "" ? 'html' : href);
9    var position = target.offset().top-headerHight;
10    jQuery('body,html').animate({scrollTop:position}, speed, 'swing');
11    return false;
12   });
13});
14
15
16
17$(window).on('load', function(){
18    var windowWidth = $(window).width();
19    //var headerHight = 200; // ヘッダー等の高さ分の数値を入れる
20    var url = $(location).attr('href');
21      if(url.indexOf("?id=") != -1){
22       var speed = 1000;
23       var id = url.split("?id=");
24       var $target = $('#' + id[id.length - 1]);
25        if($target.length){
26         var pos = $target.offset().top-headerHeight;
27         $("html, body").animate({scrollTop:pos}, speed, "swing");
28        }
29      }
30  });
31
32
33// anchor top page #
34$(window).bind('load',function(){
35	"use strict";
36 var hash = location.hash;
37 if(hash){
38	  var p1 = $(hash).offset();
39	if($(window).width() > 640){
40					$('html,body').animate({ scrollTop: p1.top - 250}, 400);
41				}
42				else {
43					$('html,body').animate({ scrollTop: p1.top - 150}, 400);
44				}
45	}
46
47});
48
49
50

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.