PageSourceSearch

https://www.tlt.co.jp/tlt/corporate/common/js/common.js

js tlt.co.jp collected 2026-09-24 18:14:59 UTC 25,009 bytes, 927 lines download raw bytes

1//‹ŒcommonˆÚA
2$(function() {
3var ieVerChkNum = 9;
4var _ua = (function(){
5return {
6ltIE6:typeof window.addEventListener == "undefined" && typeof document.documentElement.style.maxHeight == "undefined",
7ltIE7:typeof window.addEventListener == "undefined" && typeof document.querySelectorAll == "undefined",
8ltIE8:typeof window.addEventListener == "undefined" && typeof document.getElementsByClassName == "undefined",
9ltIE9:document.uniqueID && !window.matchMedia,
10gtIE10:document.uniqueID && document.documentMode >= 10,
11Trident:document.uniqueID,
12Gecko:window.sidebar,
13Presto:window.opera,
14Blink:window.chrome,
15Webkit:!window.chrome && typeof document.webkitIsFullScreen != undefined,
16Touch:typeof document.ontouchstart != "undefined",
17Mobile:typeof window.orientation != "undefined"
18}
19})();
20if(_ua.ltIE6){
21	ieVerChkNum = 6;
22}else if(_ua.ltIE7){
23	ieVerChkNum = 7;
24}else if(_ua.ltIE8){
25	ieVerChkNum = 8;
26}
27
28if($.cookie("swScr") == 1){
29	$("head").append("<meta name='viewport' content='width=960, telephone=no'/>");
30}else{
31	$("head").append("<meta name='viewport' content='width=device-width, initial-scale=1.0, telephone=no'/>")	
32}
33
34if(_ua.Mobile == true){
35  $('#pcBtnWrapper').addClass("isMobile");
36}
37if(_ua.Mobile != true){
38  $('.telLink').css("display","none");
39}
40if($.cookie("swScr") == 1){
41  $('#mobBtnWrapper').show();
42}
43	$('#pcBtn').on('click',function() {
44		$.cookie('swScr', '1', { expires: 1, path: '/' });
45		location.href = location.href;
46		location.reload()
47		return false;
48	});
49	$('#mobBtn').on('click',function() {
50		$.cookie("swScr", null, { expires: 1, path: '/' });
51		location.href = location.href;
52		location.reload()
53		return false;
54	})
55  
56	//240725 •¶ŽšƒR[ƒh UTF-8 ƒZƒbƒg‘Ήž
57  //$('form[action*="//saturn.tlt.co.jp/"]').attr('accept-charset','utf-8');
58  $('form[action*="//saturn.tlt.co.jp/"]:not([accept-charset="utf-8"])').attr('accept-charset','utf-8');
59  
60	//181016add favicon
61	//‹Œ‹Lq‚̍폜
62	var tempQuerySel = new Array("link[rel*='apple-touch-icon']","link[rel*='shortcut icon']","meta[name*='msapplication-TileColor']","meta[name*='msapplication-TileImage']")
63	for(i=0; i<tempQuerySel.length; i++) {
64		var tempQuerySelObj = document.querySelector(tempQuerySel[i]);
65		if(tempQuerySelObj!==null){tempQuerySelObj.parentNode.removeChild(tempQuerySelObj);}
66	}
67
68	//V‹Lq‚̒ljÁ
69	var tempLinkObjRel = new Array('apple-touch-icon','icon','icon','manifest','mask-icon');
70	var tempLinkObjType = new Array('','image/png','image/png','','');
71	var tempLinkObjSizes = new Array('180x180','32x32','16x16','','');
72	var tempLinkObjHref = new Array('//www.tlt.co.jp/tlt/images/apple-touch-icon.png','//www.tlt.co.jp/tlt/images/favicon-32x32.png','//www.tlt.co.jp/tlt/images/favicon-16x16.png','//www.tlt.co.jp/tlt/images/site.webmanifest','//www.tlt.co.jp/tlt/images/safari-pinned-tab.svg');
73	var tempLinkObjColor = new Array('','','','','#FFFFFF');
74	for(i=0; i<tempLinkObjRel.length; i++) {
75		var tempLinkObj = document.createElement('link');
76		if(tempLinkObjRel[i] != ''){tempLinkObj.setAttribute('rel',tempLinkObjRel[i]);};
77		if(tempLinkObjType[i] != ''){tempLinkObj.setAttribute('type',tempLinkObjType[i]);};
78		if(tempLinkObjSizes[i] != ''){tempLinkObj.setAttribute('sizes',tempLinkObjSizes[i]);};
79		if(tempLinkObjHref[i] != ''){tempLinkObj.setAttribute('href',tempLinkObjHref[i]);};
80		if(tempLinkObjColor[i] != ''){tempLinkObj.setAttribute('color',tempLinkObjColor[i]);};
81		document.getElementsByTagName('head')[0].appendChild(tempLinkObj);	
82	}
83	var tempMetaObjName = new Array('msapplication-TileColor','theme-color')
84	var tempMetaObjContent = new Array('#FA9628','#FFFFFF')
85	for(i=0; i<tempMetaObjName.length; i++) {
86		var tempMetaObj = document.createElement('meta');
87		if(tempMetaObjName[i] != ''){tempMetaObj.setAttribute('name',tempMetaObjName[i]);};
88		if(tempMetaObjContent[i] != ''){tempMetaObj.setAttribute('content',tempMetaObjContent[i]);};
89		document.getElementsByTagName('head')[0].appendChild(tempMetaObj);	
90	}
91	
92	//add 170302 charset”»’è
93	if($('meta[charset=euc-jp]')[0]){
94		$('input[name=ie]').prop('value','EUC-JP-MS');
95	}
96	
97		
98function setHeightLine(_arr){
99	$(function() {
100		if(ieVerChkNum>7){
101			$.each(_arr , function(i, value) {
102				$(value).heightLine();
103			});
104		}
105	})
106	$(window).load(function() {
107		if(ieVerChkNum>7){
108			$.each(_arr , function(i, value) {
109				$(value).heightLine("refresh");
110			});
111		}
112	})
113}
114
115//”Ä—p‚‚³‘µ‚¦Ý’è
116$(window).on('load', function () {
117	$('.eqh1').heightLine({
118		minWidth:480
119	});
120	$('.eqh2').heightLine({
121		minWidth:480
122	});
123	$('.eqh3').heightLine({
124		minWidth:480
125	});
126	$('.eqh4').heightLine({
127		minWidth:480
128	});
129	$('.eqh5').heightLine({
130		minWidth:480
131	});
132	
133	$('.eqh1b').heightLine();
134	$('.eqh2b').heightLine();
135	$('.eqh3b').heightLine();
136	$('.eqh4b').heightLine();
137	$('.eqh5b').heightLine();	
138	
139});
140  
141//common
142var sw_Mobi = 0;
143
144var menuDueShow = 200;
145var menuDueHide = 0;
146
147	if(('ontouchstart' in document) && ('orientation' in window)) {
148		sw_Mobi = 1;
149	}
150var chkUrl = "https://www.tlt";
151
152
153
154  var $rootpath = location.pathname.split("/");
155  var $dir = $rootpath[1];
156  var www = "tlt";//ŒöŠJ—p
157
158  //noscriptŒü‚¯ƒŠƒ“ƒN‘‚«Š·‚¦
159  var searchurl = "javascript:void(0);";
160  var gnav = '<li><a href="/tlt/index_j.htm"><span>ƒgƒbƒvƒy[ƒW</span></a></li><li><a href="#subNav1"><span>Ž–‹ÆÐ‰î</span></a></li><li><a href="/tlt/corporate/achievement/achievement.htm"><span>”[“üŽÀÑ</span></a></li><li><a href="#subNav2"><span>Šé‹Æî•ñ</span></a></li><li><a href="#subNav3"><span>ƒTƒXƒeƒiƒrƒŠƒeƒB</span></a></li><li><a href="#subNav4"><span>Ì—pî•ñ</span></a></li>';
161  
162  //ŒŸõ
163  $("#searchBtn > a").attr("href", searchurl);
164  //GlobalNav
165  //$(".gnav").html(gnav);
166  //GlobalNav
167//  $("#spNav").html(spnav);
168  
169  //ƒiƒrƒQ[ƒVƒ‡ƒ“ƒAƒCƒeƒ€‚̌Ăяo‚µ
170    $.get("/tlt/corporate/common/src/globalNav.html",function(data){
171     $("#ddCover").html(data);
172      //Ž©ƒy[ƒWƒŠƒ“ƒN‚̍폜
173     $('#ddCover a').each(function(){
174        if (href[0] == this.href ){
175          $(this).replaceWith($('<span class="active"/>').html($(this).html()));
176        }
177      });
178    });        
179    $.get("/tlt/corporate/common/src/footerMap.html",function(data){
180      $("#footerMap").html(data);
181      //Ž©ƒy[ƒWƒŠƒ“ƒN‚̍폜
182     $('#fmap a').each(function(){
183        if (href[0] == this.href ){
184          $(this).replaceWith($('<span class="active"/>').html($(this).html()));
185        }
186      });
187    });        
188    $.get("/tlt/corporate/common/src/spNav.html",function(data){
189      $("#spNav").html(data);
190        //spNavŽ©ƒŠƒ“ƒNíœ
191        $('.spNavList li[class!="acdParent"] a').each(function(){
192            if (href[0] == this.href ){
193              $(this).replaceWith($('<span class="active"/>').html($(this).html()));
194            }
195          });
196        //ƒAƒR[ƒfƒBƒIƒ“TOP‚Ì‚Ý
197         $('.spNavList li.acdParent > a').each(function(){
198            if (href[0] == this.href ){
199              $(this).replaceWith($('<a href="#" class="active"/>').html($(this).html()));
200            } else {
201              $(this).replaceWith($('<a href="#"/>').html($(this).html()));
202            }
203          });
204        //submenu‚̃AƒR[ƒfƒBƒIƒ“  
205        //‘S‚Ă𕂶‚é
206          $('.acdParent').find('.acdList').hide();
207          //ƒNƒŠƒbƒNƒAƒNƒVƒ‡ƒ“Ý’è
208          $(document).on('click', '.acdParent > a', function () {
209            $(this).toggleClass("acdtag").next('.acdList').slideToggle('fast')
210            .siblings('.acdList:visible').slideUp('fast');
211          });
212    });        
213  var srcCover = '<div id="ddCover"></div><div id="ddCover2"></div>';
214
215  //Ž©ƒy[ƒWƒŠƒ“ƒN‚̍폜
216	var href = location.href.split('#');
217	var href2 = href[0]+"index_j.htm";
218	//GlobalNav
219	$('#globalNav a[href]:not([href*="site.do"])').each(function(){
220		if (href[0] == this.href ||  href2 == this.href ){
221			if(!$(this).hasClass('withPD')){//25TD3RD
222				$(this).replaceWith($('<span class="active"/>').html($(this).html()));
223			}
224		}
225	});
226  //Identifier
227  $('a#identifier-link').each(function(){
228    if (href[0] == this.href ||  href2 == this.href ){
229      $(this).replaceWith($('<span class="active" id="identifier-link"/>').html($(this).html()));
230    }
231  });
232  //subNav
233  $('#headersubnav a[href]:not([href*="site.do"])').each(function(){
234		if (href[0] == this.href ||  href2 == this.href ){
235			$(this).replaceWith($('<span class="active"/>').html($(this).html()));
236		}
237  });
238  
239  //footLink
240  
241  $('#gFoot a[href]:not([href*="site.do"])').each(function(_i){
242		if (href[0] == this.href ||  href2 == this.href ){
243			$(this).replaceWith(
244				$('<span/>', {
245					'class': this.className,
246					html: $(this).html()
247				})
248			);
249		}
250  });
251
252  
253
254//ƒiƒrƒQ[ƒVƒ‡ƒ“‚ÌŒ»Ý’n•\ަ
255  var $dirG = $rootpath[3];
256  if($dirG == "solution"){
257    $('#globalNav li:nth-child(2) a').addClass("active");
258  } else if($dirG == "achievement" ){
259    $('#globalNav li:nth-child(3) a').addClass("active");
260  } else if($dirG == "corporate.htm" || $dirG == "message" || $dirG == "philosophy" || $dirG == "company" || $dirG == "supply" || $dirG == "awards" ){
261    $('#globalNav li:nth-child(4) a').addClass("active");
262  } else if($dirG == "csr" || $dirG == "environment" ){
263    $('#globalNav li:nth-child(5) a').addClass("active");
264  } else if($dirG == "saiyo" ){
265    $('#globalNav li:nth-child(6) a').addClass("active");
266  }
267  
268 //»•iƒTƒCƒgƒXƒNƒŠƒvƒgŽQÆ
269  $('#ddCover2').css("opacity", "0")
270	var _ua2= window.navigator.userAgent.toLowerCase();	
271
272	//IEŽž‚ÌselectƒXƒ^ƒCƒ‹
273  if(_ua2.indexOf("msie") !== -1 || _ua2.indexOf('trident') !== -1) {
274			$(".srcIconTL2").hide()
275			$('.headerSrcArea select').css('padding-right','10px')
276			
277	}
278  
279  setGmenuPulldown();
280	
281	//TD25
282	let resizeTimer2 = null;
283	$(window).on('resize', function () {
284		clearTimeout(resizeTimer2);
285		resizeTimer2 = setTimeout(function () {
286			var windowW = $(window).width();
287			if (windowW < 760) {
288				hideDD();
289			}
290		}, 300);
291	});
292	
293	
294	setGheadDownList()
295  
296//globalmenu•\ަ  
297function setGheadDownList(){
298
299	if(sw_Mobi=="0"){
300		
301		var timerS;
302		$(document).on('mouseleave', '.gnav > li > a', function (){
303      clearTimeout(timerS);
304		});
305		
306		$(document).on('mouseenter', '.gnav > li >a:not(".withPD")', function (){
307			hideDD();
308		});
309		
310		$(document).on('mouseenter', '.gnav > li:eq(1) a', function (){
311			if($('.menuBtn').is(':visible')){
312				return true;
313			}else{
314				if(!$('#subNav1').is(':visible')){
315					timerS = setTimeout(function(){
316						showDD('#subNav1');
317						$('.gnav li:eq(1) a').addClass('pdAct');
318					},400);
319
320				}
321			}
322		});
323		$(document).on('mouseenter', '.gnav > li:eq(3) a', function (){
324			if($('.menuBtn').is(':visible')){
325				return true;
326			}else{
327				if(!$('#subNav2').is(':visible')){
328					timerS = setTimeout(function(){
329						showDD('#subNav2');			
330						$('.gnav li:eq(3) a').addClass('pdAct');
331					},400);
332
333				}
334			}
335		});
336		$(document).on('mouseenter', '.gnav > li:eq(4) a', function (){
337			if($('.menuBtn').is(':visible')){
338				return true;
339			}else{
340				if(!$('#subNav3').is(':visible')){
341					timerS = setTimeout(function(){
342						showDD('#subNav3');			
343						$('.gnav li:eq(4) a').addClass('pdAct');
344					},400);
345				}
346			}
347		});
348		$(document).on('mouseenter', '.gnav > li:eq(5) a', function (){
349			if($('.menuBtn').is(':visible')){
350				return true;
351			}else{
352				if(!$('#subNav4').is(':visible')){
353					timerS = setTimeout(function(){
354						showDD('#subNav4');
355						$('.gnav li:eq(5) a').addClass('pdAct');
356					},400);
357				}
358			}
359		});
360				
361
362		$(document).on('mouseenter', '#gHeader, .prodNav', function (){
363			hideDD();
364		});
365
366		
367		var timerL;
368		$("#ddCover").on("mouseover", function() {
369      clearTimeout(timerL);
370		})
371		$("#ddCover2").on("mouseover", function() {
372      timerL = setTimeout(function(){
373        hideDD();
374      },300);
375		});
376		
377		
378		$("body").on("mouseleave", function() {
379      timerL = setTimeout(function(){
380        hideDD();
381      },300);
382		});
383	}
384
385
386
387	$('#ddCover').hide();
388	
389	$(".gnav li:eq(1) a").on('click',function(){
390		if(!$(this).hasClass('pdActCl')){
391			if($('#subNav1').is(':visible')){
392				if (chkNowPosGNav($(this).prop("href"))) {
393					$(this).addClass('pdActCl')
394					return false;
395				}
396				return true;
397			}
398		}
399	
400		if($('.menuBtn').is(':visible')){
401			return true;
402		}else{
403			if(!$('#subNav1').is(':visible')){
404				showDD('#subNav1');
405				$(this).toggleClass('pdAct');
406				$(this).addClass('pdActCl')
407
408			}else{
409				hideDD();
410			}
411			return false;
412		}
413	})
414	$(".gnav li:eq(1) a").on('mouseenter',function () {
415    $('#subNav1 .downmark').css('border-bottom','8px solid #505054');
416	})
417	
418	$(".gnav li:eq(1) a").on('mouseleave',function () {
419    $('#subNav1 .downmark').css('border-bottom','8px solid #505054');
420	});
421	
422	
423	$(".gnav li:eq(3) a").on('click',function(){
424		if(!$(this).hasClass('pdActCl')){
425			if($('#subNav2').is(':visible')){
426				if (chkNowPosGNav($(this).prop("href"))) {
427					$(this).addClass('pdActCl')
428					return false;
429				}
430				return true;
431			}
432		}
433		
434		if($('.menuBtn').is(':visible')){
435			return true;
436		}else{
437			if(!$('#subNav2').is(':visible')){
438				showDD('#subNav2');
439				$(this).toggleClass('pdAct');
440				$(this).addClass('pdActCl')
441
442			}else{
443				hideDD();
444			}
445			return false;
446		}
447	})
448	$(".gnav li:eq(3) a").on('mouseenter',function(){
449    $('#subNav2 .downmark').css('border-bottom','8px solid #505054');
450	})
451	
452	$(".gnav li:eq(3) a").on('mouseleave',function(){
453    $('#subNav2 .downmark').css('border-bottom','8px solid #505054');
454	});
455	
456	
457	$(".gnav li:eq(4) a").on('click',function(){
458		if(!$(this).hasClass('pdActCl')){
459			if($('#subNav3').is(':visible')){
460				if (chkNowPosGNav($(this).prop("href"))) {
461					$(this).addClass('pdActCl')
462					return false;
463				}
464				return true;
465			}
466		}
467
468		if($('.menuBtn').is(':visible')){
469			return true;
470		}else{
471			if(!$('#subNav3').is(':visible')){
472				showDD('#subNav3');
473				$(this).toggleClass('pdAct');
474				$(this).addClass('pdActCl')
475			}else{
476				hideDD();
477			}
478			return false;
479		}
480	})
481	$(".gnav li:eq(4) a").on('mouseenter',function(){
482    $('#subNav3 .downmark').css('border-bottom','8px solid #505054');
483	})
484	
485	$(".gnav li:eq(4) a").on('mouseleave',function(){
486    $('#subNav3 .downmark').css('border-bottom','8px solid #505054');
487	});
488	
489	
490	$(".gnav li:eq(5) a").on('click',function(){
491		if(!$(this).hasClass('pdActCl')){
492			if($('#subNav4').is(':visible')){
493				if (chkNowPosGNav($(this).prop("href"))) {
494					$(this).addClass('pdActCl')
495					return false;
496				}
497				return true;
498			}
499		}
500
501		if($('.menuBtn').is(':visible')){
502			return true;
503		}else{
504			if(!$('#subNav4').is(':visible')){
505				showDD('#subNav4');
506				$(this).toggleClass('pdAct');
507				$(this).addClass('pdActCl')
508			}else{
509				hideDD();
510			}
511			return false;
512		}
513	})
514	$(".gnav li:eq(5) a").on('mouseenter',function(){
515    $('#subNav4 .downmark').css('border-bottom','8px solid #505054');
516	})
517	$(".gnav li:eq(5) a").on('mouseleave',function(){
518    $('#subNav4 .downmark').css('border-bottom','8px solid #505054');
519	});
520	
521	
522	$('.subNabClose > a').on('click',function(){
523		hideDD();
524		return false;
525	})
526	
527	
528	
529}
530
531function hideDD(_sw){
532	$('.gnav li a').removeClass('pdAct');
533	$('.gnav li a').removeClass('pdActCl');
534	$(".subNavWrapper:visible span.tipTitle").heightLine('destroy');	
535	
536	$('.subNavWrapper').hide();
537	
538	if(_sw != 99){
539		$('#ddCover').stop().animate({opacity:0.3,height:0},{duration:menuDueHide,
540			complete : function(){
541				$(this).hide();
542			}
543		});
544		$('#ddCover2').stop().animate({opacity:0.3},{
545			duration:menuDueHide,
546			complete : function(){
547				$(this).hide();
548			}
549		});
550
551	}
552	
553	$('#gHeader,#globalNav').off('click');
554	
555}
556
557function hideDD(_sw){
558	$('.gnav li a').removeClass('pdAct');
559	$('.gnav li a').removeClass('pdActCl');
560	$(".subNavWrapper:visible span.tipTitle").heightLine('destroy');	
561	
562	$('.subNavWrapper').hide();
563	
564	if(_sw != 99){
565		$('#ddCover').stop().animate({opacity:0.3,height:0},{duration:menuDueHide,
566			complete : function(){
567				$(this).hide();
568			}
569		});
570		$('#ddCover2').stop().animate({opacity:0.3},{
571			duration:menuDueHide,
572			complete : function(){
573				$(this).hide();
574			}
575		});
576
577	}
578	
579	$('#gHeader,#globalNav').off('click');
580	
581}
582
583function showDD(dd){
584	hideDD(99);
585		
586//  var mH = $('#panCov').offset().top;
587	var fH = $('body').outerHeight();
588		
589	var mCH = fH;
590		
591		$('#gHeader,#globalNav').on('click',function(){
592			hideDD();
593		});
594		
595		
596		$(dd).show(0,function(){			
597			var mCH2 = $(dd).find('.subNav').outerHeight();
598			var mCH3 = mCH2;
599      if(mCH>0){
600				mCH3 += 42;
601
602      if(dd =="#subNav2"){
603				mCH3 = 382;
604      } else {
605					mCH3 = 342;
606			}
607
608				if (!$('#ddCover').is(':visible')) {
609					$(this).stop().css('height','0').animate( { height: mCH2 },{ duration: menuDueShow } );
610					$('#ddCover').stop().css('opacity','0.6').show().animate( { height: mCH3, opacity:'1' },{
611						duration: menuDueShow,
612						complete : function(){
613						}
614					});
615
616					
617				}else{
618					$(this).stop().css('height','0').animate( { height: mCH2 },{ duration: menuDueShow } );
619					$('#ddCover').stop().show().animate( { height: mCH3,opacity:'1' },{
620						duration: menuDueShow,
621						complete : function(){
622						}
623					});
624
625				}
626				
627				$('#ddCover2').stop().height(mCH).show(0).animate( { opacity:'1' },{ duration: menuDueShow } );
628			}
629
630			
631		});
632}
633
634function setGmenuPulldown(){
635	
636  $('#globalNav').append(srcCover);
637	
638}
639
640  
641 //SPƒƒjƒ…[•\ަ
642  var w = $(window).innerWidth();
643  var x = 760;
644  var resizeTimer = false;
645  $(window).on("load resize", function(){
646      var windowW = $(window).innerWidth();
647      clearTimeout(resizeTimer);
648      window.addEventListener("resize", function() {
649          if (windowW == window.innerWidth) {
650              // ƒEƒCƒ“ƒhƒE‰¡•‚ª•Ï‚í‚Á‚Ä‚¢‚È‚¢‚½‚ߏˆ—‚ðƒLƒƒƒ“ƒZƒ‹B
651              return;
652          }
653          // ƒEƒCƒ“ƒhƒE‰¡•‚ª•Ï‚í‚Á‚½‚Ì‚ÅƒŠƒTƒCƒY‚ÆŒ©‚È‚·B
654          // ‰¡•‚ðXV
655          windowW = window.innerWidth;
656          resizeTimer = setTimeout(function() {
657          // ƒŠƒTƒCƒYŠ®—¹Œã‚̏ˆ—
658            $("#tos_header").removeClass("open");
659            $("#searchBtn").removeClass("open");
660            $("#searchBtn2").removeClass("open");
661            $("#search").css("display","");
662//             if(windowW  < x) { 
663//             }
664			if(windowW  > x) { 
665                $("#spNav").css("display","");
666			}
667            if(_ua.Mobile != true){
668                $("#spNav").css("display","");
669            }
670          }, 100);
671  });
672  });
673  
674   $("#spMenu, #spclose").on('click',function(){
675    var d1 = $(document).height();
676    var d = d1 - 44;
677      $("#tos_header").toggleClass("open");
678      $("#search").fadeOut(100).slideUp(300);
679      $("#spNav").css("height", d).slideToggle(300);
680    });
681   $("#searchBtn > a,#searchBtn2 > a").on('click',function(){
682      $(".subNavWrapper").fadeOut(100).slideUp(300);
683      $(this).toggleClass("open");
684      $("#tos_header").removeClass("open");
685      $("#spNav").fadeOut(100).slideUp(300);
686      $("#search").slideToggle(300);
687	  return false;
688    });
689
690 
691  //SP—pƒƒS•ÏŠ·
692  var sizeChange = $("#logoImg"), 
693  pcName = '_pc', 
694  spName = '_sp'; 
695
696  sizeChange.each(function(){
697
698	var $this = $(this);
699	function imgSize(){
700		if(window.innerWidth > x) { 
701			$this.attr('src',$this.attr('src').replace(spName,pcName));
702		} else {
703			$this.attr('src',$this.attr('src').replace(pcName,spName));
704		}
705	}
706	//td25
707	$(window).on('resize', function () {
708		clearTimeout(resizeTimer2);
709		resizeTimer2 = setTimeout(function () {
710			imgSize();
711		}, 300);
712	});
713	imgSize();
714	});   
715
716
717
718  //StikyNav
719  var sw_disableFixMenu = 0;
720
721  //ƒƒjƒ…[ŒÅ’è‚ðs‚í‚È‚¢URLŽw’è
722  var chkU = ['saturn.tlt.co.jp', 'saturn.tlt.co.jp'];
723  var _lohref = location.href;
724
725  chkU.forEach(function( value ) {
726    if(_lohref.indexOf(value) != -1){
727      sw_disableFixMenu = 1;
728    }
729  });
730  $(function() {
731	var $main = $('#globalNav').next(),
732      navHeight = $('#globalNav').outerHeight(),
733      navPos = $('#globalNav').offset().top,
734      fixedClass = 'is-fixed';
735
736	$(window).on('load scroll resize', function() {
737		if($('.headerSrcArea').is(':visible')){ //ƒwƒbƒ_ƒT[ƒ`ƒGƒŠƒA‚ð•‚¶‚鏈—
738			$('.headerSrcArea').hide();
739			$('#searchBtn').removeClass('open')
740		}
741		if(sw_disableFixMenu == 0){
742			var value = $(this).scrollTop();
743			
744			var _mob = 0;
745			if($('#spMenu').is(':visible')){//ƒ‚ƒoƒCƒ‹ƒƒjƒ…[ƒ{ƒ^ƒ“‚Ì—L–³‚Ńrƒ…[”»’è
746				_mob = 1;
747			}
748			
749			if(_mob == 0){//ƒ‚ƒoƒCƒ‹Žž‚Í“®ì‚³‚¹‚È‚¢
750				if ( value > navPos ) {
751					$('#globalNav').addClass(fixedClass);
752					$main.css('margin-top', navHeight);
753				} else {
754					$('#globalNav').removeClass(fixedClass);
755					$main.css('margin-top', '');
756				}
757			}else{
758				$('#globalNav').removeClass(fixedClass);
759				$main.css('margin-top', '');
760			}
761		}
762			
763	});
764
765
766});
767
768  
769	/*TOPƒ{ƒ^ƒ“ˆ—*/
770	$('#toTop').remove();
771	$('<div class="goTopBtn"><a href="#gHeader" class="scroll h100p" title="‚±‚̃y[ƒW‚̃gƒbƒv‚Ö"><span class="footerIcon mb2"><i class="fa fa-angle-up fa-3x" aria-hidden="true"></i></span></a></div>').appendTo("body")
772	$('<div class="goContactBtn"><a href="//www.tlt.co.jp/tlt/contact/contact.htm" class="h100p" title="‚¨–â‚¢‡‚킹"><span class="footerIcon mb2"><i class="fa fa-envelope fa-lg" aria-hidden="true"></i></span><span>Contact</span></a></div>').appendTo("body") 
773
774	$(window).on('scroll', function () {
775		if ($(this).scrollTop() > 200) {
776			$('.goTopBtn,.goContactBtn').show()
777			/*var footerPos = $('#gFoot').offset().top - $(window).height();
778			if ($(window).scrollTop() > footerPos) {
779				$('.goTopBtn,.goContactBtn').hide()
780			}*/
781		}else{
782			$('.goTopBtn,.goContactBtn').hide()
783		}
784	})
785
786  $(document).on('click', '.goTopBtn', function () {
787      $("body,html").animate({scrollTop:0},300); // 500ms‚©‚¯‚ďã‚É–ß‚é
788      return false;
789  });
790
791   //scroll ˆ—
792   $(document).on('click', 'a.smooth_', function () {
793		var targetOffset = $(this.hash).parent().offset().top;
794		if(targetOffset<0){targetOffset=0;}
795		var clickOffset = $(this).offset().top
796		var moveDist = targetOffset-clickOffset
797		var scrollSpeed = Math.abs(moveDist/9)
798		if (scrollSpeed<100){scrollSpeed=100}
799		$('html,body').animate({scrollTop: targetOffset}, scrollSpeed);
800
801		return false;
802	});
803
804  
805	//190724 headerSearchFIX
806
807	var srcExSrcBtn = "";//ŒŸõ‘‹’ljÁ—v‘fBOXƒRƒ“ƒeƒ“ƒciŽg—p‚³‚ê‚Ä‚¢‚È‚¢‚̂Ŗ¾Ž¦“I‚ɃNƒŠƒAj
808	
809	if(!srcExSrcBtn){
810		$(".etcSrcBtn").parents('div.g15').next().remove();
811		$(".etcSrcBtn").parents('div.headerSrcArea').css('padding-bottom','0px');
812		$(".etcSrcBtn").parents('div.g15').prev().removeClass('g85').addClass('g100');
813		$(".etcSrcBtn").parents('div.g15').remove();
814		$(".gnavB .serachBox").css('padding-bottom','15px');
815	}
816
817	$('.exSrcBox').html(srcExSrcBtn);
818
819	var srcAdd = [
820	'//saturn.tlt.co.jp/apfs/site.do',
821	'//saturn.tlt.co.jp/pdocs/product.html',
822	'//saturn.tlt.co.jp/apfs/jirei.do',
823	'//saturn.tlt.co.jp/apfs/faq.do',
824	'//saturn.tlt.co.jp/apfs/catalog.do',
825	'//saturn.tlt.co.jp/apfs/catalogpast.do'
826	];
827
828	$('.srcBoxF').on('submit',function(){
829		var selInd = $(this).parent().parent().prev().find('select').val();
830		$(this).prop('action',srcAdd[selInd]);
831		
832		if(selInd == 1){
833			$(this).find('.srcQuery').prop('name','katamei');
834		}else{
835			$(this).find('.srcQuery').prop('name','query');
836		}
837
838		return true;		
839	});
840	
841	$('.srcBtn').on('click',function(){
842		$(this).parents('form').submit();
843		return false;
844	});
845	
846	
847	
848	
849	$('select[name=srcTarget]').on('change',function(){
850		$(this).parent().parent().next().find('form').prop('action',srcAdd[$(this).val()]);
851		
852		if($(this).val() == 1){
853			$(this).parent().parent().next().find('.srcQuery').prop('name','katamei');
854		}else{
855			$(this).parent().parent().next().find('.srcQuery').prop('name','query');
856		}
857	});	
858
859
860	//ƒT[ƒ`ƒTƒWƒFƒXƒg‹@”\—pJSECSS“ǂݍž‚Ý
861
862	var scriptsArr = [];
863	var cssArr = [];
864
865	if($('.headerSrcArea')[0] || $('.sideDBP')[0]){	//ƒTƒCƒhƒƒjƒ…[‚©ƒwƒbƒ_ƒT[ƒ`‚ª‚ ‚ê‚΋¤’ÊJS‚ð“ǂݍž‚Ý
866		cssArr.push('/tlt/js/search/typeaheadjs.css')
867	    
868		if($('head link[href $= "nonresp.css"]').attr('href')){ //ƒmƒ“ƒŒƒXƒvŽž’ljÁ
869			cssArr.push('/tlt/js/search/typeaheadjs_forNonresp.css')
870		}
871
872		scriptsArr.push("/tlt/js/search/typeahead.jquery.js")
873		scriptsArr.push("/tlt/js/search/bloodhound.js")
874		
875	}
876
877	if($('.headerSrcArea')[0]){
878		scriptsArr.push("/tlt/js/search/init_src_suggest.js")
879	}
880
881	if($('.sideDBP')[0]){
882		scriptsArr.push("/tlt/js/search/side_typeahead.js")
883	}
884
885	//CSS“ǂݍž‚Ý
886	for(var i = 0; i < cssArr.length; i++) {
887		cssArr[i] = cssArr[i].replace(/\/tlt\//g, '//www.tlt.co.jp/tlt/');
888		$('head link:last').after('<link rel="stylesheet" href="'+cssArr[i]+'">');
889	
890	}
891
892
893	//ŒöŠJŽž‚͈ȉºƒRƒƒ“ƒg‚ðŠO‚·
894	for(var i = 0; i < scriptsArr.length; i++) {
895		scriptsArr[i] = scriptsArr[i].replace(/\/tlt\//g, '//www.tlt.co.jp/tlt/');
896	}
897
898	
899	getScriptsSequencial(scriptsArr, function() {
900		//console.log('done!');
901	});
902
903function getScriptsSequencial(scripts, callback) {
904    var f = function(i) {
905      $.getScript(scripts[i], function(){
906        if (i+1 < scripts.length) {
907          f(i+1);
908        } else {
909          callback();
910        }
911      });
912    };
913    f(0);
914}
915
916});
917
918function chkNowPosGNav(_h){
919	var currentUrlWithoutHash = window.location.href.split('#')[0];
920
921      if (currentUrlWithoutHash === _h) {
922        return true;
923      }	else{
924	  	return false;
925	  }
926}
927

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.