PageSourceSearch

https://shimizufamilyclinic.com/js/utils.js?20261004154952

js shimizufamilyclinic.com collected 2026-10-04 15:49:58 UTC 1,844 bytes, 66 lines download raw bytes

1
2
3$(function(){
4
5
6	//page topに戻る処理
7	//=======================================================
8	if(!navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)){
9		//ここに書いた処理はスマホ・ipad閲覧時は無効となる
10		var headerHight = 0; //ヘッダの高さ
11		$('a[href^="#"]').click(function(){
12			var href= $(this).attr("href");
13			var target = $(href == "#" || href == "" ? 'html' : href);
14			var position = target.offset().top-headerHight; //ヘッダの高さ分位置をずらす
15		$("html, body").animate({scrollTop:position}, 550, "swing");
16			return false;
17		});
18	}
19
20	if(navigator.userAgent.match(/(iPhone|iPad|Android)/)){
21		//ここに書いた処理はスマホ・ipad閲覧時のみ有効となる
22		var sphead = 70; //ヘッダの高さ
23		$('a[href^="#"]').click(function(){
24			var href= $(this).attr("href");
25			var target = $(href == "#" || href == "" ? 'html' : href);
26			var position = target.offset().top-sphead; //ヘッダの高さ分位置をずらす
27		$("html, body").animate({scrollTop:position}, 550, "swing");
28			return false;
29		});
30	}
31
32
33
34	//page topに戻る処理
35	//=======================================================
36
37
38	var footer = $('#pagebottom');
39	$(window).scroll(function () {
40		if ($(this).scrollTop() > 100) {
41			footer.addClass('show');
42		} else {
43			footer.removeClass('show');
44		}
45	});
46
47
48
49
50
51	//acodion
52	//=======================================================
53	$(".js-aco_btn").click(function(){
54		$(this).next(".js-aco_body").slideToggle();
55		$(this).toggleClass("active");
56	});
57
58	//index お知らせ 1番目の項目初期表示
59	//=======================================================
60	//$(".news dt:first-of-type").addClass('active');
61	//$(".news dd:first-of-type").css('display','block');
62
63
64
65
66});

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.