PageSourceSearch

https://www.meg-snow.com/ir/assets/js/sidenav.js

js meg-snow.com collected 2026-10-02 05:22:41 UTC 1,787 bytes, 53 lines download raw bytes

1$(function(){
2
3	/* current
4	---------------------------------------------------------- */
5	var SideNavCurrent = function(){
6        // var url = location.pathname;
7        // console.log(url);
8        // var urlSplit = url.split('/');
9        // console.log('pathは' + urlSplit);
10        // var urlsplitLv2 = urlSplit[1];
11        // console.log('urlsplitLv2は' + urlsplitLv2);
12        // var urlsplitLv3 = urlSplit[2];
13        // console.log('urlsplitLv3は' + urlsplitLv3);
14
15        var $targetParent = $('.l-sidenav__lower');
16
17        $targetParent.each(function(){
18            var $lv2 = $(this).children('.l-sidenav-lv2');
19            var urlLv2 = $lv2.children('a').attr('href');
20
21            if(location.href.match(urlLv2)) {
22                $(this).addClass('is-current');
23                $(this).addClass('is-active');
24            } else {
25                $(this).removeClass('is-current');
26                $(this).removeClass('is-active');
27            }
28
29            if(location.href.match('merit')) {
30                if(urlLv2 === '/ir/shareholders/'){
31                    $(this).addClass('is-current');
32                    $(this).addClass('is-active');
33                } else {
34                    $(this).removeClass('is-current');
35                    $(this).removeClass('is-active');
36                }
37            }
38
39            $('.l-sidenav-lv3__items > li').each(function(){
40                var urlLv3 = $(this).children('a').attr('href');
41                if(location.href.match(urlLv3)) {
42                    $(this).addClass('is-current');
43                } else {
44                    $(this).removeClass('is-current');
45                }
46            })
47        });
48	}
49
50	/* main
51	---------------------------------------------------------- */
52	SideNavCurrent();
53});

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.