PageSourceSearch

https://www.fm-sanin.co.jp/fmw/wp-content/themes/fmsanin/js/script.js

js fm-sanin.co.jp collected 2026-10-02 11:13:02 UTC 1,178 bytes, 57 lines download raw bytes

1/*
2  ページ別js
3*/
4
5
6// document.ready
7jQuery(document).ready(function($) {
8	$('.box-program>div:not(.top)>table').hover(
9		function(){
10			$(this).addClass( 'hover' );
11		},
12		function(){
13			$(this).removeClass( 'hover' );
14		}
15	);
16});
17
18
19//スクロールで出てくるUPボタン
20$(function() {
21	var topBtn = $('#page-top');	
22	topBtn.hide();
23	//スクロールが100に達したらボタン表示
24	$(window).scroll(function () {
25		if ($(this).scrollTop() > 900) {
26			topBtn.slideDown()
27		} else {
28			topBtn.slideUp();
29		}
30	});
31	//スクロールしてトップ
32    topBtn.click(function () {
33		$('body,html').animate({
34			scrollTop: 0
35			
36		}, 500);
37		return false;
38    });
39
40//先頭に#がついたリンクがクリックされたら
41 $('a[href^="#"]').click(function(){
42//スクロール速度 単位ミリ秒
43 var speed = 800;
44// アンカーの値取得
45 var href= $(this).attr("href");
46 var target = $(href == "#" || href == "" ? 'html' : href);
47 // 移動先を取得
48 var position = target.offset().top - 120; 
49 $("html, body").animate({scrollTop:position}, speed, "swing");
50 return false;
51 });
52});
53
54
55
56	//任意のタブにURLからリンクするための設定
57

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.