PageSourceSearch

https://www.midwifemap.com/mysite/memana/wp-content/themes/midwifemap/assets/js/common.js

js midwifemap.com collected 2026-09-28 08:13:02 UTC 2,057 bytes, 78 lines download raw bytes

1$(function(){
2	$("#header .open").on("click",function(){
3		if($("body").hasClass("nav_sp")){
4			$("body").removeClass("nav_sp");
5		}else{
6			$("body").addClass("nav_sp");
7		}
8	});
9	
10	$('a[href^="#"]:not(.na)').click(function(){
11		var adjust = $("#header .meta").innerHeight();
12		var href = $(this).attr("href");
13		var target = $(href == "#" || href == "" ? 'html' : href);
14		$('body,html').animate({scrollTop:target.offset().top - adjust}, 400, 'swing');
15		return false;
16	});
17	
18	$(".page_upper a").click(function(){
19		$('body,html').animate({scrollTop:0}, 400, 'swing');
20		return false;
21	});
22	
23	$(window).on("load resize",function(){
24		$("#header").css("padding-bottom",$("#footer").innerHeight());
25	})
26	
27	$(window).on("load scroll resize",function(){
28		var wh = $(this).innerHeight();
29		var bh = $("body").innerHeight();
30		var hh = $("#header").innerHeight();
31		var wt = $(this).scrollTop();
32		
33		if(hh > wh){
34			$("#header").css("top", -(hh - wh) * wt / (bh - wh));
35		}else{
36			$("#header").css("top", "");
37		}
38		
39		var mh = $("#header .meta").innerHeight();
40		if(mh < wt){
41			$("#header .meta").addClass("on")
42		}else{
43			$("#header .meta").removeClass("on")
44		}
45		
46		var st = wt + wh * 1 / 1;
47		var num = 0;
48		$(".set").each(function(){
49			var elm = $(this);
50			if(st > elm.offset().top){
51				setTimeout(function(){ elm.addClass("on"); },num * 100);
52				num++;
53			}
54		});
55	});
56	if(location.hash != ""){
57		$('body,html').animate({scrollTop:0}, 0, 'swing');
58	}
59	
60	/*
61	$("img").each(function(){
62		var img = $(this).attr("src");
63		if(img.indexOf('midwifemap.com') != -1){
64			alert("流しこみに旧サーバーの画像がURLの状態で貼り付けられています。\n一度ダウンロードしてWPにアップロードして掲載しなおしてください。\n"+$(this).attr("src"))
65		}
66	})
67	*/
68});
69
70$(window).on('load', function(){
71	if(location.hash != ""){
72		var adjust = $("#header .meta").innerHeight();
73		if($(window).width() >= 768){
74			
75		}
76		$('body,html').animate({scrollTop:$(location.hash).offset().top - adjust}, 400, 'swing');
77	}
78});

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.