1 2//25TD¼Î 3//¼ÀA{evÅs¤ð¢Ä¢é 4jQuery(document).ready(function($){ 5 $('.toCorp a').prop('target',''); 6 $('.toCorp a .fontIco').remove(); 7}) 8 9 10var anc_jumped = 0; 11var ieVerChkNum = 11; 12 13//Äp³µ¦Ýè 14$(window).on('load', function () { 15 $('.eqh1').heightLine({ 16 minWidth:480 17 }); 18 $('.eqh2').heightLine({ 19 minWidth:480 20 }); 21 $('.eqh3').heightLine({ 22 minWidth:480 23 }); 24 $('.eqh4').heightLine({ 25 minWidth:480 26 }); 27 $('.eqh5').heightLine({ 28 minWidth:480 29 }); 30 31 $('.eqh1b').heightLine(); 32 $('.eqh2b').heightLine(); 33 $('.eqh3b').heightLine(); 34 $('.eqh4b').heightLine(); 35 $('.eqh5b').heightLine(); 36 37}); 38 39 40jQuery(document).ready(function($){ 41 42 $('a[target=_blank]').after('<span class="noDisp">Vµ¢uEUEBhEAܽÍVµ¢^uðJ«Ü·B</span>'); 43 44 45 $('#sideDB form').on('submit',function(){ 46 if(gtag) { 47 gtag('event','submit',{'event_category':'form','event_label':'TChj [DBtH[M'}); 48 gtag('event','gaClickAttr01',{'send_to':'G-5W76ZFF1YP', 'gaClickAttr01':'submit', 'gaClickAttr02':'form', 'gaClickAttr03':'TChj [DBtH[M'}); 49 } 50 }) 51 52 //240725 ¶R[h UTF-8 ZbgÎ 53 //$('form[action*="//saturn.tlt.co.jp/"]').attr('accept-charset','utf-8'); 54 $('form[action*="//saturn.tlt.co.jp/"]:not([accept-charset="utf-8"])').attr('accept-charset','utf-8'); 55 56 //181016add favicon 57 //LqÌí 58 var tempQuerySel = new Array("link[rel*='apple-touch-icon']","link[rel*='shortcut icon']","meta[name*='msapplication-TileColor']","meta[name*='msapplication-TileImage']") 59 for(i=0; i<tempQuerySel.length; i++) { 60 var tempQuerySelObj = document.querySelector(tempQuerySel[i]); 61 if(tempQuerySelObj!==null){tempQuerySelObj.parentNode.removeChild(tempQuerySelObj);} 62 } 63 64 //VLqÌÇÁ 65 var tempLinkObjRel = new Array('apple-touch-icon','icon','icon','manifest','mask-icon'); 66 var tempLinkObjType = new Array('','image/png','image/png','',''); 67 var tempLinkObjSizes = new Array('180x180','32x32','16x16','',''); 68 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'); 69 var tempLinkObjColor = new Array('','','','','#FFFFFF'); 70 for(var i=0; i<tempLinkObjRel.length; i++) { 71 var tempLinkObj = document.createElement('link'); 72 if(tempLinkObjRel[i] != ''){tempLinkObj.setAttribute('rel',tempLinkObjRel[i]);} 73 if(tempLinkObjType[i] != ''){tempLinkObj.setAttribute('type',tempLinkObjType[i]);} 74 if(tempLinkObjSizes[i] != ''){tempLinkObj.setAttribute('sizes',tempLinkObjSizes[i]);} 75 if(tempLinkObjHref[i] != ''){tempLinkObj.setAttribute('href',tempLinkObjHref[i]);} 76 if(tempLinkObjColor[i] != ''){tempLinkObj.setAttribute('color',tempLinkObjColor[i]);} 77 document.getElementsByTagName('head')[0].appendChild(tempLinkObj); 78 } 79 var tempMetaObjName = new Array('msapplication-TileColor','theme-color') 80 var tempMetaObjContent = new Array('#FA9628','#FFFFFF') 81 for(i=0; i<tempMetaObjName.length; i++) { 82 var tempMetaObj = document.createElement('meta'); 83 if(tempMetaObjName[i] != ''){tempMetaObj.setAttribute('name',tempMetaObjName[i]);} 84 if(tempMetaObjContent[i] != ''){tempMetaObj.setAttribute('content',tempMetaObjContent[i]);} 85 document.getElementsByTagName('head')[0].appendChild(tempMetaObj); 86 } 87 88 //$('.dd01 .prodList .w25p a').heightLine({ 89 // minWidth:750 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 98 99 if($("#withMenu")[0]){ 100 101 //TChj [ 102 103 $('.menuBtn2') 104 .on('mouseenter', function () { 105 $(this).css('cursor', 'pointer'); 106 }) 107 .on('mouseleave', function () { 108 $(this).css('cursor', 'default'); 109 }) 110 .on('click', function () { 111 $('#contentsWrapper').toggleClass('expanded'); 112 $('*').heightLine('refresh'); 113 114 var _y = window.scrollY; 115 var _t = $('#contents').offset().top; 116 117 if (_y < _t && $('#contentsWrapper').hasClass('expanded') && $('.menuBtn:visible').length) { 118 $('html, body').animate({ scrollTop: _t }, 'fast'); 119 } 120 121 setSideActPos(); 122 }); 123 124 $('#contents').append('<div id="whiteboard" />') 125
126 $('#whiteboard').on('click',function(){ 127 $('#contentsWrapper').removeClass('expanded'); 128 }); 129 130 } 131 132 133 var nowdir = document.URL; 134 var current = nowdir.split("/tlt/"); 135 var currentDir = current[current.length-1].split("/")[0]; 136 137 if(currentDir == 'products'){ 138 addDBBtn4Side(); 139 } 140 141 142 if($('#search-box').val() != ""){ 143 $('#search-box').addClass('noBg'); 144 } 145 146 //T[` 147 $('#search-box').on('focus', function () { 148 $(this).addClass('noBg'); 149 }).on('blur', function () { 150 if ($(this).val() === '') { 151 $(this).removeClass('noBg'); 152 } 153 }); 154 155 $('#gheaderColumn2Inner2 form').on('submit', function () { 156 157 if($('#search-box').val() == ""){ 158 window.location.replace("https://www.tlt.co.jp/tlt/support/search/search_help.htm"); 159 return false; 160 }else{ 161 return true; 162 } 163 }); 164 165 /* 166 167 //pngFix 168 $("img[src$=png],.iepngfix").pngfix(); 169*/ 170 171 /*TOP{^*/ 172 $('.goTopBtn').remove(); 173 $('<div class="goTopBtn"><a href="#gHeader" class="scroll h100p" title="±Ìy[WÌgbvÖ"><span class="footerIcon mb2"><i class="fa fa-angle-up fa-3x" aria-hidden="true"></i></span></a></div>').appendTo("body") 174 $('<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") 175 $(window).on('scroll', function () { 176 if ($(this).scrollTop() > 200) { 177 $('.goTopBtn,.goContactBtn').show() 178 /*var footerPos = $('#gFoot').offset().top - $(window).height(); 179 if ($(window).scrollTop() > footerPos) { 180 $('.goTopBtn,.goContactBtn').hide() 181 }*/ 182 }else{ 183 $('.goTopBtn,.goContactBtn').hide() 184 } 185 }) 186 187 if(sw_disableFixMenu != 1){ 188 var _hh = $('#gNav').height()+20; 189 190 var _hashFlg=0; 191 192 var _hash = location.hash; 193 194 if(_hash.indexOf('&_ga=') != -1){ 195 var hashArr = _hash.split('&_ga='); 196 _hash = hashArr[0]; 197 } 198 if(_hash.indexOf('&_gl=') != -1){ 199 var hashArr = _hash.split('&_gl='); 200 _hash = hashArr[0]; 201 } 202 if(_hash.indexOf('=') != -1){ 203 _hash = ""; 204 } 205 if(_hash && $(_hash).length > 0){ 206 _hashFlg =1; 207 } 208 209 210 211 var st1 = setTimeout(function(){ancerScr()},5000); 212 if(_hashFlg==1){ 213 $(window).on('load', function () { 214 if(anc_jumped != 1){ 215 _hh = 20; 216 if(sw_disableFixMenu !== 1 && $('#gNav')[0]){ 217 _hh = $('#gNav').height()+20; 218 } 219 if($('.menuBtn2')[0] && $('.menuBtn').is(":hidden")){ 220 _hh =_hh+ $('.menuBtn2').height()+10; 221 } 222 223 224 anc_jumped = 1; 225 var _tTop = $(_hash).offset().top-_hh; 226 $('html,body').animate({ scrollTop: _tTop }, 'fast'); 227 } 228 }); 229 } 230 231 function ancerScr(){ 232 anc_jumped = 1; 233 } 234 } 235 236 237 //scroll 238 $(document).on('click','a[href*="#"]',function(){//a[href*="#"] 239 _hh = 20; 240 if(sw_disableFixMenu !== 1 && $('#gNav')[0]){ 241 _hh = $('#gNav').height()+20; 242 } 243 if($('.menuBtn2')[0] && $('.menuBtn').is(":hidden")){ 244 _hh =_hh+ $('.menuBtn2').height()+10; 245 } 246 var href= $(this).attr("href"); 247 var _target = null; 248 249 //jqªµ¦È¢hashÌG[ðñð 260204 250 if(this.hash){ 251 try{ 252 _target = $(document.getElementById(this.hash.slice(1))); 253 } catch(e){ 254 return; 255 } 256 } 257 258 if( $(_target).length > 0 ){ 259 var _tTop = $(_target).offset().top-_hh; 260 261 $('html,body').animate({ scrollTop: _tTop }, 'fast'); 262 } 263 }); 264 265 266 //scroll 267 $('.goTopBtn').on('click', function () { 268 269 var targetOffset = $('#gHeader').parent().offset().top-30; 270 if(targetOffset<0){targetOffset=0;} 271 var clickOffset = $(this).offset().top 272 var moveDist = targetOffset-clickOffset 273 var scrollSpeed = Math.abs(moveDist/9) 274 if (scrollSpeed<100){scrollSpeed=100} 275 //alert(clickOffset+" "+targetOffset+" "+scrollSpeed) 276 $('html,body').animate({scrollTop: targetOffset}, scrollSpeed); 277 return false; 278 }); 279 280 281 //©Ní 282 var href = location.href.split('#'); 283 var href2 = href[0]+"index_j.htm"; 284 285 var currentFileArr = href[0].split("/"); 286 var currentFile = currentFileArr[currentFileArr.length-1]; 287 288 if (currentFile == "index_j_ie6.htm") { 289 $("a[href='index_j.htm']").each(function(){ 290 $(this).replaceWith($("<span/>").html($(this).html())); 291 }) 292 } 293 294 //O[owb_Ì©Ní 295 $('#gHeader a[href]:not([href*="site.do"])').each(function(){ 296 if (href[0] == this.href || href2 == this.href ){ 297 $(this).replaceWith($("<span/>").html($(this).html())); 298 299 } 300 }); 301 302 //O[owb_Ì©Ní 303 $('.unav a').each(function(){ 304 if(!$(this).parent().hasClass("toCorp")){ 305 if (href[0] == this.href || href2 == this.href){ 306 $(this).replaceWith($("<span/>").html($(this).html())); 307 308 } 309 } 310 }); 311 312 //O[owb_Ì©Ní 313 $('.gnavB a').each(function(e){ 314 if(!$(this).hasClass("withPD")){ 315 if (href[0] == this.href || href2 == this.href){ 316 $(this).replaceWith($("<span/>").html($(this).html())); 317 } 318 } 319 }); 320 321 322 $('.ddNews a').each(function(e){ 323 if (href[0] == this.href || href2 == this.href){ 324 325 if($(this).css('background-image')){ 326 var _t = $(this).attr('style'); 327 } 328 329 $(this).replaceWith($('<span class="act'+' '+$(this).prop("class")+'" style="opacity:0.4;'+_t+'" />').html($(this).html())); 330 } 331 }); 332 $('.ddProd a').each(function(e){ 333 if (href[0] == this.href || href2 == this.href){ 334 if($(this).css('background-image')){ 335 var _t = $(this).attr('style'); 336 } 337 338 $(this).replaceWith($('<span class="act'+' '+$(this).prop("class")+'" style="opacity:0.4;'+_t+'" />').html($(this).html())); 339 340 } 341 }); 342 $('.ddCata a').each(function(e){ 343 if (href[0] == this.href || href2 == this.href){ 344 if($(this).css('background-image')){ 345 var _t = $(this).attr('style'); 346 } 347 348 $(this).replaceWith($('<span class="act'+' '+$(this).prop("class")+'" style="opacity:0.4;'+_t+'" />').html($(this).html())); 349 350 } 351 }); 352 $('.ddCase a').each(function(e){ 353 354 if (href[0] == this.href || href2 == this.href){ 355 if($(this).css('background-image')){ 356 var _t = $(this).attr('style'); 357 } 358 359 $(this).replaceWith($('<span class="act'+' '+$(this).prop("class")+'" style="opacity:0.4;'+_t+'" />').html($(this).html())); 360 361 } 362 }); 363 $('.ddDesi a').each(function(e){ 364 365 if (href[0] == this.href || href2 == this.href){ 366 if($(this).css('background-image')){ 367 var _t = $(this).attr('style'); 368 } 369 370 $(this).replaceWith($('<span class="act'+' '+$(this).prop("class")+'" style="opacity:0.4;'+_t+'" />').html($(this).html())); 371 372 } 373 }); 374 375 $('#footerSiteMap .fSM2nd > a').each(function(){ 376 if (href[0] == this.href || href2 == this.href){ 377 $(this).replaceWith($('<span class="act topCate" />').html($(this).html())); 378 379 } 380 }); 381 $('#footerSiteMap .ibBox a').each(function(){ 382 if (href[0] == this.href || href2 == this.href){ 383 $(this).replaceWith($('<span class="act" />').html($(this).html())); 384 385 } 386 }); 387 388 $('#gFootA a').each(function(){ 389 if (href[0] == this.href || href2 == this.href){ 390 $(this).replaceWith($('<span />').addClass($(this).attr('class')).html($(this).html())); 391 } 392 }); 393/* 394 $('#gFootA a').each(function(){ 395 396 if (href[0] == this.href || href2 == this.href){ 397 $(this).replaceWith($('<span class="ib mr7 lh15" />').html($(this).html())); 398 399 } 400 }); 401*/ 402 //©Ní 403 var href = location.href.split('#'); 404 $('a[href]:not([href*="site.do"])').each(function() { 405 if(!$(this).hasClass("withPD") || $(this).parent('li').hasClass("toCorp")){ 406 if (href[0] == this.href){ 407 $(this).addClass('nolink').css('cursor', 'default').on('click', function (e) {e.preventDefault();return false;}); 408 } 409 } 410 }); 411 412 413 414}); 415 416function setPcCSS(){ 417 //$('meta[name=viewport]').remove(); 418 $('link[href*=res_import_media]').remove(); 419 $('link[href*=slick_style_responsive]').remove(); 420} 421 422function addDBBtn4Side(){ 423 $('#sideDB').clone().prependTo('#sideBar .box'); 424 $('.sideH:last').clone().prependTo('#sideBar .box'); 425 $('.sideH:first').removeClass('mt10') 426 427 $('#sideDB:first').addClass('mb10') 428 $('#sideDB:first p:eq(1)').hide() 429 $('#sideDB:first p:eq(2)').hide() 430 $('#sideDB:first p:eq(3)').hide() 431 $('#sideDB:first p:eq(4)').hide() 432 433 $('.sideDBP form p').addClass('tc') 434 $('.sideDBP form input.katamei').css({ 435 'marginLeft':0, 436 'width':'100%', 437 'padding':'4px', 438 'height':'auto', 439 'fontSize':'10px' 440 })
441 $('.sideDBP form input[name=submit]').attr('type','submit') 442 $('.sideDBP form input[name=submit]').attr('value','õ') 443 $('.sideDBP form input[name=submit]').css({ 444 'padding':'5px 8px 6px', 445 'fontSize':'10px', 446 'marginTop':'1px' 447 }) 448 $('.sideDBP form input[name=submit]').addClass('btn') 449 $('.sideDBP form input[name=submit]').addClass('btn-primary') 450 451} 452 453 454function setHeightLine(_arr){ 455 $(function() { 456 $.each(_arr , function(i, value) { 457 $(value).heightLine(); 458 }); 459 }) 460 $(window).on('load', function () { 461 $.each(_arr , function(i, value) { 462 $(value).heightLine("refresh"); 463 }); 464 }) 465} 466 467function setSideActPos(){ 468 469 if($('#sideBar > .box #sideMenu a.selected').length){ 470 471 var pos = $('#sideBar > .box #sideMenu a.selected').eq(0).position(); 472 $("#sideBar > .box #sideMenu2").scrollTop(pos.top-220); 473 474 if($('#sideBar > .box #sideDB').length){ 475 $("#sideMenu2").css('max-height','calc(100vh - 185px)'); 476 } 477 478 479 } 480} 481
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.