PageSourceSearch

https://odn.ne.jp/common/js/top_search.js

js odn.ne.jp collected 2026-09-24 09:12:17 UTC 1,290 bytes, 53 lines download raw bytes

1var current = 1;
2
3function tab(num) {
4/* num‚Ì’l
51 : ƒEƒFƒu
62 : “®‰æ
73 : ˜Hü
84 : ƒVƒ‡ƒbƒsƒ“ƒO
95 : ODN“à
10*/
11	if (!num || num < 1 || num > 5)	num = 1;
12	if (num == current)	return;
13	
14	for (var i = 1; i <= 5; i++) {
15		if (i != num) {
16			document.getElementById('tab' + i).className = "";
17		} else {
18			document.getElementById('tab' + i).className = "act";
19		}
20	}
21	
22	document.getElementById('search_gw').style.paddingBottom = '0px';
23	document.getElementById('search_gw').style.display = 'block';
24	document.getElementById('transit_text').style.display = 'none';
25
26	switch (num) {
27		case 2:	// “®‰æ
28			document.searchform.act.value = 'movie';
29			document.searchform.domain.value = '';
30			break;
31		case 3:	// ˜Hü
32			document.getElementById('search_gw').style.display = 'none';
33			document.getElementById('transit_text').style.display = 'block';
34			break;
35		case 4:	// ƒVƒ‡ƒbƒsƒ“ƒO
36			document.searchform.act.value = 'shopping';
37			document.searchform.domain.value = '';
38			break;;
39		case 5:	// ‚n‚c‚m“à
40			document.searchform.act.value = '';
41			document.searchform.domain.value = 'www.odn.ne.jp';
42			break;
43		default:	// ƒEƒFƒu
44			document.searchform.act.value = '';
45			document.searchform.domain.value = '';
46			break;
47	}
48
49	current = num;
50}
51
52
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.