PageSourceSearch

https://www.jalan.net/js/segmentContentsAdDisp.js

js jalan.net collected 2026-09-24 08:48:32 UTC 1,553 bytes, 57 lines download raw bytes

1// Ã“I‰æ–Ê—pƒZƒOƒƒ“ƒg•ʃRƒ“ƒeƒ“ƒc•\ަJS
2var JSegConDisp={
3
4	init:function(elementId,contentsId, loginInfoReferFlg, jalanIdReferFlg){
5		var query = '?contentsId='+contentsId+'&loginInfoReferFlg='+loginInfoReferFlg+'&jalanIdReferFlg='+jalanIdReferFlg;
6		
7		// “ÆŽ©ƒpƒ‰ƒ[ƒ^‚̐ݒèi5‚‚܂Łj
8		for(i = 4; i < arguments.length; i++){
9			if(i<=8){
10				query = query+'&param'+(i-3)+'='+arguments[i];
11			}
12		}
13		
14		var url = '/uw/common/uwwSegmentContentsData.do'+query+'&time='+(new Date().getTime());
15		var xmlhttp = this.XMLRequest(elementId);
16		xmlhttp.open("GET",url,true);
17		xmlhttp.send(null);
18	},
19	
20	XMLRequest:function(elementId){
21		var xmlhttp;
22		if(window.XMLHttpRequest) {
23			xmlhttp = new XMLHttpRequest();
24		} else if(window.ActiveXObject) {
25			try {
26				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
27			}catch(e){
28				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
29			}
30		}
31		
32		xmlhttp.onreadystatechange = function() {
33			try {
34				if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
35					var res = xmlhttp.responseXML.documentElement;
36					JSegConDisp.resultQuery(res,elementId);
37				}
38			}catch(e){
39				if(xmlhttp){
40					xmlhttp.abort();
41				}
42			}
43		}
44		return xmlhttp;
45	},
46	
47	resultQuery:function(result,elementId){
48		var contents = result.getElementsByTagName('SegmentContents')[0].firstChild.nodeValue;
49		if(contents != '') {
50			document.getElementById(elementId).innerHTML
51				= contents;
52		}else{
53			document.getElementById(elementId).style.display = 'none';
54		}
55	}	
56	
57}

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.