1/** 2 * å ¨ãã¶ã¤ã³ãµã¤ãå ±éJS 3 * @author nagai 4 * @version 1.0 5 */ 6$(function(){ 7 8 //ã¹ã ã¼ãºã¹ã¯ãã¼ã« 9 $("a[href*='#'].scroll").smoothScroll(); 10 11 //ãã¡ã¤ã«ãªã³ã¯ã¯å¥çªè¡¨ç¤º 12 //$("a[href*='.*']").fileBlank('*') ã»ã¬ã¯ã¿ã§æ¡å¼µåæå® fileBlankã®å¼æ°ã«ã¯ã©ã¹æå®; 13 $("a[href*='.pdf']").fileBlank('pdf'); 14 $("a[href*='.doc']").fileBlank('word'); 15 $("a[href*='.xls']").fileBlank('excel'); 16 17 // ãã¡ã¤ã«ãªã³ã¯ã®ã¯ãªãã¯ã¤ãã³ãè¨æ¸¬ 18 $('.file-link-item a').on('click',function(){ 19 var targetUrl = $(this).attr('href'); 20 var targetLabel = $(this).text(); 21 // gaæªå®ç¾©ã®å ´åã¯å®è¡ããªã 22 if(typeof ga == 'function'){ 23 ga('send', 'event', targetUrl, 'download', targetLabel); 24 } 25 // gtagæªå®ç¾©ã®å ´åã¯å®è¡ããªã(GA4) 26 if(typeof gtag == 'function'){ 27 gtag('event', 'sv_file_link_click', { 28 'event_category': 'file_download_category', 29 'event_label': targetLabel + 'ï¼' + targetUrl, 30 'value': 1 31 }); 32 } 33 }); 34 35 //ãã¼ã«ãªã¼ãã¼ç»å 36 $("img[src*='_off.']").rollOver({off:'_off.',on:'_on.'}); 37 38 39 //tableã®align屿§åé¤ 40 $.fn.tableDeleteAlign(); 41 42 43 // å ã®ãã¼ã¸ã«æ»ããªãã¡ã©ã¼ãèªåã§ã¤ãã 44 $("a[href*=inquiryId]").each(function() { 45 var a = $(this); 46 var url = a.attr("href"); 47 var locaUrl = location.pathname; 48 a.attr("href", url.replace(/(Init\.do\?inquiryId=[0-9]+)/, '$1&ref=www.xxxx.xxxx.xxxx.jp' + locaUrl) ); 49 }); 50 51 52 var location_href = location.href; 53 var now_site_domain; 54 55 if(location_href.indexOf('http://') != -1 || location_href.indexOf('https://') != -1){ 56 var replace_site_domain = site_domain + '/'; 57 var now_site_domain = replace_site_domain.replace( /http:/g , "" ).replace( /https:/g , "" ); 58 }else{ 59 now_site_domain = ''; 60 } 61 62 //æåãµã¤ãºå¤æ´ï¼æ¨æº or 大ããããï¼HTMLå´ã¯ä»¥ä¸ã®ããã«è¨å® 63 if ($('.scsize').length) { 64 $.fn.styleCatcherUpNormal({btnCls: "scsize",cssID: "scsize",prAry: ['size_default.css', 'size_up.css', 'size_up2.css', 'size_up3.css'],cssPath: now_site_domain + 'theme/base/css/',def: 0}); 65 } 66 67 //èæ¯è²å¤æ´ï¼ç½ãé»ãéï¼HTMLå´ã¯ä»¥ä¸ã®ããã«è¨å® 68 if ($('.sccolor').length) { 69 $.fn.styleCatcher({btnCls: "sccolor",cssID: "sccolor", cssPath: now_site_domain + 'theme/base/css/',def: 2}); 70 } 71 72 // ãããã¼ããã®ããããã¡ã㥠73 if (typeof $.fn.dropMenu != 'undefined') { 74 $("#header-nav").dropMenu(); 75 } 76 if (typeof $.fn.dropMenu != 'undefined') { 77 $("#header-nav-issub").dropMenu(); 78 } 79 80 // æåãµã¤ãºå¤æ´ç£è¦ 81 $.fn.fontSizeChange({func:function(){ 82 //$("#header-nav .list2").eqGroupHeight(3); 83 $("#wrapper").show(); 84 }}); 85 86 87 //ã¢ã¼ãã«ï¼æ¤ç´¢ï¼ 88 $('.menu-btn-search').lightbox({ 89 modalBg:$('.modal-search-bg'), 90 modal:$('.modal-search, .modal-menu-close'), 91 close:$('.modal-menu-close'), 92 scrollID:'sWrapper', 93 lightSpot:$('.menu-btn-search, .modal-menu-close') 94 }); 95 96 97 //ã¢ã¼ãã«ï¼ã¡ãã¥ã¼ï¼ 98 $('.menu-btn-menu').lightbox({ 99 modalBg:$('.modal-menu-bg'), 100 modal:$('.modal-menu, .modal-menu-close'), 101 close:$('.modal-menu-close'), 102 scrollID:'sWrapper', 103 lightSpot:$('.menu-btn-menu, .modal-menu-close') 104 }); 105 106 $('.modal-menu .box').svAccordion({ 107 classHead:'.title', 108 classBody:'.list', 109 classToggle:'on' 110 }); 111 112 // ã¢ã³ã¼ãã£ãªã³(ãããã質åç¨) 113 $('.faq-block').svAccordion({ 114 classHead:'.title', 115 classBody:'.childs', 116 classToggle:'on' 117 }); 118 119 //ã¢ã³ã¼ãã£ãªã³ï¼åéå¥ã§æ¢ãï¼ 120 $('.joho-tab #tab-6 .in2').svAccordion({ 121 classHead:'.title', 122 classBody:'.links', 123 classToggle:'on' 124 }); 125 126 //ã¹ãããã¬ãã¥ã¼ã«å¯¾å¿ 127 $('.no-escape').each(function(){ 128 $(this).html($(this).text()); 129 }); 130 131 132 // ----------------------------------------------------- 133 // wysiwygã®ä¸ã«tableãããã°ãwrapperã¯ã©ã¹ãä»ä¸ãã 134 // ï¼100%ãè¶ ããã¨ãã«wrapperå ã§ã¹ã¯ãã¼ã«ãããããï¼ 135 // ----------------------------------------------------- 136 if ($('.wysiwyg table').length){ 137 $('.wysiwyg table').wrap('<div class="table-wrapper"></div>'); 138 } 139 140 /** 141 IE8,9ã§XMLHttpRequestã®ä»£ããã«XDomainRequestã使ã 142 ãã®ã»ã¯ã·ã§ã³ã¯æ¶ããªãã§ãã ããã 143 */ 144 if ( window.XDomainRequest ) { 145 jQuery.ajaxTransport(function( s ) { 146 if ( s.crossDomain && s.async ) { 147 if ( s.timeout ) { 148 s.xdrTimeout = s.timeout; 149 delete s.timeout; 150 } 151 var xdr; 152 return { 153 send: function( _, complete ) { 154 function callback( status, statusText, responses, responseHeaders ) { 155 xdr.onload = xdr.onerror = xdr.ontimeout = xdr.onprogress = jQuery.noop; 156 xdr = undefined; 157 complete( status, statusText, responses, responseHeaders ); 158 } 159 xdr = new XDomainRequest();
160 xdr.open( s.type, s.url ); 161 xdr.onload = function() { 162 callback( 200, "OK", { text: xdr.responseText }, "Content-Type: " + xdr.contentType ); 163 }; 164 xdr.onerror = function() { 165 callback( 404, "Not Found" ); 166 }; 167 xdr.onprogress = function() {}; 168 if ( s.xdrTimeout ) { 169 xdr.ontimeout = function() { 170 callback( 0, "timeout" ); 171 }; 172 xdr.timeout = s.xdrTimeout; 173 } 174 xdr.send( ( s.hasContent && s.data ) || null ); 175 }, 176 abort: function() { 177 if ( xdr ) { 178 xdr.onerror = jQuery.noop(); 179 xdr.abort(); 180 } 181 } 182 }; 183 } 184 }); 185 } 186 187 188 //é²è¦§æ¯æ´ãã¿ããã¼ã§æä½ 189$('.accessibility .support a').on('click',function(e) { 190 e.preventDefault(); 191 $('.accessibility').toggleClass('active-acc-box') 192 $('.header-subnav-area').toggleClass('active-acc') 193 $('.header-subnav-box').toggleClass('active-header-subnav-box') 194 $('#header-logo').toggleClass('active-header-logo') 195 $('.mv-side-bnr').toggleClass('acive-mv-side-bnr') 196 if($('.header-subnav-area').hasClass('active-acc')){ 197 $('.unit .list li a').focus() 198 } 199}) 200 201$('.accessibility .language a').on('focus', function(e) { 202 $('.header-subnav-area').addClass('active-acc') 203 $('.unit .list li a').focus() 204 205 if($('.header-subnav-area').hasClass('active-acc')){ 206 $('.accessibility .support a').off('focus') 207 } 208}) 209$('.to-container a').focus(function() { 210 $('.header-subnav-area').toggleClass('active-acc'); 211}); 212 213 214 // PCã»ã¹ããåãæ¿ãï¼ã¬ã¹ãã³ã·ãï¼ 215 if( typeof MutualSwitching !== 'undefined') { 216 MutualSwitching.config.setPathSettings({ 217 "/": { 218 "pc_width": 1024, 219 "sp_width": 750, 220 "layout_type": 0 221 } 222 }); 223 MutualSwitching.run.ready(); 224 } 225 226});
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.