PageSourceSearch

https://www.gosho.jp/dcms_media/js/current.js

js gosho.jp collected 2026-10-05 10:29:33 UTC 1,301 bytes, 30 lines download raw bytes

1var lh = "";
2lh = location.href;
3if (lh.match(/dcmsadm/)) {} else {
4    $(function() {
5
6        //TOPの時のカレント処理
7        if (location.pathname == "/" || location.pathname == "/index.html") {
8            //TOPの時のカレントクラスの付与
9            // クラス li に js-current__top を付けるとTOPとして認識される
10            $('.js-current > li.js-current__top').addClass('is-main_current');
11
12            //locatorを削除する
13            $("#locator").remove();
14        } else {
15            //現在フォルダ取得 メインナビ内の該当liにカレントクラスを付与
16            var now = location.href.split('/');
17            var endDir = now.slice(now.length - 1, now.length - 0); //現フォルダ名を取得する場合
18
19            var endDir2 = now.slice(3, 4); //第一階層のフォルダ名を取得する場合
20            // $('.js-current > li a[href$="'+endDir+'/"]').parent().addClass('is-main_current');
21            $('.js-current > li > a[href$="' + endDir + '"]').parent().addClass('is-main_current');
22            $('.js-current > li > a[href$="' + endDir2 + '/"]').parent().addClass('is-main_current');
23
24            //中ページ用のクラスを付与
25            $('body').addClass("common");
26        };
27
28
29    });
30}

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.