PageSourceSearch

https://www.kenminkyosai.or.jp/shared_html/js/script.js

js kenminkyosai.or.jp collected 2026-09-24 11:12:24 UTC 6,346 bytes, 234 lines download raw bytes

1
2/*-----jquery.matchHeight-----*/
3$(function() {
4	$('.heightLine-group-table').matchHeight();
5	$('.heightLine-group1').matchHeight();
6	/*$('.heightLine-group-smttable').matchHeight(); これは無し*/
7	$('.heightLine-group-smt2').matchHeight();
8	$('.HeightLine-group3').matchHeight();
9	$('#header_area .menu_area ul,.search').matchHeight();
10	$('').matchHeight();
11	$('').matchHeight();
12});
13
14/*検索エリア*/
15/*$(function(){
16	$(".search_area").hide();
17	$(".menu_area .search").click(function(){
18	$(".search_area").slideToggle("200");
19	$(this).toggleClass("open");//追加部分
20	});
21});*/
22
23/*-----スムーズスクローラー-----*/
24/*$(function() {
25	
26$('a:empty').css('display', 'block');
27
28mh = $("#menu-wrap").height();
29$('a[href^=#], #page-top img').click(function() {
30	var target = $(this.hash);
31	var position = target.offset().top-mh;
32	$("html,body").animate({scrollTop:position}, 400, 'swing');
33	return false;
34});
35
36});*/
37
38
39/*スマホスライドメニュー*/
40/*$(function() {
41    $('.smt_btn').click(function(){
42        $('.slidemenu').toggle();
43        $('.overlay').fadeIn(100);
44 });
45    $('.overlay').click(function() {
46        $('.overlay').fadeOut(100);
47 });
48});*/
49
50/*スマホナビゲーションメニュー*/
51$(function(){
52	$(".slidemenu-content ul.menu, .slidemenu-content ul.menu_contract").hide();
53	$("div.plus").click(function(){
54		$("ul.menu, ul.menu_contract").slideUp();
55		$("div.plus").removeClass("open");
56		if($("+ul",this).css("display")=="none"){
57			$("+ul",this).slideDown();
58			$(this).addClass("open");
59		}
60	});
61	$("ul.menu li, ul.menu_contract").mouseover(function(){
62		$(this).addClass("rollover");
63	}).mouseout(function(){
64		$(this).removeClass("rollover");
65	});
66});
67/*スマホナビゲーションメニュー2*/
68$(function(){
69	$(".slidemenu-content ul.contract").hide();
70	$("li.headline").click(function(){
71		$(".slidemenu-content ul.contract").slideUp();
72		$("li.headline").removeClass("open");
73		if($("+ul",this).css("display")=="none"){
74			$("+ul",this).slideDown();
75			$(this).addClass("open");
76		}
77	});
78	$(".slidemenu-content ul.contract").mouseover(function(){
79		$(this).addClass("rollover");
80	}).mouseout(function(){
81		$(this).removeClass("rollover");
82	});
83});
84
85
86/*フェードイン*/
87$(function() {
88	$(window).scroll(function () {
89		var s = $(this).scrollTop();
90		var m = 115;
91		if(s > m) {
92			$("#nav").fadeIn('fast');
93		} else if(s < m) {
94			$("#nav").fadeOut('fast');
95		}
96	});
97});
98/*$(function() {
99    var topBtn = $('#nav');    
100    topBtn.hide();
101    //スクロールが100に達したらボタン表示
102    $(window).scroll(function () {
103        if ($(this).scrollTop() > 100) {
104            topBtn.fadeIn();
105        } else {
106            topBtn.fadeOut();
107        }
108    });
109});*/
110
111/*アコーディオン*/
112$(function(){
113  $(".accordion > .midashi").click(function(){
114	 $(this).next(".accordion > .box").slideToggle('fast');
115	 $(this).toggleClass('open');
116  });
117});
118
119$(function(){
120  $(".accordion > .midashi2").click(function(){
121	 $(this).next(".accordion > .box").slideToggle('fast');
122	 $(this).toggleClass('open');
123  });
124});
125
126/*サイドバー*/
127$(function(){
128	$("ul.second").hide();
129	$("li.first").click(function(){
130		$(this).next("ul.second").slideToggle('fast');
131		$(this).toggleClass('open');
132	});
133});
134
135
136/*スクロールページトップ*/
137$(function() {
138    var topBtn = $('#page-top');    
139    topBtn.hide();
140    //スクロールが100に達したらボタン表示
141    $(window).scroll(function () {
142        if ($(this).scrollTop() > 100) {
143            topBtn.fadeIn();
144        } else {
145            topBtn.fadeOut();
146        }
147    });
148    //スクロールしてトップ
149    topBtn.click(function () {
150        $('body,html').animate({
151            scrollTop: 0
152        }, 500);
153        return false;
154    });
155});
156
157/*画像hover*/
158$(function(){
159	$(".btnov").mouseover(function(){
160		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"));
161	}).mouseout(function(){
162		$(this).attr("src",$(this).attr("src").replace(/^(.+)_ov(\.[a-z]+)$/, "$1$2"));
163	}).each(function(){
164		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"));/*プリロードしています。(内部にimg作成)*/
165	});
166});
167
168$(function(){
169	$(".swap").mouseover(function(){
170		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"));
171	}).mouseout(function(){
172		$(this).attr("src",$(this).attr("src").replace(/^(.+)_over(\.[a-z]+)$/, "$1$2"));
173	}).each(function(){
174		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"));/*プリロードしています。(内部にimg作成)*/
175	});
176});
177
178$(function(){
179	$(".swap2").on("click",function(){
180		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"));
181	}).off("click",function(){
182		$(this).attr("src",$(this).attr("src").replace(/^(.+)_over(\.[a-z]+)$/, "$1$2"));
183	});
184});
185
186
187
188
189/*スマホの時だけtelリンク*/
190if (navigator.userAgent.match(/(iPhone|iPad|Android)/)) {
191  $(function() {
192    $('.tel-link').each(function() {
193      var str = $(this).html();
194      if ($(this).children().is('img')) {
195        $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>'));
196      } else {
197        $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>'));
198      }
199    });
200  });
201}
202/*$(function(){
203    var ua = navigator.userAgent;
204    if(ua.indexOf('iPhone') > 0 && ua.indexOf('iPod') == -1 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0 && ua.indexOf('SC-01C') == -1 && ua.indexOf('A1_07') == -1 ){
205        $('.tel-link img').each(function(){
206            var alt = $(this).attr('alt');
207            $(this).wrap($('<a>').attr('href', 'tel:' + alt.replace(/-/g, '')));
208        });
209    }
210});*/
211
212
213
214/*訪れたメニューにselect*/
215/*$(function(){
216	$('#header_area .menu_area ul li a').each(function(){
217		var $href = $(this).attr('href');
218		if(location.href.match($href)) {
219		$(this).addClass('selected');
220		} else {
221		$(this).removeClass('selected');
222		}
223	});
224})
225*/
226
227/*スマホメニュートリガー*/
228/*$(function(){
229	new mlPushMenu( document.getElementById( 'mp-menu' ), document.getElementById( 'trigger' ) );
230});
231
232$(function(){
233	new mlPushMenu( document.getElementById( 'mp-menu' ), document.getElementById( 'trigger2' ) );
234});*/

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.