PageSourceSearch

https://www.nms.ac.jp/library/houjin/js/common.js

js nms.ac.jp collected 2026-10-01 11:27:35 UTC 2,195 bytes, 72 lines download raw bytes

1$(function(){
2	var ua = navigator.userAgent;
3	//スマホだったら
4	if((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)){
5	  $('head').prepend('<meta name="viewport" content="width=device-width,initial-scale=1">');
6	} else { //それ以外(PC・タブレット)
7	  $('head').prepend('<meta name="viewport" content="width=960">');
8	}
9
10	$('#g-nav').meanmenu({
11		meanMenuClose: "<span /><span />", // クローズボタン
12		meanMenuCloseSize: "20px", // クローズボタンのフォントサイズ
13		meanMenuOpen: "<span /><span /><span />", // 通常ボタン
14		meanRevealPosition: "right", // 表示位置
15		meanScreenWidth: "600", // 表示させるウィンドウサイズ(ブレイクポイント)
16	});
17
18	//スクロール
19	$('a[href^=#]').click(function() {
20	var speed = 400;
21	var href= $(this).attr("href");
22	var target = $(href == "#" || href == "" ? 'html' : href);
23	var position = target.offset().top;
24	$('body,html').animate({scrollTop:position}, speed, 'swing');
25	return false;
26	});
27
28	//電話番号
29	var ua = navigator.userAgent;
30  if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0){
31    $('.tel-link').each(function(){
32      var str = $(this).text();
33      $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>'));
34    });
35  }
36
37	//画像切り替え
38	var wid = $(window).width();
39	if( wid < 600 ){
40		$('.switch').each(function(){
41			$(this).attr("src",$(this).attr("src").replace('_pc', '_sp'));
42		});
43	}
44
45	function accordion() {
46    $(this).toggleClass("active").next().slideToggle(300);
47  }
48  $(".bottom-acc .toggle").click(accordion);
49
50
51	var windowWidth = $(window).width();
52	var windowSm = 600;
53	if (windowWidth <= windowSm) {
54	} else {
55		var contents = $("#hover-click > .head > .box");
56		$("#hover-click > .head span").click(function(){
57		$(contents).toggle();
58		return false;
59		});
60		$("#hover-click > .head").mouseover(function(){
61			$(contents).show();
62		})
63		$("#hover-click > .head").mouseout(function(){
64			$(contents).hide();
65		});
66	}
67
68});
69
70$(function(){
71	$('.matchHeight').matchHeight();
72});

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.