PageSourceSearch

https://setagaya-hifuka.jp/js/script.js

js setagaya-hifuka.jp collected 2026-09-28 12:53:16 UTC 3,423 bytes, 111 lines download raw bytes

1//==========================================================================================
2//ロールオーバー
3//ロールオーバーさせたい画像にrolloverクラスをつけて使用
4//==========================================================================================
5
6$(function(){
7  $("img.rollover").mouseover(function(){
8  $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
9  }).mouseout(function(){
10  $(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
11  }).each(function(){
12  $("").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
13  });
14});
15
16//==========================================================================================
17//コピーライト
18//==========================================================================================
19var today = new Date();
20var nyr = today.getFullYear(); 
21
22function get_yearc(y_def) {
23	var d_now = new Date();
24	var y_now = d_now.getFullYear();
25	var str = y_def;
26	if(y_def != y_now) str += "- " + y_now;
27	return str;
28}
29
30//==========================================================================================
31//スムーススクロールの処理
32//==========================================================================================
33$(function(){
34
35  //スムーススクロールの処理
36  $(".smoothScrolls a").click(function(e) {
37    e.preventDefault();
38    var tt = $($(this).attr("href")).offset().top;
39    $('html, body').animate({scrollTop:tt}, 300);
40  });
41  
42})
43
44//==========================================================================================
45//プルダウン処理
46//==========================================================================================
47$(function () {
48
49	var ua = navigator.userAgent;
50	if (ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0) {
51		// スマートフォン用コード
52		$(function(){
53			$(".drop_nav dd").hide();
54			$(".drop_nav dt").on("click", function() {
55				$(this).next().slideToggle("normal");
56			});
57		});
58	} else if (ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0) {
59		// タブレット用コード
60		$(function(){
61			$(".drop_nav dd").hide();
62			$(".drop_nav dt").on("click", function() {
63				$(this).next().slideToggle("normal");
64			});
65		});
66	} else {
67		// PC用コード
68		$(function(){
69			$(".drop_nav dd").hide();
70			$(".drop_nav").hover(function(){
71				$("dd:not(:animated)",this).slideDown("normal");
72			},
73			function(){
74				$("dd",this).slideUp("normal");
75			});
76		});
77	}
78})
79
80
81
82//==========================================================================================
83//アコーディオン
84//==========================================================================================
85$(function () {
86  // 親メニュー処理
87  $('div').click(function() {
88    // メニュー表示/非表示
89    $(this).next('ul').slideToggle('fast');
90  });
91
92  // 子メニュー処理
93  $('li').click(function(e) {
94    // メニュー表示/非表示
95    $(this).children('ul').slideToggle('fast');
96    e.stopPropagation();
97  });
98});
99
100
101
102  $(function () {
103	let h = 0;
104	$(".match tr").each(function(){
105	  if(h < $(this).outerHeight()){
106		h = $(this).outerHeight()
107	  };
108	});
109	$(".match tr").css("height", h + "px");
110	//console.log(h);
111  });

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.