PageSourceSearch

https://info.hitachi-ics.co.jp/webhigis/js/jp/r1/common2.js

js hitachi-ics.co.jp collected 2026-10-02 06:07:14 UTC 30,487 bytes, 1,006 lines download raw bytes

1/* **************************************************
2
3Name: common2.js
4
5Description: Common Settings
6
7Create: 2021.08.01
8Update: 2023.05.22
9Update: 2023.09.13
10Update: 2025.09.30
11
12Copyright 2021 Hitachi, Ltd.
13
14***************************************************** */
15
16$.extend({
17
18    // ‰æ–ʃTƒCƒY
19    isLG : function(){
20        return (window.innerWidth || document.documentElement.clientWidth) >= 995
21    },
22    isMD : function(){
23        return (window.innerWidth || document.documentElement.clientWidth) < 995
24    },
25    isSM : function(){
26        return (window.innerWidth || document.documentElement.clientWidth) < 768
27    },
28    isXS : function(){
29        return (window.innerWidth || document.documentElement.clientWidth) < 580
30    },
31    isXXS : function(){
32        return (window.innerWidth || document.documentElement.clientWidth) < 400
33    }
34
35});
36
37
38// ƒRƒs[ƒ‰ƒCƒg
39$(function(){
40    const year1 = parseInt($("#Copyright span").text());
41    const year2 = (new Date()).getFullYear();
42    if (isNaN(year1)) return;
43    if (year1 == year2) return;
44    if (year1 < year2) $("#Copyright span").text(year1 + ", " + year2);
45});
46
47
48// Width Fix
49$(function(){
50    $("#HeaderArea1, #HeaderArea2, #FooterArea, #HorizontalLocalNaviArea, #Popup #Contents").each(function(){
51        if($(this).find(">.ContainerFix.Wide").length) {
52            $(this).addClass("FixWide");
53            return;
54        }
55        if($(this).find(">.ContainerFix").length) {
56            $(this).addClass("Fix");
57            return;
58        }
59    });
60});
61
62// ƒTƒ|[ƒgƒƒjƒ…[
63$(function(){
64    if ($(".SupportNaviIconText").length == 0) {
65        return;
66    }
67
68    const $search = $("#SupportNaviSearch");
69    const alt = $search.find("img").attr("alt");
70
71    $(".SupportNaviIconText>a, .SupportNaviIconText>button").each(function(){
72        if (!$(this).is($search)) {
73            $(this).find("img").attr("alt", null);
74        }
75    });
76
77    $(window).on("resize.SupportNavi", function(){
78        if ($.isSM()) {
79            $search.find("img").attr("alt", alt);
80        } else {
81            $search.find("img").attr("alt", null);
82        }
83    }).triggerHandler("resize.SupportNavi");
84});
85
86
87// ŒŸõ
88$(function(){
89
90    const $form = $("#SearchFormArea");
91    const $header = $("#HeaderArea1");
92    const $btn = $("button#SupportNaviSearch");
93
94    if ($form.length == 0 || $btn.length == 0) {
95        return;
96    }
97
98    // ŒŸõ‚ðŠJ‚­
99    function open() {
100        $("button#SupportNaviLang.is-open").triggerHandler("click");
101        $("#SpMenuBtn.is-open").triggerHandler("click");
102
103        if (!$.isSM() || $header.find(".ContainerFix").length) {
104            $form.stop(true, true).slideDown({progress:function(){
105                $header.css("margin-bottom", $form.outerHeight());
106            }});
107        } else {
108            $("html").css("overflow", "hidden");
109            $("body").addClass("spsearch-open");
110            $backdrop.appendTo("body");
111            $form.show();
112            setTimeout(function(){
113                $backdrop.addClass("show");
114                $form.addClass("show");
115            }, 50);
116        }
117
118        $btn.addClass("is-open").attr("aria-expanded", "true");
119    }
120
121    // ŒŸõ‚ð•‚¶‚é
122    function close() {
123        if (!$.isSM() || $header.find(".ContainerFix").length) {
124            $form.stop(true, true).slideUp({progress:function(){
125                $header.css("margin-bottom", $form.outerHeight());
126            }});
127        }
128        $("html").css("overflow", "");
129        $("body").removeClass("spsearch-open");
130        $form.removeClass("show");
131        $backdrop.removeClass("show");
132        $btn.removeClass("is-open").attr("aria-expanded", "false");
133    }
134
135    $form.on("transitionend webkitTransitionEnd", function() {
136        if (!$form.hasClass("show")) {
137            $form.hide();
138        }
139    });
140
141
142    // ƒTƒ|[ƒgƒƒjƒ…[‚ÌŒŸõƒ{ƒ^ƒ“
143    $("button#SupportNaviSearch").on("click", function(){
144        if ($(this).hasClass("is-open")) {
145            close();
146        } else {
147            open();           
148        }
149        return false;
150    });
151
152    // ŒŸõƒGƒŠƒA‚̕‚¶‚éƒ{ƒ^ƒ“
153    $("#SearchFormArea .BtnClose").on("click", function(){
154        $("button#SupportNaviSearch.is-open").triggerHandler("click");
155        return false;
156    });
157
158    // backdrop
159    const $backdrop = $('<div id="SpSearchBackdrop"></div>');
160    $backdrop.on("transitionend webkitTransitionEnd", function() {
161        if (!$backdrop.hasClass("show")) {
162            $backdrop.detach();
163        }
164    });
165    $backdrop.on("click", function(e) {
166        close();
167    });
168    
169    $(window).on("resize.SearchFormArea", function(){
170        $form.css("top", $header.height());
171        
172        if ($header.find(".Container").length) {
173            if ($.isSM()) {
174                $header.css("margin-bottom", "");
175                if ($form.is(":visible") && !$form.hasClass("show")) {
176                    close();
177                }
178            } else {
179                if ($form.is(":visible")) {
180                    if ($form.hasClass("show")) close();
181                    $header.css("margin-bottom", $form.outerHeight());
182                }
183            }
184        }
185      
186        return false;
187    }).triggerHandler("resize.SearchFormArea");
188});
189
190
191//  ’nˆæ AŒ¾Œê
192$(function(){
193
194    const $menu = $("#LangMenu");
195    const $btn = $("button#SupportNaviLang");
196
197    if ($btn.length == 0) return;
198    if ($menu.length == 0) return;
199
200    // ƒhƒƒbƒvƒ_ƒEƒ“‚̈ʒu‚Ì’²®
201    function offset() {
202        if (!$btn.is(":visible")) return;
203        $menu.offset({
204            top: $btn.offset().top + $btn.height(),
205            left: $btn.offset().left + $btn.outerWidth() - $menu.width()
206        });
207    }
208
209    // ƒhƒƒbƒvƒ_ƒEƒ“‚ðŠJ‚­
210    function open() {
211        $("button#SupportNaviSearch.is-open").triggerHandler("click");
212        $menu.stop(true, true).slideDown(function(){
213            if ($menu.find(">.Inner").height() > $menu.height() ) {
214                $menu.css("overflow-y", "scroll");
215            } else {
216                $menu.css("overflow-y", "hidden");
217            }
218        });
219        $backdrop.appendTo("body");
220        $btn.addClass("is-open").attr("aria-expanded", "true");
221        $btn.attr("aria-expanded", "true");
222        $("#HeaderArea1").addClass("countrymenu-open");
223        offset();
224    }
225
226    // ƒhƒƒbƒvƒ_ƒEƒ“‚ð•‚¶‚é
227    function close() {
228        $backdrop.detach();
229        $menu.stop(true, true).slideUp();
230        $btn.removeClass("is-open").attr("aria-expanded", "false");
231        $("#HeaderArea1").removeClass("countrymenu-open");
232    }
233
234    // ƒ{ƒ^ƒ“
235    $btn.on("click", function(){
236        if ($btn.length) {
237            $btn.hasClass("is-open") ? close() : open();
238            return false;
239        } else {
240            return true;
241        }
242    });
243
244    // blur
245    $menu.find("a").on("blur", function(){
246        setTimeout(function(){
247            if ($menu.find("a").index($(":focus")) == -1) {
248                close();
249            }
250        },50);
251    });
252 
253
254    // keydowniƒ{ƒ^ƒ“j
255    $btn.on("keydown", function(e){
256        if (e.keyCode == 13 || e.keyCode == 40) {
257            open();    
258            $menu.find("a:first-child").focus();
259            return false;
260        }
261        return true;
262    });
263
264    // keydowniƒƒjƒ…[“àj
265    $menu.find("a").on("keydown", function(e){
266        if (e.keyCode == 38) {
267            const $prev = $(this).prev();
268            if ($prev.length == 1) {
269                $prev.focus();
270            } else {
271                $menu.find("a:last-child").focus();
272            }
273            return false;
274        }
275        if (e.keyCode == 40) {
276            const $next = $(this).next();
277            if ($next.length == 1) {
278                $next.focus();
279            } else {
280                $menu.find("a:first-child").focus();
281            }
282            return false;
283        }
284        if (e.keyCode == 9) {
285            return true;
286        }
287    });
288
289    const $backdrop = $('<div id="LangBackdrop"></div>');
290    $backdrop.on("click", close);
291
292    // ƒŠƒTƒCƒY
293    $(window).on("resize.LangMenu", function(){
294        offset();
295        if ($.isSM() && $btn.hasClass("is-open")) {
296            close();
297        }
298    });
299
300});
301
302
303
304// ƒhƒƒbƒvƒ_ƒEƒ“ƒƒjƒ…[
305$(function(){
306
307    // ŠJ‚­
308    function open($btn) {
309        
310        // ŠJ‚¢‚Ä‚¢‚郁ƒjƒ…[‚ª‚ ‚ê‚Ε‚¶‚é
311        $(".DropDownMenu>button.is-open").not($btn).each(function(){
312            $(this).removeClass("is-open");
313            $(this).next("ul").stop(true, true).slideUp();
314        });
315
316        $btn.addClass("is-open").attr("aria-expand", "true");
317        $btn.next("ul").stop(true, true).slideDown();
318        $backdrop.appendTo("body");
319        $("#HeaderArea2").addClass("dropdown-open");
320    }
321
322
323    // •‚¶‚é
324    function close($btn) {
325        if ($btn == null) {
326            $(".DropDownMenu>button.is-open").each(function(){
327                $(this).removeClass("is-open");
328                $(this).next("ul").stop(true, true).slideUp();
329            });
330        } else {
331            $btn.removeClass("is-open").attr("aria-expand", "false");
332            $btn.next("ul").stop(true, true).slideUp();
333        }
334        $backdrop.detach();
335
336        $("#HeaderArea2").removeClass("dropdown-open");      
337    }
338
339
340    // ƒhƒbƒvƒ_ƒEƒ“ƒƒjƒ…[‚̈ʒu‚Ì’²®
341    function offset() {
342        $(".DropDownMenu>button.is-open").each(function(){
343            const $btn = $(this);
344            const $menu = $(this).next("ul");
345            const $container = $("#HeaderArea2>.Container ,#HeaderArea2>.ContainerFix");
346
347            if ($btn.offset().left + $menu.width() > $container.offset().left + $container.width()) {
348                $menu.offset({left: $btn.offset().left - $menu.width() + $btn.outerWidth()});
349            } else {
350                $menu.offset({left: $btn.offset().left});
351            }
352        });
353    }
354
355    
356    // ƒƒjƒ…[‚̃NƒŠƒbƒN
357    $(".DropDownMenu>button").on("click", function(){
358        if ($(this).hasClass("is-open")) {
359            close($(this));
360        } else {
361            open($(this));
362            offset();
363        }
364
365        return false;
366    });
367
368    // keydowniƒƒjƒ…[j
369    $(".DropDownMenu>button").on("keydown", function(e){
370        if (e.keyCode == 13 || e.keyCode == 40) {
371            if ($(this).hasClass("is-open")) {
372                close($(this));
373            } else {
374                open($(this));
375                offset();
376                $(this).next().find(">li:first-child>*").focus();
377            }            
378            return false;
379        }
380        return true;
381    });
382    
383     // ƒTƒuƒƒjƒ…[‚ÌŠJ•Â
384    $(".DropDownMenu>ul button").on("click", function(){
385
386        if ($(this).hasClass("is-open")) {
387            $(this).removeClass("is-open").attr("aria-expanded", "false");
388            $(this).next("ul").stop(true, true).slideUp();    
389        } else {
390            $(this).addClass("is-open").attr("aria-expanded", "true");
391            $(this).next("ul").stop(true, true).slideDown();
392        }
393        return false;
394    });
395
396    // keydowniƒƒjƒ…[“àj
397    $(".DropDownMenu>ul a, .DropDownMenu>ul button").on("keydown", function(e){
398        if (e.keyCode == 38) {
399            const $list = $(this).closest("ul").children();
400            var $prev = $(this).parent().prev();
401            if ($prev.length == 0) {
402                $prev = $list.last();
403            }
404            $prev.find(">a,>button").focus();
405            return false;
406        }
407        if (e.keyCode == 40) {
408            const $list = $(this).closest("ul").children();
409            var $next = $(this).parent().next();
410            if ($next.length == 0) {
411                $next = $list.first();
412            }
413            $next.find(">a,>button").focus();
414            return false;
415        }
416        if (e.keyCode == 39) {
417            const $ul = $(this).next("ul");
418            if ($ul.length) {
419                $(this).addClass("is-open").attr("aria-expanded", "true");
420                $ul.stop(true, true).slideDown();
421                $ul.find(">li:first-child>*").focus();
422            }
423            return false;
424        }
425        if (e.keyCode == 37) {
426            const $ul = $(this).closest("ul");
427            $ul.prev("button").focus().removeClass("is-open").attr("aria-expanded", "false");
428            $ul.stop(true, true).slideUp();
429            return false;
430        }
431        if (e.keyCode == 9) {
432            return true;
433        }
434        return true;
435    });
436    
437    
438    // ‘I‘𒆂̃ƒjƒ…[‚ðŠJ‚¢‚½ó‘Ô‚É‚·‚é
439    $(".DropDownMenu>ul li.Current").each(function(){
440        $(this).parents("ul:not([id^=GlobalNaviMenu])").each(function(){
441            if (!$(this).parent().hasClass("DropDownMenu")) {
442                $(this).show();
443                $(this).prev("button").addClass("is-open").attr("aria-expanded", "true");
444            }
445        });
446    });
447
448    // ƒtƒH[ƒJƒX
449    $(".DropDownMenu>ul a, .DropDownMenu>ul button").on("blur", function(e){
450        const $menu = $(this).closest(".DropDownMenu").find(">ul");
451        setTimeout(function(){
452            if ($menu.find("a,button").index($(":focus")) == -1) {
453                close();
454            }
455        },50);
456    });
457
458    // ƒEƒBƒ“ƒhƒEƒŠƒTƒCƒY
459    $(window).on("resize.DropDownMenu", function(){
460
461        // ƒhƒƒbƒvƒ_ƒEƒ“ƒƒjƒ…[‚̈ʒu‚𒲐®
462        offset();
463
464        // SPƒ‚[ƒh‚ɂȂÁ‚½‚烁ƒjƒ…[‚ð•‚¶‚é
465        if ($.isSM()) {
466            close();
467        }
468
469    });
470
471    // backdrop
472    const $backdrop = $('<div id="DropDownBackdrop"></div>');
473    $backdrop.on("click", function(){
474        close(null);
475    });
476
477});
478
479
480
481// ƒwƒbƒ_[ƒGƒŠƒA1ŒÅ’è
482$(function(){
483
484    const $body = $("body");
485    const $header1 = $("#HeaderArea1");
486    var scroll = 0;
487
488    if ($("#Popup").length) return;
489    if ($header1.find(">.ContainerFix").length) return;
490
491    // ƒXƒNƒ[ƒ‹
492    $(window).on("scroll.Header1", function(){
493
494        if (!$.isSM()) return;
495        if ($body.hasClass("menu-open")) return;
496        if ($body.hasClass("spsearch-open")) return;
497
498        if ($(window).scrollTop() <= 0) {
499            $body.removeClass("header1-fix header1-transition header1-show");
500            scroll = 0;
501            return;
502        }
503
504        if ($(window).scrollTop() < $header1.height() ) {
505            return;
506        }
507
508        // ƒwƒbƒ_[‚̌Œè
509        if (!$body.hasClass("header1-fix")) {
510            $body.addClass("header1-fix");
511            setTimeout(function(){
512                $body.addClass("header1-transition");
513            }, 50);
514
515        }
516
517        // ãƒXƒNƒ[ƒ‹
518        if ( $(window).scrollTop() <= scroll) {
519            $body.addClass("header1-show");        
520        } else {
521            $body.removeClass("header1-show");
522        }
523
524        // ‰¡ˆÊ’u‚Ì’²®
525        if ($.isSM()) {
526            if ($header1.width() > $(window).width()) {
527                $header1.css({left:0 - $(window).scrollLeft()});
528            } else {
529                $header1.css({left:0});
530            }
531        }
532
533        scroll = $(window).scrollTop()
534        
535    });
536
537     // ƒŠƒTƒCƒY
538     $(window).on("resize.HeaderArea1", function(){
539        if (!$.isSM()) {
540            $body.removeClass("header1-fix header1-transition header1-show");
541        }
542    });
543});
544
545
546// ƒwƒbƒ_[ƒGƒŠƒA2ŒÅ’è
547$(function(){
548
549    const $body = $("body");
550    const $header1 = $("#HeaderArea1");
551    const $header2 = $("#HeaderArea2");
552    var scroll = 0;
553
554    if (!$header2.hasClass("Sticky")) return;
555
556    // ƒXƒNƒ[ƒ‹
557    $(window).on("scroll.Header2", function(){
558
559        if ($.isSM()) {
560            if ($header2.find(">.Container").length) return;
561        }
562
563        if ($(window).scrollTop() <= $header1.outerHeight(true)) {
564            $body.css("padding-top", "");
565            $body.removeClass("header2-fix header2-transition header2-show");
566            $header2.css({left:0});
567            scroll = 0;
568            return;
569        }
570        
571        if ($(window).scrollTop() < $header1.outerHeight(true) + $header2.height()) {
572            return;
573        }
574        
575        if (!$body.hasClass("header2-fix")) {
576            $body.addClass("header2-fix");
577            setTimeout(function(){
578                $body.addClass("header2-transition");
579            }, 50);
580
581            $(".DropDownMenu>button.is-open").triggerHandler("click");
582            $("button#SupportNaviLang.is-open").triggerHandler("click");
583        }
584
585        if ($(window).scrollTop() <= scroll) {
586            $body.addClass("header2-show");
587        } else {
588            $body.removeClass("header2-show");
589            $(".DropDownMenu>button.is-open").triggerHandler("click")
590        }
591
592        $body.css("padding-top", $header2.height());
593
594        if ($header2.width() > $(window).width()) {
595            $header2.css({left:0 - $(window).scrollLeft()});
596        } else {
597            $header2.css({left:0});
598        }
599
600        scroll = $(window).scrollTop();
601    });
602
603     // ƒŠƒTƒCƒY
604     $(window).on("resize.HeaderArea2", function(){
605        if ($.isSM()) {
606            $body.removeClass("header2-fix header2-transition header2-show");
607            $body.css("padding-top", "");
608            $header2.css({left:0});
609        }
610    });
611});
612
613
614// ƒXƒ}ƒzƒƒjƒ…[
615$(function(){
616
617
618    const $spMenuBtn = $("#SpMenuBtn");
619    const $pcSupNavi = $("#SupportNavi").clone();
620    const $pcLangMenu = $("#LangMenu").clone();
621    const $pcGlobalMenu = $("#GlobalNaviMenu").clone();
622    const $pcMegaMenu = $("#MegaMenu").clone();
623    const $pcLocalMenu = $("#HorizontalLocalNavi").clone();
624    const $spGlobalMenu = ($pcGlobalMenu.length == 1 ? $pcGlobalMenu : $('<ul id="SpGlobalNavi"></ul>'));
625    const $spSupNavi = $('<ul id="SpSupportNavi"></ul>');
626    const $spModal = $('<div id="SpMenuModal" tabindex="-1"><div id="SpMenuModalDialog"><div id="SpMenuModalContent"><div id="SpMenuModalBody"></div></div></div></div>');
627
628    if ($("#HeaderArea1>.ContainerFix").length > 0) return;
629    if ($spMenuBtn.length == 0) return;
630
631    $spMenuBtn.attr("aria-expanded", "false");
632    $spMenuBtn.attr("aria-controls", "SpMenuModalDialog");
633
634    // backdrop
635    const $backdrop = $('<div id="SpMenuModalBackdrop"></div>');
636    $backdrop.on("transitionend webkitTransitionEnd", function() {
637        if (!$backdrop.hasClass("show")) {
638            $backdrop.detach();
639        }
640    });
641
642    // ƒƒjƒ…[‚ðŠJ‚­
643    function menuOpen() {
644
645        $("button#SupportNaviSearch.is-open").triggerHandler("click");
646
647        $("html").css("overflow", "hidden");
648        $("body").addClass("menu-open");        
649        $spMenuBtn.addClass("is-open").attr("aria-expanded", "true");
650        $backdrop.appendTo("body");
651        $spModal.show();
652        setTimeout(function(){
653            $backdrop.addClass("show");
654            $spModal.addClass("show");
655        }, 50);
656
657    }
658
659    // ƒƒjƒ…[‚ð•‚¶‚é
660    function menuClose() {
661        $("body").removeClass("menu-open");
662        $("html").css("overflow", "");
663        $backdrop.removeClass("show");
664        $spModal.removeClass("show");
665        $spMenuBtn.removeClass("is-open").attr("aria-expanded", "false");
666    }
667
668
669    // ƒƒjƒ…[ƒ{ƒ^ƒ“‚̃NƒŠƒbƒN
670    $spMenuBtn.on("click", function(){
671        if ($(this).hasClass("is-open")) {
672            menuClose();
673        } else {
674            menuOpen();
675        }
676        
677        return false
678    });
679
680    // ƒŠƒTƒCƒY
681    $(window).on("resize.SpMenu", function(){
682        if (!$.isSM()) {
683            menuClose();
684        }
685    });
686
687    // ƒƒjƒ…[€–Ú‚ÌŠJ•Â
688    $(document).on("click", "#SpGlobalNavi button,#SpSupportNavi button", function(){
689
690        if ($(this).hasClass("is-open")) {
691            $(this).removeClass("is-open").attr("aria-expanded", "false");
692            $(this).next("ul").stop(true, true).slideUp();
693        } else {
694            $(this).addClass("is-open").attr("aria-expanded", "true");
695            $(this).next("ul").stop(true, true).slideDown();
696        }
697
698        return false;
699    });
700
701    $spModal.on("click", function(e) {
702        if (e.target === e.currentTarget) {
703            menuClose();
704        }
705    });
706
707    // ƒƒjƒ…[‚̍\’z
708    // ƒOƒ[ƒoƒ‹ƒiƒr
709    if ($spGlobalMenu.length == 1) {
710        $spGlobalMenu.attr("id", "SpGlobalNavi");
711        $spGlobalMenu.find(".DropDownMenu").removeClass("DropDownMenu");
712        $spGlobalMenu.find(".is-open").removeClass("is-open").next("ul").hide();
713        $spGlobalMenu.find("button").each(function(){
714            const aria = $(this).attr("aria-controls");
715            const $ul = $(this).next("ul");
716            const id = $ul.attr("id");
717            if (aria) {
718                $(this).attr("aria-controls", "__SpMenu"+aria);
719                $ul.attr("id", "__SpMenu"+$ul.attr("ids"));
720            }
721            if (id) {
722                $(this).attr("aria-controls", "__SpMenu"+aria);
723                $ul.attr("id", "__SpMenu"+id);
724            }
725        });
726
727    }
728    
729    // ‰¡Œ^ƒ[ƒJƒ‹ƒiƒr
730    $pcLocalMenu.attr("id", "");
731    if ($pcLocalMenu.length) {
732        $spGlobalMenu.find(">.Current").each(function(){
733            $(this).append($pcLocalMenu.clone().css("display", "block"));
734        });
735    }
736
737    // ƒƒKƒƒjƒ…[
738    $pcMegaMenu.find(".MMGlobalNaviStyle").each(function(){
739        const $li = $("<li></li>");
740        if ($(this).hasClass("Current")) {
741            $li.addClass("Current");
742        }
743        $li.append($(this).find("a"));
744        $spGlobalMenu.append($li);
745    });
746
747
748    // ƒTƒ|[ƒgƒƒjƒ…[
749    $pcSupNavi.find(">a:not(#SupportNaviSearch),>button:not(#SupportNaviSearch)").each(function(){
750        const $li = $("<li></li>");
751        if ($(this).prop("tagName").toLowerCase() == "button" && $(this).attr("id") == "SupportNaviLang") {
752            const $ul = $("<ul></ul>");
753            const $btn = $("<button><span></span></button>");
754            const aria = $(this).attr("aria-controls");
755            $pcLangMenu.find("a").each(function(){
756                $ul.append($('<li></li>').append($(this)));
757            });
758            if ($(this).find("img").length) {
759                $(this).find("img").attr("alt", null);
760                $btn.find(">span").append($("<span class='Icon'></span>").append($(this).find("img")));
761            }
762            $btn.find(">span").append($(this).find(">span>span"));
763            if (aria) {
764                $ul.attr("id", "__SpMenu"+aria);
765                $btn.attr("aria-controls" , "__SpMenu"+aria);
766                $btn.attr("aria-expanded" , "false");
767            }
768            $li.append($btn).append($ul);
769            $spSupNavi.append($li);
770        } else if ($(this).prop("tagName").toLowerCase() == "a") {
771            const $item = $(this).clone();
772            if ($item.find("img").length) {
773                $item.find("img").attr("alt", null);
774                $item.prepend("<span class='Icon'></span>");
775                $item.find("span.Icon").append($item.find("img"));
776            }
777            $li.append($item);
778            $spSupNavi.append($li);
779        }
780    });
781    
782    // ƒƒjƒ…[‚ð’ljÁ
783    $spModal.find("#SpMenuModalBody").append($spGlobalMenu); 
784    $spModal.find("#SpMenuModalBody").append($spSupNavi);
785    $("#HeaderArea1").after($spModal);
786
787    $spModal.on("transitionend webkitTransitionEnd", function() {
788        if (!$spModal.hasClass("show")) {
789            $spModal.hide();
790        }
791    });
792});
793
794// ƒy[ƒWƒgƒbƒv‚Ö
795$(function(){
796
797    $("#FooterPageTop").off("click");
798    $("#FooterPageTop").on("click", function(){
799        var topID = (ua("safari")) ? "html,body" : "html";
800        var link = $(this).attr("href");
801        if(link.charAt(0)=="#" && link.charAt(1)!="") {
802            setTimeout(function() {
803                $(topID).stop().animate({scrollTop: 0}, 800, "easeInOutCubic", function() {
804                    location.href = link;
805                });
806            }, 50);
807            return false;
808        }
809        return false;
810    });
811
812
813    // FatMenu‚ª‚ ‚éê‡AˆÊ’u‚Ì’²®
814    function offset() {
815        var $prev = $("#FooterArea").prev();
816        var $target = null;
817        while(true) {
818            if (!($prev.hasClass("FatMenu") || $prev.hasClass("FatMenuWide") || $prev.hasClass("FatBanner"))) {
819                break;
820            }
821            if ($prev.is(":visible")) {
822                $target = $prev;
823            }
824            $prev = $prev.prev();
825        }
826        if ($target != null) {
827            $("#FooterPageTop").offset({top:$target.offset().top - $("#FooterPageTop").height()});
828        } else {
829            $("#FooterPageTop").css("top", "");
830        }
831    }
832
833    if ($("#FooterArea").prevAll(".FatMenu,.FatMenuWide,.FatBanner").length > 0) {
834        $(window).on("resize.FooterPageTop", offset);
835        offset();
836    }
837
838
839});
840
841
842// ƒŒƒXƒ|ƒ“ƒVƒuƒe[ƒuƒ‹
843$(function(){
844
845    $(".ResponsiveTableWindow").remove();
846    $(".LinkSet a").off("click");
847
848    var android4 = navigator.userAgent.indexOf("Android 4") !== -1;		// for Android 4.x
849    var contents = "#top, #SiteIdentity, #SiteIdentityS, #SiteIdentityL, #GlobalNavi, #TopicPath, #Contents, .Contents, .FatBanner, .FatMenu, .FatMenuWide, #Footer, #PageTopBottom, #HeaderArea1, #HeaderArea2, #FooterArea, #HorizontalLocalNaviArea";
850    var topID = (ua("safari")) ? "body" : "html";
851    var scrolltop = 0;
852    var label = "Close";
853
854    if ($("html").attr("lang") == "ja") label = "•‚¶‚é";
855    if ($("html").attr("lang") == "zh-cn") label = "\u5173\u95ed";
856
857    $(".ResponsiveTableStyle2, .ResponsiveTableStyle3").each(function() {
858        var grid = $(this).parent(".Grid4")[0] ? "Contents965" : "Contents720";
859        var tag = '<div class="ResponsiveTableWindow">';
860        tag += '<div class="ResponsiveTableHeaderArea">';
861        tag += '<div class="ResponsiveTableStatement">' + $("#Statement").html() + '</div>';
862        tag += '<button type="button" class="ResponsiveTableCloseBtn" aria-label="' + label + '"></button>';
863        tag += '</div>';
864        tag += android4 ? '<div class="ResponsiveTableContainer">' : '';	// for Android 4.x
865        tag += '<div class="' + grid + '">';
866        tag += $(this).find(".TableSet").html();
867        tag += '</div>';
868        tag += android4 ? '</div>' : ''; // for Android 4.x
869        tag += '</div>';
870        $("body").append(tag);
871    });
872
873    $(".LinkSet a").on("click", function() {
874        scrolltop = $(topID).scrollTop();
875        var index = $(".LinkSet a").index(this);
876        $("html").addClass("ResponsiveTableWindowOpen");
877        $(contents + ", #HeaderArea").hide();
878        $(".ResponsiveTableWindow").eq(index).show();
879        $(topID).scrollTop(0);
880    });
881
882    $(".ResponsiveTableCloseBtn").on("click", function() {
883        var index = $(".ResponsiveTableCloseBtn").index(this);
884        $("html").removeClass("ResponsiveTableWindowOpen");
885        $(contents).removeAttr("style");
886        $("#HeaderArea").show();
887        $(".ResponsiveTableWindow").eq(index).removeAttr("style");
888        $(topID).scrollTop(scrolltop);
889    });
890
891});
892
893// ƒwƒbƒ_[ƒGƒŠƒA1íÝ
894$(function(){
895
896    const $body = $("body");
897    const $header1 = $("#HeaderArea1");
898
899	if (!$header1.hasClass("Sticky2")) return;
900	if ($header1.find(">.ContainerFix").length) return;
901
902	$(window).off("scroll.Header1");
903	$(window).off("resize.Header1");
904
905	function fix() {
906		if (!$header1.hasClass("__Sticky")) {
907			$header1.addClass("__Sticky");
908			$header1.css("position", "fixed");
909			$header1.css("top", "0");
910			$header1.css("width", "100%");
911			$header1.css("z-index", "80");
912			$header1.css("box-shadow", "0 0.125rem 0.25rem rgba(12, 12, 12, 0.05)");
913			$body.css("padding-top", $header1.height());
914		}
915	}
916
917	function unfix() {
918		if ($header1.hasClass("__Sticky")) {
919			$header1.removeClass("__Sticky");
920			$header1.css("position", "");
921			$header1.css("top", "");
922			$header1.css("width", "");
923			$header1.css("z-index", "");
924			$header1.css("box-shadow", "");
925			$body.css("padding-top", "");
926		}
927	}
928
929    $(window).on("scroll.Header1", function(){
930        if ($.isSM()) {
931			if ($(window).scrollTop() > 0) {
932				fix();
933			} else {
934				unfix();
935			}
936        } else {
937			unfix();
938		}
939    });
940
941
942	$(window).on("resize.HeaderArea1", function(){
943		$(window).triggerHandler("scroll.Header1");
944    });
945
946	$(window).triggerHandler("scroll.Header1");
947});
948
949// ƒwƒbƒ_[ƒGƒŠƒA2íÝ
950$(function(){
951
952    const $body = $("body");
953    const $header1 = $("#HeaderArea1");
954    const $header2 = $("#HeaderArea2");
955
956    if (!$header2.hasClass("Sticky2")) return;
957
958	function fix() {
959		if (!$header2.hasClass("__Sticky")) {
960			$header2.addClass("__Sticky");
961			$header2.css("position", "fixed");
962			$header2.css("top", "0");
963			$header2.css("width", "100%");
964			$header2.css("z-index", "90");
965			$header2.css("box-shadow", "0 0.125rem 0.25rem rgba(12, 12, 12, 0.05)");
966			$body.css("padding-top", $header2.height());
967		}
968
969		if ($header2.hasClass("__Sticky")) {
970			$header2.css("left", (0 - $(window).scrollLeft()) + "px");
971		}
972	}
973
974	function unfix() {
975		if ($header2.hasClass("__Sticky")) {
976			$header2.removeClass("__Sticky");
977			$header2.css("position", "");
978			$header2.css("top", "");
979			$header2.css("left", "");
980			$header2.css("width", "");
981			$header2.css("z-index", "");
982			$header2.css("box-shadow", "");
983			$body.css("padding-top", "");
984		}
985	}
986
987    $(window).on("scroll.Header2", function(){
988		if ($header1.find(">.ContainerFix").length == 0 && $.isSM()) {
989			//return;
990			unfix();
991		} else {
992			if ($(window).scrollTop() > $header1.outerHeight(true)) {
993				fix();
994			} else {
995				unfix();
996			}
997		}
998    });
999
1000
1001	$(window).on("resize.HeaderArea2", function(){
1002		$(window).triggerHandler("scroll.Header2");
1003    });
1004
1005	$(window).triggerHandler("scroll.Header2");
1006});

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.