PageSourceSearch

https://www.chopin.co.jp/dcms_media/js/current.js

js chopin.co.jp collected 2026-10-02 16:15:29 UTC 1,132 bytes, 31 lines download raw bytes

1var lh = "";
2    lh = location.href;
3    if (lh.match(/dcmsadm/)){
4    } else {
5$(function(){
6
7	//TOPの時のカレント処理
8	if(location.pathname == "/" || location.pathname == "/index.html"){
9		//TOPの時のカレントクラスの付与
10		//$('nav ul li#globalnav01').addClass('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		//$('#globalnav ul li a[href$="'+endDir+'/"]').parent().addClass('main_current');
21		$('#globalnav_in > ul > li a[href$="'+endDir+'"]').parent().addClass('main_current');
22		$('#globalnav_in > ul > li a[href$="'+endDir2+'.html"]').parent().addClass('main_current');
23		$('#globalnav_in > ul > li a[href$="'+endDir2+'.html#"]').parent().addClass('main_current');
24
25		//中ページ用のクラスを付与
26		$('body').addClass("common");
27	};
28		
29		
30	});
31	}

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.