PageSourceSearch

http://nakanopainters.co.jp/wp/wp-content/themes/nakano/js/jquery.scroll.js

js nakanopainters.co.jp collected 2026-10-07 13:40:47 UTC 812 bytes, 47 lines download raw bytes

1// anchor in page
2$(window).bind('load resize',function(){
3	"use strict";
4	$(function(){
5		$('a[href^="#"]').click(function(){
6			$('.btn_close_menu').trigger('click');
7			
8			if ( $( $(this).attr('href') ).length ) {
9				var p = $( $(this).attr('href') ).offset();
10				if($(window).width() > 640){
11					$('html,body').animate({ scrollTop: p.top -135}, 400);
12				}
13				else {
14					$('html,body').animate({ scrollTop: p.top -65}, 400);
15				}
16			}
17			return false;
18		});
19	});
20});
21
22// anchor top page #
23$(window).bind('load',function(){
24	"use strict";
25 var hash = location.hash;
26 if(hash){
27	  var p1 = $(hash).offset();
28	if($(window).width() > 640){
29		
30					$('html,body').animate({ scrollTop: p1.top -135}, 400);
31				}
32				else {
33					$('html,body').animate({ scrollTop: p1.top -60}, 400);
34				}
35	}
36
37});
38
39
40
41
42
43
44
45
46
47

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.