PageSourceSearch

http://nerima-gascenter.net/wp/wp-content/themes/micata/js/commons.js?ver=6.4.12

js nerima-gascenter.net collected 2026-10-05 11:20:25 UTC 1,645 bytes, 52 lines download raw bytes

1$(function() {
2    $(window).scroll(function () {
3        var s = $(this).scrollTop();
4        var m = 100;
5        if(s > m) {
6            $("#header-info").slideDown('fast');
7        } else if(s < m) {
8            $("#header-info").slideUp('normal');
9        }
10    });
11});
12
13//スムーズスクロール
14jQuery(function(){
15   // #で始まるアンカーをクリックした場合に処理
16   jQuery('a[href^=#]').click(function() {
17	  // スクロールの速度
18	  var speed = 400; // ミリ秒
19	  // アンカーの値取得
20	  var href= jQuery(this).attr("href");
21	  // 移動先を取得
22	  var target = jQuery(href == "#" || href == "" ? 'html' : href);
23	  // 移動先を数値で取得
24	  var position = target.offset().top - 90;
25	  // スムーススクロール
26	  jQuery('body,html').animate({scrollTop:position}, speed, 'swing');
27	  return false;
28   });
29});
30
31//タブメニュー表示
32$(function() {
33	//クリックしたときのファンクションをまとめて指定
34	$('.tab li').click(function() {
35
36		//.index()を使いクリックされたタブが何番目かを調べ、
37		//indexという変数に代入します。
38		var index = $('.tab li').index(this);
39
40		//コンテンツを一度すべて非表示にし、
41		$('.tab-content li').css('display','none');
42
43		//クリックされたタブと同じ順番のコンテンツを表示します。
44		$('.tab-content li').eq(index).css('display','block');
45
46		//一度タブについているクラスselectを消し、
47		$('.tab li').removeClass('select');
48
49		//クリックされたタブのみにクラスselectをつけます。
50		$(this).addClass('select')
51	});
52});

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.