PageSourceSearch

https://nozaki-naika.jp/js/pagetop.js

js nozaki-naika.jp collected 2026-10-06 08:10:07 UTC 1,583 bytes, 42 lines download raw bytes

1$(function(){
2	// ページ先頭から「設定した値」をスクロールダウンするとフッターメニューが出現
3	var footerMenu = $("#pagetop");
4	footerMenu.hide();
5	$(window).scroll(function(){
6		if($(this).scrollTop() > 100){
7			footerMenu.fadeIn();
8		}else{
9			footerMenu.fadeOut();
10		}
11	});
12
13	// 先頭へ戻る(スルスルっとアニメーション効果をもって) 
14	var linkToTop = $("#linkpagetop");
15	linkToTop.click(function(){
16		$("body, html").animate({
17			scrollTop:0
18		}, 500);
19		return false;
20	});
21});
22function MM_swapImgRestore() { //v3.0
23  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
24}
25function MM_preloadImages() { //v3.0
26  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
27    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
28    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
29}
30
31function MM_findObj(n, d) { //v4.01
32  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
33    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
34  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
35  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
36  if(!x && d.getElementById) x=d.getElementById(n); return x;
37}
38
39function MM_swapImage() { //v3.0
40  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
41   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
42}

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.