PageSourceSearch

https://corp.marv.jp/common/js/common.js

js marv.jp collected 2026-09-24 08:37:40 UTC 6,836 bytes, 197 lines download raw bytes

1(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.css(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
2
3
4
5
6$(function(){
7
8
9
10//まずはユーザーエージェント確認
11var _ua = (function(u){
12  return {
13    Tablet:(u.indexOf("windows") != -1 && u.indexOf("touch") != -1)
14    || u.indexOf("ipad") != -1
15    || (u.indexOf("android") != -1 && u.indexOf("mobile") == -1)
16    || (u.indexOf("firefox") != -1 && u.indexOf("tablet") != -1)
17    || u.indexOf("kindle") != -1
18    || u.indexOf("silk") != -1
19    || u.indexOf("playbook") != -1,
20    Mobile:(u.indexOf("windows") != -1 && u.indexOf("phone") != -1)
21    || u.indexOf("iphone") != -1
22    || u.indexOf("ipod") != -1
23    || (u.indexOf("android") != -1 && u.indexOf("mobile") != -1)
24    || (u.indexOf("firefox") != -1 && u.indexOf("mobile") != -1)
25    || u.indexOf("blackberry") != -1
26  }
27})(window.navigator.userAgent.toLowerCase());
28 
29//PC以外なら
30if(_ua.Tablet || _ua.Mobile){ 
31        $(".menu ul li , .mainSide li").on('mouseover',function(){
32          window.location=$(this).find("a").attr("href");
33        });
34}
35
36
37
38//ページトップのアニメーション
39var topBtn = $('#pageTop');
40topBtn.hide();
41$(window).scroll(function () {
42	if ($(this).scrollTop() > 400) {
43		topBtn.fadeIn();
44	} else {
45		topBtn.fadeOut();
46	}
47});
48
49
50
51
52
53var windowWidth = window.innerWidth;
54	//var _headTopList  = new Array();
55
56if (windowWidth < 767){
57	$('.headerTop li:not(#srchBox,.fontSizeBtn)').each(function(key,val){
58
59	if(key == 0){
60		//$('.menu ul').prepend('<li>' + $(this).html() + '</li>');
61		//$('.menu ul').append('<li>' + $(this).html() + '</li>');
62	}/*
63else{
64		$('.menu ul').append('<li>' + $(this).html() + '</li>');
65	}
66*/
67if($(this).text() != "HOME"){
68	$('.menu ul').append('<li>' + $(this).html() + '</li>');
69}
70
71		
72	});
73		$('.menu').append('<div class="toggleMenuSearch">' + $('li#srchBox').html() + '</div>');
74}
75
76
77
78
79
80	windowWidth = window.innerWidth;
81	showSubMenu();
82	
83	function  showSubMenu(){
84		$('.menu  >  ul  > li >  a').on({'mouseenter':function(){
85
86	$('.activeSubMenu').stop().remove();
87
88		var index = $('.menu  >  ul  > li >  a').index(this);
89			//存在確認
90			if( $(this).parent().find('.subMegaMenu')[0]){
91			//var _subMemu = $('.subMegaMenu').eq(index).html();
92			var _subMemu = $(this).parent().find('.subMegaMenu').html();
93				//$('.megaWrap').append('<div class="activeSubMenu"><div class="container">'+ _subMemu +'</div></div>');
94				$('.megaWrap').append('<div class="activeSubMenu"><div class="container">'+ _subMemu +'</div></div>');
95							$('.megaWrap').css({ 'min-height':$('.activeSubMenu').innerHeight() });
96							$('.activeSubMenu').hide().slideDown(500);
97
98		}else{
99			$('.activeSubMenu').slideUp(200, function() { $(this).remove(); } );
100		}
101		//存在確認
102
103					},'mouseleave':function(){
104				}
105			});
106
107
108
109
110	//ヘッダーから外れたときの処理
111					$('.header').mouseleave(function(){
112						$('.activeSubMenu').slideUp(200, function() { $(this).remove();$('.megaWrap').css({'min-height':0}); } );
113					});
114				intervalTIme = 300;
115				sethover = setTimeout(function(){},intervalTIme);
116		
117				$('.megaWrap').on('mouseleave' ,'.activeSubMenu' ,function(){
118						sethover = setTimeout(function(){
119						$('.activeSubMenu').slideUp(200, function() { $(this).remove(); } );
120					},intervalTIme);
121					$('.megaWrap').css({'min-height':0});
122				});
123					$('.megaWrap').on('mouseenter' ,'.activeSubMenu' ,function(){
124					clearTimeout(sethover);
125				});
126
127};
128	
129$('.spMenu a').on('click',function(){
130	$('.menu').slideToggle();
131});
132
133
134
135
136
137
138//if (windowWidth < 767){
139	setTimeout(function(){
140jQuery('.mailSender iframe').contents().find('p.header').css({
141	'width':'100%',
142	'background':'#000'
143});
144//console.log('add');
145//}
146}, 2000);
147
148});
149
150
151
152
153
154/*
155  (function() {
156    var cx = '015102030799952954481:nwlkzvhptyw';
157    var gcse = document.createElement('script');
158    gcse.type = 'text/javascript';
159    gcse.async = true;
160    gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
161    var s = document.getElementsByTagName('script')[0];
162    s.parentNode.insertBefore(gcse, s);
163  })();
164  
165  
166  
167*/
168  
169  
170  
171  
172  
173  $(function() {
174	var topBtn = $('#pageTopBtn');
175	topBtn.hide();
176
177	$(window).scroll(function () {
178if($('.footer').position().top <= $('#pageTopBtn').offset().top) {
179	$('#pageTopBtn svg path').css({'fill' : '#FFF'});
180}else{
181	$('#pageTopBtn svg path').css({'fill' : '#666'});
182}
183		console.log();
184		if ($(this).scrollTop() > 200) {
185			topBtn.fadeIn();
186		} else {
187			topBtn.fadeOut();
188		}
189	});
190	//スクロールしてトップ
191    topBtn.click(function () {
192		$('body,html').animate({
193			scrollTop: 0
194		}, 500);
195		return false;
196    });
197});

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.