1var ua = window 2 .navigator 3 .userAgent 4 .toLowerCase(), 5 appVer = window 6 .navigator 7 .appVersion 8 .toLowerCase(), 9 uaName = "unknown", 10 uaVer = ""; 11isAndroid = !1, 12ios = "", 13isIE = !1, 14isOldIE = !1, 15iosVer = "", 16htmlClass = "", 17ua.match(/msie/) || ua.match(/trident/) 18 ? (uaName = "ie", uaVer = ua.match(/(msie\s|rv:)([\d\.]+)/)[2], isIE = !0, parseInt(uaVer) <= 8 && (isOldIE = !0), htmlClass = uaName + "_" + parseInt(uaVer)) 19 : -1 != ua.indexOf("chrome") 20 ? uaName = "chrome" 21 : -1 != ua.indexOf("iphone") 22 ? (uaName = "iphone", ios = ua.match(/os (\d+)_(\d+)_?(\d+)?/), uaVer = uaName + "_" + [parseInt(ios[1], 10), parseInt(ios[2], 10), parseInt(ios[3] || 0, 10)][0]) 23 : -1 != ua.indexOf("ipad") 24 ? (uaName = "ipad", ios = ua.match(/os (\d+)_(\d+)_?(\d+)?/), uaVer = uaName + "_" + [parseInt(ios[1], 10), parseInt(ios[2], 10), parseInt(ios[3] || 0, 10)][0]) 25 : -1 != ua.indexOf("ipod") 26 ? uaName = "ipod" 27 : -1 != ua.indexOf("opera") 28 ? uaName = "opera" 29 : ua.match(/android/) 30 ? (uaName = "android", uaVer = uaName + "_" + ua.match(/android ([\d\.].[\d\.])/)[1], htmlClass = uaName + "_" + ua.match(/android ([\d\.].[\d\.])/)[1].replace(".", "_")) 31 : -1 != ua.indexOf("gecko") 32 ? uaName = "firefox" 33 : -1 != ua.indexOf("safari") 34 ? uaName = "safari" 35 : -1 != ua.indexOf("mobile") && (uaName = "mobile"), 36htmlClass && $("html").addClass(htmlClass), 37location 38 .hostname
39 .indexOf("mitsui-direct.co.jp") >= 0 && (document.domain = "mitsui-direct.co.jp"), 40menuMove = function (t) { 41 var $ddm = $("#dropDownMenu"); 42 if (!$ddm.find('> .__stash')[0]) {$ddm.prepend('<div class="__stash">éãã</div>');} 43 var $nav = $(".nav_menu"); 44 if ($nav[0] && !$nav.find('> .add_local')[0]) { 45 if (location.pathname.indexOf('/car/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/car/" class="icn _car">èªåè»<br>ä¿éº</a></span' + 46 '>');} 47 if (location.pathname.indexOf('/bike/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/bike/" class="icn _bike">ãã¤ã¯<br>ä¿éº</a></sp' + 48 'an>');} 49 if (location.pathname.indexOf('/driver/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/driver/" class="icn _driver">ãã©ã¤ãã¼<br>ä¿éº</' + 50 'a></span>');} 51 if (location.pathname.indexOf('/medical/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/customer/" class="icn _myhomepage">ãå¥ç´è <br' + 52 '>ãã¼ã¸</a></span>');} 53 if (location.pathname.indexOf('/customer/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/customer/" class="icn _myhomepage">ãå¥ç´è <br' + 54 '>ãã¼ã¸</a></span>');} 55 if (location.pathname.indexOf('/response/') === 0) {$nav.prepend('<span class="nav_add_spicn"><a href="/response/" class="icn _accident">äºæ <br>対å¿<' + 56 '/a></span>');} 57 } 58 "smart" == t 59 ? $("#dropDownMenu .__main").append($(".nav_header .__service")).append($(".nav_header .__user")).append($(".nav_header .__accident")).append($(".nav_header .__support")).append($(".nav_header .__search")).append($("main .nav_local .__local")) 60 : "desktop" == t && ($(".nav_global").append($("#dropDownMenu .__service")).append($("#dropDownMenu .__user")).append($("#dropDownMenu .__accident")), $(".__assistance").append($("#dropDownMenu .__search")).find(".nav_support").append($("#dropDownMenu .__support")), $("main .nav_local > .container").append($("#dropDownMenu .__local"))) 61}, 62panelMove = function (t) { 63 "smart" == t 64 ? $(".is-hidden-ld.teleport").append($("aside .teleport > *")) 65 : "desktop" == t && $("aside .teleport").append($(".is-hidden-ld.teleport > *")) 66}, 67modal = function (t, e) { 68 $("body").append('<div class="mdl_modal"></div>'), 69 $("body").append('<div class="mdl_modal_dialog">' + e + '<button class="btn _close __hollow js_close __s" style="margin:2em auto 0 auto;w' + 70 'idth:6em;min-width:6em;max-width:6em;display:block;">éãã</button></div>'), 71 $(".btn._close.js_close").focus(), 72 $(".mdl_modal_dialog .js_close").on("click", function () { 73 $(".mdl_modal,.mdl_modal_dialog").remove() 74 }) 75}, 76fbresize = function () {}, 77queries = [ 78 { 79 context: "mobile", 80 match: function () { 81 menuMove("smart"), 82 panelMove("smart"), 83 $(".mdl_fb-widget").each(function () { 84 $(this).children(".fb-like-box").attr({"data-width": $(this).outerWidth()}) 85 }), 86 $(".toggle_btn").unbind(), 87 $(".toggle_btn").tappable(function () { 88 $(this).closest("tr").find(".chk_detail").toggleClass("toggle_open") 89 }), 90 $(".tgl_sd .tgl_ttl").unbind(), 91 $(".tgl_sd .tgl_ttl").tappable(function () { 92 $(this).closest(".tgl_sd").toggleClass("js_tgl_open_sd") 93 }), 94 $("span[href^=tel]").each(function () { 95 $(this).replaceWith('<a href="' + $(this).attr("href") + '" class="' + $(this).attr("class") + '">' + $(this).text() + "</a>") 96 }), 97 $(".js_phonelink").not("a").each(function () { 98 $(this).wrapInner('<a href="tel:' + $(this).text().replace(/-/g, "") + '"></a>') 99 }) 100 }, 101 unmatch: function () { 102 $(".tgl_sd .tgl_ttl").unbind(), 103 $(".tgl_sd .tgl_ttl").each(function () { 104 $(this).closest(".tgl_sd").removeClass("js_tgl_open_sd") 105 }), 106 $(".js_phonelink > a").each(function () { 107 $(this).replaceWith($(this).text()) 108 }) 109 } 110 }, {
111 context: "tablet", 112 match: function () { 113 menuMove("smart"), 114 panelMove("smart"), 115 $(".mdl_fb-widget").each(function () { 116 $(this).children(".fb-like-box").attr({"data-width": $(this).outerWidth()}) 117 }), 118 $("a[href^=tel]:not([class^=md-]").each(function () { 119 $(this).replaceWith('<span href="' + $(this).attr("href") + '" class="' + $(this).attr("class") + '">' + $(this).text() + "</span>") 120 }) 121 }, 122 unmatch: function () { 123 $("._tgl_trigger_sd").each(function () { 124 $(this).closest(".mdl_tgl_sd").addClass("js_tgl_open_sd") 125 }) 126 } 127 }, { 128 context: "desktop", 129 match: function () { 130 $("a[href^=tel]:not([class^=md-]").each(function () { 131 $(this).replaceWith('<span href="' + $(this).attr("href") + '" class="' + $(this).attr("class") + '">' + $(this).text() + "</span>") 132 }), 133 menuMove("desktop"), 134 panelMove("desktop"), 135 $(".mdl_fb-widget").each(function () { 136 $(this).children(".fb-like-box").attr({"data-width": $(this).outerWidth()}) 137 }), 138 $(".__widepage aside").each(function () { 139 var t = $(this).height(), 140 e = $(this).find(".col_24 .mdl_help").height(); 141 e >= t && $(this).height(e + 20) 142 }) 143 }, 144 unmatch: function () { 145 $(".__widepage aside").each(function () { 146 $(this).height("auto") 147 }) 148 } 149 } 150], 151MQ.init(queries), 152$(function () { 153 var t = ("ontouchstart" in window || navigator.msMaxTouchPoints > 0, location.pathname.replace(/index.html/, "")); 154 $(".tgl .tgl_ttl").tappable(function () { 155 $(this).closest(".tgl").toggleClass("js_tgl_open") 156 }), 157 $(".nav_local, #dropDownMenu .__local").each(function () { 158 var e = t; 159 e.match("/car/maruwakari") && (e = "/car/guide/maruwakari"), 160 e.match("/car/knowledge/") && (e = "/car/guide/knowledge/"), 161 e.match("/bike/column/") && (e = "/car/guide/column/useful/"), 162 e.match("/driver/column/") && (e = "/car/guide/column/useful/"), 163 e.match("/car/guide/column/car/") && (e = "/car/guide/column/useful/"), 164 $(this).find("a").each(function () { 165 var t = $(this).attr("href").replace(/index.html/, ""), 166 a = e.split("/").length - 1; 167 e.match(t) && (2 >= a 168 ? $(this).closest("li:first-child").addClass("is-active") 169 : $(this).closest("li:not(:first-child)").addClass("is-active")) 170 }) 171 if (e === '/car/guide/column/') { 172 $('.column._column .__local > li:first-child').addClass("is-active"); 173 } 174 }), 175 $(".nav_local.ace").each(function () { 176 var e = t; 177 $(this).find("a").each(function () { 178 var t = $(this).attr("href").replace(/index.html/, ""), 179 a = e.split("/").length - 1; 180 e.match(t) && (4 >= a 181 ? $(this).closest("li:first-child").addClass("is-active") 182 : $(this).closest("li:not(:first-child)").addClass("is-active")) 183 }) 184 }), 185 $(".nav_aside_local").each(function () { 186 var e = t; 187 $("#depthnaviuri").length && (e = depthnaviuri), 188 $(this).find("a").each(function () { 189 var t = $(this).attr("href").replace(/index.html/, ""); 190 e.match(t) && ($(this).addClass("is-active"), $(this).is(":hidden") && $(this).closest("ul").prev("a").addClass("is-active")) 191 }) 192 }), 193 $(".js_cslt").each(function () { 194 isOldIE || $(this).customSelect($(this).hasClass("js_select-sd") 195 ? { 196 customClass : "js_select-sd" 197 } 198 : { 199 customClass : "select" 200 }) 201 }); 202 var e = !1; 203 $(".nav_pagetop a").on("click", function () { 204 return e = $(window).scrollTop(), 205 $("body, html").animatescroll({ 206 scrollSpeed: 1e3, 207 easing: "easeOutQuad", 208 onScrollEnd: function () { 209 e = !1 210 } 211 }), 212 !1 213 }), 214 /^ip/.test(uaName) || $(window).on("scroll", function () { 215 return e 216 ? (e - $(this).scrollTop() < 0 && $("html, body").stop(), e = $(this).scrollTop(), !1) 217 : void 0 218 }); 219 var a = "onwheel" in document 220 ? "wheel" 221 : "onmousewheel" in document 222 ? "mousewheel" 223 : "DOMMouseScroll"; 224 $(document).on(a + " touchmove", function () { 225 $("html, body").stop(), 226 e = !1 227 }), 228 $(window).on("scroll resize", function () { 229 var t = $(this).scrollTop(), 230 e = t > $("main").eq(0).offset().top + $(window).height() / 2, 231 a = t > $("footer").eq(0).offset().top - $(window).height(); 232 $(".nav_pagetop, .top-btn-fixed").toggleClass("__active", e || a).toggleClass("__lower", a); 233 }), 234 $("body").is(".popup, ._lp, ._other") 235 ? "mainWin" === window.name && (window.name = "") 236 : window.name = "mainWin", 237 $("a[target]").on("click", function () { 238 var t = $(this).attr("target"), 239 e = $(this).attr("href"), 240 a = { 241 subWin: "scrollbars=yes,width=780,height=" + window.parent.screen.height / 1.5 + ",,, menubar=0, toolbar=0, status=0, resizable=1", 242 subWin1: "scrollbars=yes,width=780,height=" + window.parent.screen.height / 1.5 + ",,, menubar=0, toolbar=0, status=0, resizable=1", 243 "case": "scrollbars=yes,width=780,height=" + window.parent.screen.height / 1.5 + ",,, menubar=0, toolbar=0, status=0, resizable=1", 244 mainWin: "scrollbars=yes,menubar=1, toolbar=1, status=1, resizable=1", 245 subWin3: "scrollbars=yes,width=976,height=" + window.parent.screen.height / 1.5 + ",,, menubar=0, toolbar=0, status=0, resizable=1" 246 }; 247 if ("_blank" !== t) { 248 var n = window.open(e, t, a[t]); 249 return window.focus && n.focus(), 250 !1 251 } 252 }), 253 $(".btn.js_close").each(function () { 254 !window.opener || window.opener.closed 255 ? $(this).on("click", function () { 256 window.close() 257 }) 258 : $(this).on("click", function () { 259 window.close() 260 }) 261 }), 262 $(window).on('load', function () { 263 if (htmlClass === "ie_11") { 264 MQ.listenForChange(); 265 } 266 }), 267 (function () { 268 var $body = $("body"), 269 $dm = $("#dropDownMenu"); 270 $body.on("touchstart click", function (event) { 271 if ($body.hasClass("dropdown-open")) {event.preventDefault(); 272 $dm.removeClass("is-open"); 273 $body.removeClass("dropdown-open");} 274 }); 275 $dm.on("touchstart click", function (event) { 276 event.stopPropagation(); 277 }); 278 $(".btn_dropdown").on('touchstart click', function (event) { 279 event.stopPropagation(); 280 event.preventDefault(); 281 $dm.toggleClass("is-open"); 282 $body.toggleClass("dropdown-open"); 283 }).on("click", function () { 284 return !1 285 }); 286 $dm.find(".__stash").on("touchstart click", function () { 287 return $dm.removeClass("is-open"), 288 $body.removeClass("dropdown-open"), 289 e = $(window).scrollTop(), 290 $("body, html").animatescroll({ 291 scrollSpeed: 500, 292 easing: "easeOutQuad", 293 onScrollEnd: function () { 294 e = !1 295 } 296 }), 297 !1 298 }); 299 }()), 300 $("body").filter("._howto, ._campaign, ._important").find("a[href*=_main]").each(function () { 301 this.href = this.href.replace(/_main/, "") 302 }), 303 $("[name='page_id']").each(function () { 304 $(this).val($("#page_id").text()) 305 }) 306}), 307String.prototype.toOneByteAlphaNumeric = function () { 308 return this.replace(/[A-Zï½-ï½ï¼-ï¼]/g, function (t) { 309 return String.fromCharCode(t.charCodeAt(0) - 65248) 310 }) 311}, 312String.prototype.toTwoByteAlphaNumeric = function () { 313 return this.replace(/[A-Za-z0-9]/g, function (t) { 314 return String.fromCharCode(t.charCodeAt(0) + 65248) 315 }) 316}, 317String.prototype.toZenkaku = function () { 318 for (txt = "アイウエオカキクケコサシスセソï¾ï¾ï¾ï¾ï¾ï¾ ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï¾ï½¦ï¾ï½§ï½¨ï½©ï½ªï½«ï½¬ï½ï½®ï½¯ï½¤ï½¡ï½°ï½°ï½¢ï½£ï¾ï¾", zen = "ã¢ã¤ã¦ã¨ãªã«ãã¯ã±ã³ãµã·ã¹ã»ã½ã¿ããããããããããããããããã ã¡ã¢ã¤ã¦ã¨ã©ãªã«ã¬ãã¯ã²ã³ã¡ã£ã¥ã§ã©ã£ã¥ã§ãããã¼ï¼ãã", zen += "ãããããã¬ã®ã°ã²ã´ã¶ã¸ãºã¼ã¾ããã ãããããããããããããããããããããããããããããããããããããããããã", zen += "ããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã", str = "", i = 0; i < this.length; i++) 319 c = this.charAt(i), 320 cnext = this.charAt(i + 1), 321 n = txt.indexOf(c, 0), 322 nnext = txt.indexOf(cnext, 0), 323 n >= 0 && (60 == nnext 324 ? (c = zen.charAt(n + 60), i++) 325 : 61 == nnext 326 ? (c = zen.charAt(n + 120), i++) 327 : c = zen.charAt(n)), 328 60 != n && 61 != n && (str += c); 329 return str 330}; 331 332(function ($) { 333 $(function () { 334 if ($ === 'undefined' || $ !== window.jQuery) {return;} 335 var l = location.pathname.split('/'); 336 if (l[2] === 'feature' && l[3] === '' && location.hash) { 337 var e = encodeURIComponent(location.hash.split('#')[1]); 338 if (e.indexOf('%') !== -1) {return;} 339 $('#' + e).addClass('js_tgl_open_sd'); 340 } 341 }); 342})(window.jQuery); 343 344// /corporate/ããç§»æ¤ 345(function ($, win, doc) { 346 'use strict'; 347 348 var html; 349 var $scrollElem; 350 var focusElems; 351 352 if (!$) { 353 return; 354 } 355 356 html = doc.documentElement; 357 $scrollElem = $(doc.scrollingElement || /* IE */ html); 358 focusElems = 'a[href], area[href], [tabindex], button, input, select, textarea, iframe, object, audio, video, output, embed, summary'; 359 360 $(function () { 361 // ãã£ã¨è¦ããªã¹ãæ©è½
362 $('.js-see-more-items').setSeeMoreList(); 363 }); 364 365 // ãã£ã¨è¦ããªã¹ãæ©è½ 366 $.fn.setSeeMoreList = function (options) { 367 var config; 368 369 if (!this) { 370 return this; 371 } 372 373 config = $.extend({ 374 limitNum: 4, // åæè¡¨ç¤ºããä»¶æ° 375 showNum: 7, // åå²ãã¦è¡¨ç¤ºããä»¶æ°ï¼ç©ºã®å ´åã¯å ¨ã¦ï¼ 376 accessibleName: { 377 open: '\u3082\u3063\u3068\u898b\u308b' // ãã£ã¨è¦ã 378 }, 379 className: { 380 btnWrap: 'js-see-more-items-btn-wrap', // ããã£ã¨è¦ãããã¿ã³ã®å¤è£ ã«ãããdivè¦ç´ ã®classå 381 btn: 'js-see-more-items-btn', // ããã£ã¨è¦ãããã¿ã³ã®buttonè¦ç´ ã®classå 382 label: 'js-see-more-items-label' // ããã£ã¨è¦ãããã¿ã³ã®ã©ãã«ã«ãããspanè¦ç´ ã®classå 383 } 384 }, options); 385 386 return this.each(function () { 387 var $seeMoreList = $(this); 388 var $item = $seeMoreList.find('.js-see-more-item'); 389 var $eachElem; 390 var $eachFocusElems; 391 var eachTabindex = []; 392 var len = $item.length; 393 var jLen; 394 var i; 395 var j; 396 397 // å¶å¾¡ããä»¶æ°ã«æºããªãå ´åã¯çµäº 398 if (len <= config.limitNum) { 399 return; 400 } 401 402 // åãæ¿ããã¿ã³ããªãå ´åã®ã¿ãã¿ã³ã追å 403 if ($seeMoreList.find('.' + config.className.btnWrap).length === 0) { 404 $seeMoreList.append( 405 '<div class="' + config.className.btnWrap + '"><button type="button" class="' + config.className.btn + ' btn btn_default icn _arw_r grid_24 grid_md_10" aria-pressed="false"><span class="' + config.className.label + '">' + config.accessibleName.open + '</span></button></div>' 406 ); 407 } 408 409 for (i = 0; i < len; i++) { 410 $eachElem = $item.eq(i); 411 $eachFocusElems = $eachElem.find(focusElems); 412 jLen = $eachFocusElems.length; 413 414 // ã表示ããä»¶æ°ã以ä¸ã®è¦ç´ ãé ã 415 if (i >= config.limitNum) { 416 $eachElem.attr('aria-hidden', true); 417 418 for (j = 0; j < jLen; j++) { 419 eachTabindex.push($eachFocusElems.eq(j).prop('tabindex')); 420 } 421 422 $eachElem.find(focusElems).prop('tabindex', -1); 423 } 424 } 425 426 $seeMoreList.on('click', '.' + config.className.btn, function () { 427 var $btn = $(this); 428 var $btnParents = $btn.parents($seeMoreList); 429 var $hideElem; 430 var lenHide; 431 432 $hideElem = $btnParents.find('.js-see-more-item[aria-hidden="true"]'); 433 lenHide = $hideElem.length; 434 435 if (config.showNum === '') { 436 $hideElem.attr('aria-hidden', false); 437 438 for (i = 0; i < len; i++) { 439 $eachElem = $hideElem.eq(i); 440 $eachFocusElems = $eachElem.find(focusElems); 441 jLen = $eachFocusElems.length; 442 443 for (j = 0; j < jLen; j++) { 444 $eachFocusElems.eq(j).prop('tabindex', eachTabindex[j]); 445 446 setTimeout(function () { 447 eachTabindex.shift(); 448 }, 10); 449 } 450 } 451 } else { 452 for (i = 0; i < config.showNum; i++) { 453 $eachElem = $hideElem.eq(i); 454 $eachFocusElems = $eachElem.find(focusElems); 455 jLen = $eachFocusElems.length; 456 457 $eachElem.attr('aria-hidden', false); 458 459 for (j = 0; j < jLen; j++) { 460 $eachFocusElems.eq(j).prop('tabindex', eachTabindex[j]); 461 462 setTimeout(function () { 463 eachTabindex.shift(); 464 }, 10); 465 } 466 } 467 } 468 469 // ãã¿ã³ãç»é¢å¤ã«æ¼ãåºããã¦ãã¾ãå ´åã«ããã¿ã³ã®ä½ç½®ãèª¿æ´ 470 if ($btn.offset().top >= $scrollElem[0].scrollTop + win.innerHeight) { 471 $btn[0].scrollIntoView(false); 472 } 473 474 $hideElem = $btnParents.find('.js-see-more-item[aria-hidden="true"]'); 475 lenHide = $hideElem.length; 476 477 if (lenHide === 0) { 478 $btn.prop('disabled', true); 479 } 480 }); 481 }); 482 }; 483}(window.jQuery, window, window.document)); 484 485(function ($) { 486 'use strict'; 487 var $isVisible = $('.js-is-visible'); 488 $isVisible.attr('aria-hidden', 'false'); 489})(window.jQuery); 490 491(function ($) { 492 'use strict'; 493 494 var hideItem = $('body').find('.btn_close.js_close, header, footer, main > .container.row > .col_6, .nav_local, .corp-nav, .nav_breadcrumb, .mdl_align-height.is-visible-ld, .mdl_onfooter, .corp-region-cv, .md-breadcrumb, .md-nav-scroll-top, .md-
494panel-wave.-bc-sub-light.-shape-02.-only-top,.js-use_iframe'); 495 496 var thisUrl = location.search.substring(1).split('&'); 497 var thisParaBase; 498 var thisPara = []; 499 var i; 500 var paraUseIframe; 501 502 for (i = 0; i < thisUrl.length; i++) { 503 thisParaBase = thisUrl[i].split('='); 504 thisPara[thisParaBase[0]] = thisParaBase[1]; 505 } 506 507 paraUseIframe = thisPara.use_iframe; 508 509 if (paraUseIframe === '1') { 510 hideItem.attr('style', 'display: none !important;'); 511 } 512}(window.jQuery)); 513 514(function (DOC, run) { 515 'use strict'; 516 517 if (run === -1) { 518 // use_iframe=1ãURLã«å«ã¾ãã¦ããªããã°çºç«ããªã 519 return; 520 } 521 522 const allLinks = DOC.querySelectorAll('a[href]'); 523 524 /** 525 * @type {RegExp} ãã©ã¡ã¼ã¿ãå¼ãç¶ããªããªã³ã¯ç¨®å¥ãå¤å®ããããã®æ£è¦è¡¨ç¾ 526 * 以ä¸ã®ãã¿ã¼ã³ãé¤å¤ãã¦ãã¾ãã 527 * * pdfã®ãªã³ã¯å ¨ã¦ 528 * * jsãªã³ã¯å ¨ã¦ï¼href屿§ã«ç´æ¥é¢æ°ãå ¥ãã¦ãããã®ï¼ 529 * * target屿§ã_parentä»¥å¤ 530 * * é·ç§»å ã®ãã¡ã¤ã³åã«(mitsui-direct.co.jp|md1.jp)ãå«ã¾ãã¦ããªããã® 531 */ 532 const checkReg = { 533 'href': /\.pdf|^javascript|^#/, 534 'target': '_parent', 535 'domain': /(mitsui\-direct\.co\.jp|md1\.jp)/ 536 } 537 538 /** 539 * ãã©ã¡ã¼ã¿ãå¼ãç¶ããªããªã³ã¯ãéå¼ã颿° 540 */ 541 function checkParamInherit(item) { 542 let isInherit = true; 543 544 if (checkReg.href.test(item.getAttribute('href'))) { 545 isInherit = false; 546 } 547 if ( 548 item.hasAttribute('target') 549 && item.getAttribute('target') !== checkReg.target 550 ) { 551 isInherit = false; 552 } 553 if (!checkReg.domain.test(item.href)) { 554 isInherit = false; 555 } 556 return isInherit; 557 } 558 559 for (let i = 0, max = allLinks.length; i < max; i++) { 560 if (checkParamInherit(allLinks[i])) { 561 const href = allLinks[i].getAttribute('href'); 562 allLinks[i].setAttribute('href', href + '?use_iframe=1'); 563 } 564 } 565}(document, function () { 566 const param = window.location.search; 567 return param.indexOf('use_iframe=1'); 568}()));
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.