PageSourceSearch

https://www.km-group.co.jp/js/km.js

js km-group.co.jp collected 2026-10-01 12:33:29 UTC 2,569 bytes, 113 lines download raw bytes

1$(function() {
2  var ua = {
3    iPad: navigator.userAgent.indexOf('iPad') != -1
4  }
5  if(ua.iPad){
6    document.write('<meta name="viewport" content="width=device-width, initial-scale=0.65, maximum-scale=1, user-scalable=0" />\n');
7  }else{
8  	document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">\n');	
9  }
10}());
11
12
13
14
15$(window).load(function () {
16	/* リンクコンテンツのマウスオーバー時の透過処理 */
17	// $(".alpha, a").not(".anchorLink li a").hover(function(){
18  $(".alpha, a").not(".anchorLink li a, .business.businessList .listWrap a").hover(function(){
19		$(this).fadeTo("fast", 0.7);
20  },function(){
21		$(this).fadeTo("fast", 1.0);
22  });
23});
24
25
26
27
28$(window).load(function () {
29    if (!isPhone())
30        return;
31    $('span[data-action=call]').each(function() {
32        var $ele = $(this);
33        $ele.wrap('<a href="TEL : ' + $ele.data('tel') + '"></a>');
34    });
35});
36
37function isPhone() {
38    return (navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('Android') > 0);
39}
40
41/* ヘッダースクロール */
42$(window).load(function () {
43 var header = $('#headerPc')
44	header_height = header.height();
45  $(window).scroll(function () {
46   if($(window).scrollTop() > 480) {
47    header.addClass('bgOn');
48    header.removeClass('bgOff');
49   }else {
50    header.removeClass('bgOn');
51    header.addClass('bgOff');
52   }
53  });
54});
55
56
57// PC gNav pulldown
58$(function(){
59  $('#headerPc .gNav li').hover(function(){
60      $(".gNavChild:not()", this).fadeIn(250);
61  }, function(){
62      $(".gNavChild",this).fadeOut(120);
63  });
64});
65
66
67
68
69/* スマホメニュー */
70$(window).load(function () {
71  $('#headerSp .gNav').meanmenu();
72  $(".uNav dt.child").on("click", function() {
73		$(this).next().slideToggle();
74	});
75});
76
77
78
79/* ディレクトリ名を判定して下層グローバルナビの現在地をハイライト */
80$(document).ready(function() {
81	if(location.pathname != "/") {
82		$('#headerPc a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('on');
83	}
84	
85	
86	$(function() {
87			var url = window.location;
88			var path = url.href.split('/');
89			var file_name = path.pop();
90			$('.subNav li').addClass(file_name);
91		});
92		
93		//下層サブナビ	
94		var path = location.href.split('/');
95		var pages = path.pop();
96		$('a[href="'+pages+'"]').parent().addClass('on');
97
98	
99	//Androidの場合body.android
100	if(/Android/.test(window.navigator.userAgent)){
101		document.getElementsByTagName("body")[0].setAttribute("class","android");
102	}
103	
104});
105
106
107
108
109
110
111
112
113

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.